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

  1. I just read this blog post. It showed, in JavaScript, how to convert country code string to its respective flag emoji, and I wanted to see…

  2. Hey! just wanted to share that my dotfiles were featured on the Dotfiles publication on Substack by Adib Hanna https://dotfiles.substack.com…

  3. Introduction Seeking a hands-on way to further explore Mermaid — a remarkable JavaScript diagramming and charting tool — I decided to apply…

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

  5. 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…

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

  7. (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…

  8. 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…

  9. 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…

  10. 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…

  11. 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…

  12. 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…

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

  14. 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…

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

  16. 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…

  17. 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…

  18. 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…

  19. I've written here before about how to pretty-print JSON in Vim but since then I have found an even easier method using . jq is an amazing…

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

  21. 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…

  22. 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…

  23. 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…

  24. So yea you don't need a friend to send you a CD-ROM anymore to install node modules. You can use the World Wide Web! Pretty exciting. On a…

  25. 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…

  26. 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…

  27. 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…

  28. When you need to transfer a lot of files from one location to another it's sometimes useful to have some progress indication and maybe even…

  29. By default, Firefox does not support the VP9 WebM codec sites like YouTube use to deliver 4k quality video. If you visit a video that…

  30. My ls command colors directories and files according to their type and permissions: ls with color But when the window is too small to fit…

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

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

  33. 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…

  34. 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…

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

  36. 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…

  37. 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…

  38. Ever wonder what a command you are using is? Turns out linux has the answers for you! Simply type followed by the name of the command…

  39. 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