@learnbyexample@programming.dev avatar

learnbyexample

@learnbyexample@programming.dev

Interests: Regular Expressions, Linux CLI one-liners, Scripting Languages and Vim

GitHub: github.com/learnbyexample

This profile is from a federated server and may be incomplete. Browse more on the original instance.

learnbyexample,
@learnbyexample@programming.dev avatar

Is it regex or sed/awk syntax (or both) that gives you trouble?

I had similar reaction and didn’t even try to learn them for years - then I caught the stackoverflow craze of answering CLI questions (and learning from others).

learnbyexample,
@learnbyexample@programming.dev avatar

oxipng, pngquant and svgcleaner for optimizing images

auto-editor for removing silent portions from video recordings

learnbyexample,
@learnbyexample@programming.dev avatar

What’s the difference between two_percent and skim?

What apps would you love to have open-source alternatives for?

It seems like the FOSS community is continuing to grow, and FOSS apps keep getting better (Immich reallh blew my mind recently), which is a big win 😎 but there are still many apps I use that I would kill for an open source alternative. I am curious what you guys think? Are there any apps you’d love alternatives for?

learnbyexample,
@learnbyexample@programming.dev avatar

Check out novelwriter.io

I’m not familiar with such softwares (I use pandoc for technical writing), but might help you…

learnbyexample,
@learnbyexample@programming.dev avatar

I’m self-published and haven’t worked for other publications. Sometimes, my submissions reach HN front page, so you might have seen there or because others picked it up from there and shared around elsewhere.

learnbyexample,
@learnbyexample@programming.dev avatar

You’re welcome, happy learning :)

learnbyexample,
@learnbyexample@programming.dev avatar

Yeah, it is uncommon spelling, but if you google, you’ll find it’s not that rare ;)

learnbyexample,
@learnbyexample@programming.dev avatar

As per the manual, “Mappings are set up to work like most click-and-type editors” - which is best suited with GUI Vim.

While Vim doesn’t make sense to use without the modes, there are plugins like github.com/tombh/novim-mode!

learnbyexample,
@learnbyexample@programming.dev avatar

Thanks! 😊

learnbyexample,
@learnbyexample@programming.dev avatar

Thanks a lot for the kind words! Means a lot to me :)

learnbyexample,
@learnbyexample@programming.dev avatar

I had to learn Linux CLI tools, Vim and Perl at my very first job. Have a soft spot for Perl, despite not using it much these days other than occasional one-liners (mainly for advanced regex features).

Anyone know of a reverse command script or package to parse args for flags, expand them, and condense a man or help page(s) to just the relevant flags?

I have been working on my scripts for user/group permissions today. This idea has been on my back burner for awhile. I’m sure others have done this before. I just haven’t encountered them yet....

learnbyexample,
@learnbyexample@programming.dev avatar

Inspired by explainshell, I wrote a script (github.com/learnbyexample/command_help) to be used from the terminal itself. It is a bit buggy, but works well most of the time. For example:


<span style="color:#323232;">$ ch grep -Ao
</span><span style="color:#323232;">       grep - print lines that match patterns
</span><span style="color:#323232;">
</span><span style="color:#323232;">       -A NUM, --after-context=NUM
</span><span style="color:#323232;">              Print NUM lines of trailing context after matching lines.  Places a
</span><span style="color:#323232;">              line containing a group separator (--) between contiguous groups of
</span><span style="color:#323232;">              matches.  With the -o or --only-matching option, this has no effect
</span><span style="color:#323232;">              and a warning is given.
</span><span style="color:#323232;">
</span><span style="color:#323232;">       -o, --only-matching
</span><span style="color:#323232;">              Print  only  the matched (non-empty) parts of a matching line, with
</span><span style="color:#323232;">              each such part on a separate output line.
</span>
  • All
  • Subscribed
  • Moderated
  • Favorites
  • fightinggames
  • All magazines