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.
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.
Fun Fantasy series with immense worldbuilding and great characters?
I want to read a recent(ish) fun fantasy series with an eighteen year-old male protagonist, that has immense worldbuilding and greatly-written characters. Any suggestions?
What CLI apps you use to do common tasks like editing (pdf, audio, video, image) files.
Here is my list:...
Textual 0.30.0 adds desktop-style notifications (TUI framework) (textual.textualize.io)
Version 0.30 adds a new notification system. Similar to desktop notifications, it displays a small window with a title and message (called a toast) for a pre-defined number of seconds.
GNU BRE/ERE cheatsheet and differences between grep, sed and awk (learnbyexample.github.io)
Hello. I wrote this blog post to serve as a reference for BRE/ERE regexp flavors. You’ll also learn the differences between these tools — for example, awk doesn’t support backreferences within regexp definition (i.e. the search portion).
Python pathlib Cookbook: 57+ Examples to Master It (miguendes.me)
A mega tutorial with dozens of examples on how to use the pathlib module in Python 3
Can `head` read/consume more input lines than it outputs? (unix.stackexchange.com)
Buffering and where it might cause issues
Python code collection of robotics algorithms (atsushisakai.github.io)
LPT: ChatGPT is incredible for generating and evaluating regex
I have to use a ton of regex in my new job (plz save me), and I use ChatGPT for all of it. My job would be 10x harder if it wasn’t for ChatGPT. It provides extremely detailed examples and warns you of situations where the regex may not perform as expected. Seriously, try it out.
Python's functools.partial() Lets You Pre-Fill A Function (thepythoncodingstack.substack.com)
An exploration of partial() and partialmethod() in functools
An opinion on what's a good general-purpose programming language (avestura.dev)
Regex engine internals as a library (blog.burntsushi.net)
Syncthing: Open Source Continuous File Synchronization (github.com)
Syncthing is a continuous file synchronization program. It synchronizes files between two or more computers.
systemd by example - the systemd playground (systemd-by-example.com)
The playground allows you to learn about systemd interactively, right from your browser! Create examples without the danger of breaking your system, and without being distracted by hundreds of unrelated unit files.
Practical Procedural Macros (xy2.dev)
An explaination of how to implement practical procedural macros in the Rust programming language. Explains the different types of macros, then shows an implementation of a procedural macro following best practices, focusing on testing and ergonomics. Assumes some familiarity with Rust.
Learn x86-64 assembly by writing a GUI from scratch (gaultier.github.io)
Most people think assembly is only to be used to write toy programs for learning purposes, or to write a highly optimized version of a specific function inside a codebase written in a high-level language....
A review of CS50P (CS50’s Introduction to Programming with Python)
Many of you may be familiar with CS50, Harvard's Intro to Computer Science course - it is often recommended to newbie programmers (and basically shows up on every 'how to learn to code for free' list). However, there are other lesser-known online courses offered by Harvard's Computer Science department. Since I wanted to brush...
Data analysis with SQLite and Python (sqlite-tutorial-pycon-2023.readthedocs.io)
This is text version of PyCon 2023 tutorial. Video can be found at: https://www.youtube.com/watch?v=5TdIxxBPUSI
A Visual Guide to SSH Tunnels: Local and Remote Port Forwarding (iximiuz.com)
SSH is yet another example of an ancient technology that is still in wide use today. It may very well be that learning a couple of SSH tricks is more profitable in the long run than mastering a dozen Cloud Native tools destined to become deprecated next quarter....
Let's make a Teeny Tiny compiler, part 1 (austinhenley.com)
This is the first post in a three part series. Check out part 2 and part 3 when you are ready....
Converting space separated string to array
I'm a complete noob when it comes to bash, I extracted some timestamps from an xml file using xmlstarlet however its formatted as a space separated string rather than an array. I need them as an array so that I can use them in a for loop. As far as I can tell you can't do that with xmlstarlet so I need to just convert the...
The Art of Command Line (github.com)
Fluency on the command line is a skill often neglected or considered arcane, but it improves your flexibility and productivity as an engineer in both obvious and subtle ways. This is a selection of notes and tips on using the command-line that we've found useful when working on Linux. Some tips are elementary, and some are...
Hashing (samwho.dev)
As a programmer, you use hash functions every day. They're used in databases to optimise queries, they're used in data structures to make things faster, they're used in security to keep data safe. Almost every interaction you have with technology will involve hash functions in one way or another....