Notes and Review - The Lever of Riches (Mokyr)


The Lever of Riches is a great book. I think I say that about a lot of books though. Lever of Riches is a 3-part book. In the first part, Mokyr presents a concise history of Technological progress starting in 500 BC and ending around \1915. In the second part, Mokyr compares the relative technological progress in three periods across time and space and the possible reasons (he touches on religion, culture, geography and national sentiment as possible reasons). In the last part, he draws an analogy between Biological Evolution and Technological progress.

I liked the first and second parts immensely. I didn’t find the last part (the analogy) very intersting or useful.

Read More

Setting up Wireguard - Experience

Note: There are several guides out there which have a set of steps and the commands to set-up Wireguard on a Linux computer. This post is written along those lines but takes a different approach - it focuses more on what one can learn about basic Linux networking by doing this setup themselves.


I started out with a fairly clear goal: Setup a VPN server inside a Digital Ocean droplet to forward all local traffic through, using wireguard.

I wanted to use Wireguard mainly because it was inside the kernel which had this subconscious implication that it would be blazing fast. Also, I have seen the video on Wireguard’s website which has Alice and Bob side by side and in about 7 commands the video shows how Bob: ping Alice starts working! This was fairly revoutionary to me because until now I had used two kinds of VPNs:

Read More

More about vim's formatlistpat, formatoptions and comments options

I recently changed my vimrc file to set the formatlistpat variable explicitly for markdown files. Before making this change, I had to dive into the vim help pages and find out what option I really needed to change to get un-ordered lists to start working write.

The Problem

I like Markdown a lot. I take all my daily notes at work and at home in Markdown. It works well for me. Also, I recently discovered the Docker image that will help me convert from Markdown to any format effortlessly using a simple docker oneliner and the docker image jagregory/pandoc-docker.

Read More

Managing DNS (or any other infrastructure) using Terraform

Note: This post ended up being a lot longer than I expected it to be! It’s a post about why Terraform is great, even for setups where configurations don’t change often and how you can use it to share the access that you have with other people without giving them access to the actual infrastructure account. I will make a separate post about the specifics of importing DNS records from Cloudflare into Terraform and the process I used for that.

Terraform is great! It is a way to manage your infrastructure using a set of version-controlled text files with a plan command that tells you what is going to change and an apply command that applies the changes that the plan told you about.

Where terraform gets really good is when you store the Terraform State file in a GCS bucket and run the plan and apply commands in your repository’s CI.

Read More

Compiling vim with python3 support!


sudo apt-get install -y python3-distutils python3-dev
git clone
cd vim
./configure --prefix=/usr/local \
     --enable-python3interp \
sudo make install

The Longer Version

Note: I put the commands at the top of the post because I hate it when people start with the story and the TL;DR comes at the end of the blog post. I strongly believe that the TL;DR of all blog posts and long text-filled posts should be at the top of the piece.

Read More

Firefox Add-on to jump from GitHub to CircleCI extremely fast!


I use GitHub and CircleCI at work. One of the most common workflows for me, is to merge a PR, click on the repository name to go to the repo page, scroll down to the Readme and click on the CircleCI indicator to check the status of the CI job kicked by the merge.

When the CI workflow is done and completes successfully, I go back to the repo page and click on “Releases”, create a new release (a Git tag) and then again go to the readme to go back and wait for the Release CI to finish.

Once that is done, I open Spinnaker and wait some more for that to get triggered. For some reason, Spinnaker takes about 10 minutes to detect that a new image with a tag matching a provided regex was pushed to GCR.

Read More

Setting up Ubuntu 18.04 LTS on a Thinkpad

It’s been a while since I have setup a brand new computer. I did set up a Mac when I started working in September last year, but that was more of a step-by-step thing where I just started with my existing dotfiles and picked up stuff along the way from people around me who had been working for a much longer time and knew of so many great Vim extensions and tools that I had previously never heard of. Prezto was one of them!

I was going to install Ubuntu 18.04 LTS on an IBM Thinkpad L390. It was released around December last year (or earlier this year?) and sounded like a really good handy laptop for travelling, particularly.... Read More

Ongoing issue with Firefox add-ons due to an expired certificate

Note: This is an ongoing issue at the time of writing (19:30 2019-05-04 JST). The team at Mozilla is aware of this issue and is working hard to fix it as soon as they can. You can track the bug here and on the IRC channel #firefox on


The issue started around 6 pm PST on the 4th of May when some people noticed that their add-ons were disabled by the browser, though the add-ons were working just fine just a few hours ago. (Some people had theirs stop working during on ongoing session!) This led to the opening of a GitHub issue and a bug on Mozilla’s bug tracker for Firefox, Bugzilla.

Read More

Oh-My-Zsh to Prezto - 4 seconds faster

I have heard a lot about prezto. People who work with me use it and we got into this recent discussion about how slow a curl request inside your zshrc makes your shell. Strangely enough, I hadn’t noticed that it made the shell slow at all. In fact, I was saying that it didn’t make it any slower than without it. I removed it from my zshrc and checked it and indeed, it didn’t make my shell any slower.

A few days went by; I was thinking about this when I was next thinking about why I hadn’t noticed this clear increase in the time. So, I looked at the time my shell took to start up again. It was … interesting: 6 seconds.

YUP. 6 seconds on a machine with an SSD, 16 GB of RAM and an i7 processor. So, what is the problem here?

Read More

True Detective Season 1

This post does not have spoilers about True Detective Season 1

When Season 3 started recently, I found myself thinking about what exactly it was about True Detective season 1 that I liked so much. This post is a look into what’s great about that season.

The Plot

A murder mystery in Louisiana that is being investigated by two very different detectives: Rust and Marty. Marty is every man’s man; he has a family, two daughters and some mistakes in his character. He mingles with people well and has a good rapport with the people he works with.

Read More