From time to time, it's helpful to send a coworker the GitHub commit URL for the latest commit in a repository. While you can navigate to GitHub, find the commit links, and manually copy it, using a custom CLI command makes this super easy!
Bits and bytes of code
Bytes is my collection of short-form posts, tips, and things I learn as I build software.
Showing results for #cli
ClearWhen making a favicon for a website, it's pretty common to convert a PNG to an ICO file. There are countless online converters, but they all have gotchas, rate limits, and it's just hard to find the right one to do the job for you. With a very simple CLI command, we can do it ourselves!
I've been using ripgrep for some time now, and figured it would be great to share for anyone who hasn't used it before.
I frequently switch between Git branches inside of Neovim using Telescope, but it's also handy to be able to switch branches using fuzzy find when outside of Neovim.
I use shell aliases quite heavily to simplify common CLI commands. However, one of my biggest pain points when using them is they didn't work as well in certain complex commands.
I recently came across a Raycast extension that allows you to play/pause music from YouTube music while it's running in your browser. After exploring how it worked internally given I was a bit astonished it is even possible, I found that it's all just using AppleScript.
I was writing a script the other day that I needed to accept some optional arguments. I found that I could use the getopt command, but turns out the simple approach was cleaner in the end.