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 […]
Running Any Linux Browser in (almost) Headless Mode
I just saw an articled on Hacker News announcing that Chrome 59 is going to have cross-platform headless support. A lot of people are excited by this announcement, mainly because it will allow them to move away from PhantomJS – a buggy headless browser currently used as a de-facto solution to run unit tests and […]
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 […]
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 […]
Twitter API Example – Search and Get User Tweets in Python
Last week I wanted to scrape my Tweets for the past few days. It was very easy to do with Python. In this tutorial we will explore: How to install Twitter API library in Python How to set up Twitter API authentication How to Search with Twitter API How to Get User Tweets with Twitter […]
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 […]
Adding SSL Certificate to Your Blog is Free and Easier Than You Might Expect
Adding SSL Certificate few years ago was a painful and expensive process. This is no longer the case. Last year Let’s Encrypt Certificate Authority came to life and made SSL certificate available to anybody free of charge. It is sponsored by a number of organizations such as Mozilla Foundation, that want to make the web […]
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 […]
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 […]
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 […]