Skip Navigation
learnbyexample

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

GitHub: https://github.com/learnbyexample

Books: https://leanpub.com/u/learnbyexample

Posts 125
Comments 82
learnbyexample.github.io GNU BRE/ERE cheatsheet and differences between grep, sed and awk

Cheatsheet for GNU Basic and Extended Regular Expressions and differences between grep, sed and awk.

GNU BRE/ERE cheatsheet and differences between grep, sed and awk
2
2

How stdbuf works

hmarr.com How stdbuf works • Harry Marr

Programmer and engineering manager working at GitHub. Co-founded Dependabot, and helped build Monzo and GoCardless.

1
All About Decorators in Python
  • I'm not the site author, just submitting the link.

    Not sure which part you need to be logged in to view - I'm seeing links to different articles and exercises and they are all visible without logging (I checked in an incognito window).

  • www.pythonmorsels.com All About Decorators in Python

    Screencasts, exercises, and talks all about decorators in Python.

    All About Decorators in Python
    4
    earthly.dev Containers are chroot with a Marketing Budget

    In this article, the author explores the concept of containers and how they are essentially chrooted processes. They walk through the process of bu...

    Containers are chroot with a Marketing Budget
    27

    What’s New in POSIX 2024

    5
    3

    Idiomatic awk

    4

    Scheduling Model in LLVM

    myhsu.xyz Scheduling Model in LLVM - Part I

    Instruction scheduling is essential to modern compilers. It tries to hide latencies and increases the throughput of a straight line code by reordering the enclosing instructions. In order to do that, compilers have to know a whole bunch of information, ranging from individal instruction’s latency to...

    0
    ibraheem.ca Designing A Fast Concurrent Hash Table

    I recently released papaya, a fast and feature-complete concurrent hash table for Rust. In this post I want to dive into the design and research that went into creating it, as well as why you might consider using it over existing solutions.

    Designing A Fast Concurrent Hash Table
    0
    learnbyexample.github.io I know Python basics, what next?

    Programmers often wonder what to do after learning the basics. This blog post will help you take the next step in your Python learning journey.

    I know Python basics, what next?
    4

    systemd: The Good Parts

    1
    prithu.dev The beauty of Unix pipelines

    Some examples of using unix tools in a pipeline

    The beauty of Unix pipelines
    0

    Cron Jobs on Linux - Comprehensive Guide with Examples

    5
    jvns.ca Reasons to use your shell's job control

    Reasons to use your shell's job control

    6

    desed: Demystify and debug your sed scripts

    github.com GitHub - SoptikHa2/desed: Debugger for Sed: demystify and debug your sed scripts, from comfort of your terminal.

    Debugger for Sed: demystify and debug your sed scripts, from comfort of your terminal. - SoptikHa2/desed

    GitHub - SoptikHa2/desed: Debugger for Sed: demystify and debug your sed scripts, from comfort of your terminal.
    3

    Guide To GNU Coreutils

    5
    Beginners Guides
  • I have a list of learning resources for CLI tools and scripting here: https://learnbyexample.github.io/curated_resources/linux_cli_scripting.html

    I've also written a few TUI interactive apps to practice text processing commands like grep, sed, awk, coreutils, etc: https://github.com/learnbyexample/TUI-apps

  • I wrote a Vim Reference Guide (beginner to intermediate level)
  • Why do you think it is a phishing link? Gumroad is a well known platform to sell digital goods.

    I mention it is free up to some date because it will go back to being a paid product after that.

  • I wrote a Vim Reference Guide (beginner to intermediate level)

    Hello!

    I am pleased to announce a new version of my Vim Reference Guide ebook.

    This is intended as a concise learning resource for beginner to intermediate level Vim users. It has more in common with cheatsheets than a typical text book. Topics like Regular Expressions and Macros have more detailed explanations and examples due to their complexity. I hope this guide would make it much easier for you to discover Vim features and learning resources.

    Links:

    • Web version: https://learnbyexample.github.io/vim_reference/
    • PDF/EPUB versions: https://learnbyexample.gumroad.com/l/vim_reference_guide (FREE till 31-Aug-2024)
    • Markdown source: https://github.com/learnbyexample/vim_reference
    • Video demos: https://www.youtube.com/playlist?list=PLTv2U3HnAL4NN2tK-59ZiNBm-o64-Yvos

    Did you know that Vim has an easy mode, which is actually very hard to use for those already familiar with Vim? See my blog post for more details!

    I would highly appreciate it if you'd let me know how you felt about this book. It could be anything from a simple thank you, pointing out a typo, mistakes in code snippets, which aspects of the book worked for you (or didn't!) and so on. Reader feedback is essential and especially so for self-published authors.

    Happy learning :)

    12

    Linux Network Performance Ultimate Guide

    1
    tn1ck.com Generating sudokus for fun and no profit

    A guide on how to generate sudokus of any difficulty.

    2
    *Permanently Deleted*
  • I started reading progression fantasy on Royal Road earlier this year (a site for posting web serials). Here's my current follow list (excluding stories that are on hiatus):

    • The Runic Artist — isekai, rune-based crafting, good mix of action and slice-of-life
    • The Broken Knife — Kobold MC with a dragon companion, dark but compelling read, excellent worldbuilding
    • Demon World Boba Shop — cozy isekai, nice characters
    • Dual Wielding — slow burn, tale of two friends (both very talented), writing is good, action scenes get dark and intense
    • Legends and Librarians — cozy romance, magical library (not litrpg/progression), plenty of cute creatures
    • An Otherworldly Scholar — isekai, teacher MC, good worldbuilding, nice romance, great characters, plenty of twists, adventure and danger, especially enjoyed the slice-of-life stuff
    • Archmage from Another World: Gaining Administrator Access — isekai from another fantasy world, lighthearted fun with good set of characters, no looming world-level threats so far
    • Underkeeper — MC is a recent magical academy graduate, good at magic but works as underkeeper (no money/connections to join adventurer groups), got darker than I'm comfortable with, but loved the characters and the demon companion
    • Immovable Mage — good worldbuilding, characters, plot twists and detailed magic system, clever use of plot events pushes MC towards OP, would suggest to read at least till the end of 2nd arc
    • Level One God — likeable MC, cool magic stuff I haven't seen before, some bad moments are really dark, good writing
    • Spire's Spite — criminally underrated with only 100+ followers, mostly been spire climbing so far, good magic system, dark and has some stuff I don't like but overall I've enjoyed it
    • Blood Curse Academia — overall I enjoyed the combination of action, learning and mystery, but a lot of weird coincidences and stuff didn't make sense
    • Mana Mirror — loved the concept of mana garden and the myriad customization options, writing and plot was easy to follow, third volume is the best so far
    • The Maid Is Not Dead — writing felt like traditionally published epic fantasy with progression elements, slow burn but events are starting to escalate
    • Dark Lord's Last Call — MC's soul is swapped with the dark lord, plans to open a tavern, enjoyable light-hearted read
    • Orphan — I usually ignore the litrpg math but this one takes it a bit too far! characters all have flaws (though sometimes it becomes a bit too irritating), good worldbuilding and mystery
    • Rules of Biomancy — 70 year old herbalist MC with a secret past comes across two isekai-ed people in danger of dying and decides to help, enjoying a lot
  • A Logical Way to Split Long Lines
  • Not my blog, just sharing it here.

    That said, I don't see that broken rectangle on Chromium.

  • I wrote a book on Linux command line tools and Shell Scripting (beginner to intermediate level)
  • 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).

  • What are your must-have programs?
  • oxipng, pngquant and svgcleaner for optimizing images

    auto-editor for removing silent portions from video recordings

  • How terminal works
  • Not my blog, just sharing it here. Saw it on HN (https://news.ycombinator.com/item?id=40419325)

  • Improving shell workflows with fzf
  • What's the difference between two_percent and skim?

  • What apps would you love to have open-source alternatives for?
  • Check out https://novelwriter.io/

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

  • CLI text processing with GNU Coreutils (head, tail, tr, sort, paste, pr, join, etc)
  • Yeah, it is uncommon spelling, but if you google, you'll find it's not that rare ;)

  • CLI text processing with GNU Coreutils (head, tail, tr, sort, paste, pr, join, etc)
  • 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.

  • Vim prank: alias vim='vim -y'
  • 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 https://github.com/tombh/novim-mode!

  • CLI text processing with grep, sed, awk, perl and ruby
  • 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).

  • CLI text processing with grep, sed, awk, perl and ruby
  • Thanks a lot for the kind words! Means a lot to me :)

  • What are you reading??
  • I'm a bit active on book-related forums. I post reviews of books I've read, give book recommendations, etc. In this case, the author contacted me based on my reviews.

  • What are you reading??
  • Like alpha, beta, gamma readers. Used by authors to get feedback at various stages of their book before it is published. Alpha stage is very rough, like first draft. Not sure where the line lies between beta and gamma stage, but they are close to finished works - only typos and minor changes would be made based on reader feedback.

    For indie authors, beta readers often help to get a few reviews out close to book publication.

  • What are you reading??
  • I'm doing a beta-read. Well written, great ideas, etc. Unfortunately, the book is turning out to be much darker than I'm comfortable with. I'll probably try to get to the halfway point before deciding to give up.

  • *Permanently Deleted*
  • Bobiverse by Dennis E. Taylor is a fun and easy read