OMG – NPM clone that finally makes sense

Note: Everything I’ve assumed was wrong, I am keeping track of things as I discover them via the medium post: https://medium.com/@akras14/omg-npm-clone-that-finally-makes-sense-3478588879 I’ll update this post when the dust settles 🙂 Last week I came across a yet another NPM clone, called pnpm, but unlike other clones (cough Yarn) this one is actually interesting! What so … Read more

Convert video to images via command line

I often find myself needing to convert video to a series of images. It’s a great way to look through the content to find some details or identify screenshots that are worth keeping. For example I used this method to look through all talks given at Chrome Dev Summit to supplement my notes. Another use … Read more

How to Copy One File from Vagrant Virtual Machine to Local Host

Step 1. Find what port Vagrant is connected to by running vagrant port The output Will look as follow: Indicating that Vagrant is running on port 2200 Step 2. Get the absolute path for the file that you want to copy i.e. /vagrant/some-file.txt You can get it by ssh’ing into the machine and locating the … Read more

Git grep multiple repos at once

Updated in 2020 to work with Python 3. My company uses multiple git repos that all depend on one another. Often I find myself trying to grep through a few of them at the same time. Regular grep works, but it takes a long time and displays a lot of noise. git grep only searches … Read more

Generate Weekly Reports from Your Git Commits

My current work requires me to submit weekly reports and so did some other jobs that I’ve had in the past. To help with that task, I wrote the following script that: Goes through every one of my git repos Checks if I’ve made any commits in the past week If I did, prints the … Read more

How to Add Git Auto-Completion for the Command Line Tools in Mac OS X

Git supports auto-completion when used via the terminal, which includes all basic commands such as git status or git checkout as well as local and remote branch names etc. It comes pre-installed on Ubuntu, but a few simple steps (bellow) have to be followed to get it working on Mac. Open up your terminal app … Read more

How to Remove Shell Integration From iterm2

I tried shell integration for iterm2 and I didn’t like it. I wasn’t sure how to remove it, so I looked into the install script. I am currently using bash, so all they did was to add an entry into my ~/.bash_profile file and download a ~/.iterm2_shell_integration.bash file. All I had to do, is remove … Read more