Written by Dorian Karter, a Sr. Software Engineer
Github | Twitter | LinkedIn

  1. Have you ever installed something using Homebrew and noticed the command's output updating seemingly unrelated packages? This recently…

  2. When using Lua inside of Neovim you may need to view the contents of Lua tables, which are a first class data structure in Lua world. Tables…

  3. I recently learned about a delightful new(ish) feature in Elixir's GenServer that managed to slip under my radar. This feature is the…

  4. (Maybe Obvious) Preamble What is DNS? Wife: What's DNS? Me: It's that thing you use every day when you browse the web on your phone. Me…

  5. In Rust when you pass a variable to a function it is technically "moved". That means the the caller looses ownership of the variable and can…

  6. To remove duplicate lines in Vim you can pipe a selection from the current buffer into : Select all lines you want to dedup (linewise) and…

  7. I recently scraped all my old Hashrocket TIL posts and re-posted them here on my blog. One of the reasons is that I wanted to have all that…

  8. One of my favorite Vim mappings is gx. When hovering over a URL with the cursor in normal mode and using this mapping, Vim will open the URL…

  9. TL; DR: add this function to your / to create a PR from a Jira ticket: If you use Jira at work, but prefer to live in the terminal whenever…

  10. My guitar teacher introduced me to this performance by Group 15 (Tom Aalfs, Peter Bernstein and Jay Leonhart) of the song Eronel by…

  11. What's with the name? Retrovertigo is a song by one of my favorite, and most eccentric bands out there, Mr. Bungle. This song was released…

  12. Read about why I started a new blog, technologies used, and my publishing philosophy

  13. When you are trying to debug something it is usually helpful to see the stacktrace of what called a function. If you're inside of a…

  14. If you are on a Linux machine and trying to run you may get . That is because some Linux distros don't come with it bundled by default. On…

  15. TIL that you can display visual fold markers in Vim's gutter by setting the ! The number indicates how wide the gutter holding the fold…

  16. TIL I learned about a really useful, open source, image optimization app called ImageOptim. This app will help you batch resize image files…

  17. Imagine the following file: sed.test If you want to delete a line matching a regular expression (e.g. ), you can use at the end of your…

  18. The ping utility is super useful for debugging network issues on docker, but it's package name is not as intuitive as . To get it on your…

  19. Browsers allow you to capture a event in a DOM element [1] [2]. This event fires before any clipboard data is inserted into the document…

  20. When you type that long feature branch name or URL but then want to delete it you have a few options, but hopefully you don't hold your…

  21. Vim provides command for ordering lines in an ascending order, but what if you want to sort the lines in a reverse order? Linux's to the…

  22. If you need to use a different SSH key for a git command such as you can do so by setting the environment variable like so: This can…

  23. Sometimes your desktop gets cluttered with windows of different running applications which makes it difficult to concetrate on the task at…

  24. Javascript provides the ability to create custom errors by modifying the prototype of a function to the Error protorype. This is how one…

  25. Using a proxy can be a good way to debug http issues. Unfourtunately setting the proxy on macOS globally does not apply to all command line…

  26. You can pipe text into vim directly from stdin. This can be helpful if you want to edit the output of a long bash command, or if you want to…

  27. Dates can be notoriously hard, particularly when it comes to timezones. If you select a date without timezone information and cast it to a…

  28. By default vim treats two words connected with an underscore e.g. as a vim word text-object. This is very useful because you can then use…

  29. Vim provides a simple text file encryption feature. To make use of it add the following to your .vimrc: This will set the encryption to the…

  30. If you are writing a procedural bash script, you may want to stop execution if one of the steps errored out. You can write error handling…

© 2023, Dorian Karter