Note on tracking dotfiles across multiple instances easily with git

Came across’s dotfiles repo, which provided gems of insight into managing dotfiles in Linux (and Windows WSL) environment by using git bare repos. The repo also provided a very good quick start for some common command line configs. When you are working on various compute instances on cloud and/or on local, it is very handy to track and transfer dotfiles easily.

From scratch

Create an empty repo on Github/Bitbucket/Gitlab named dotfiles

git init --bare $HOME/.cfg
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
config config --local status.showUntrackedFiles no
echo "alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'" >> $HOME/.bashrc

git remote add origin https://repo/path/to/dotfiles.git

Add your dotfiles for example neovim and tmux:

config status
config add ~/.config/nvim/init.vim
config commit -m "add neovim"
config add ~/.tmux.conf
config commit -m "add tmux"
config push

Install on/migrate to new system

echo "alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'" >> ~/.bashrc
source ~/.bashrc
echo ".cfg" >> .gitignore
git clone --bare .cfg/
config checkout
config config --local status.showUntrackedFiles no

Can customize by adding additional stuff like plugin managers Vundle or Plugged

# vim-plug
## neovim 
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \

## vim
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \

# Vundle
git clone ~/.vim/bundle/Vundle.vim

Activating the free Let’s Encrypt SSL certificate for your WordPress site

WPBeginner has a easy to follow tutorial on activating the free Let’s Encrypt SSL certificate for your WordPress site, assuming your web host supports them. The really simple ssl plugin mentioned makes the process painless for existing sites.

If you are on HawkHost, you can view their announcements here on their Let’s Encrypt and 2FA support. In short, you can get the free SSL certificate by:

  1. Logging to cPanel, locate the Security section and click on “Lets Encrypt™ SSL” option to start the process.
  2. You can then select the domain that you would like HawkHost to issue the SSL certificate to.
  3. You will be brought to a confirmation page. On confirmation, HawkHost will generate the SSL certificate for you.
  4. Back in your WordPress admin page, activate the really simple ssl plugin and click on the button “Go ahead, activate SSL!”.
  5. You might be logged out of the admin page. If so, login again and you will discover that your WordPress site is now on SSL.
  6. Refer back to the WPBeginner tutorial for additional details like Google Analytics updates.

The Violin – An animated short on 80 years of Singapore history

Singapore celebrated it’s 50th birthday on 9 August 2015. Here’s an animated short showcasing 80 years of Singapore history. [Via RocketNews24]

Bedtime reading – What is Code?

In case you are wondering of what all the buzzwords and jargon like algorithms, coding, off-the-shelf mean, the article What is Code by Paul Ford helps you weave all these buzzwords into a single story.

At 38000 words, it makes good bedtime reading, be it for someone who has no inkling on how computers work or someone who is a seasoned veteran. TL;DR? below is a video summary from Bloomberg via Huffington Post.

Handling line endings on Windows with git

Note to self: When collaborating on different platforms, one of the most common issue is line endings – LF on Mac/Linux and CRLF on Windows. With git, you can address this issue in the following ways:

1) Configure Global Settings

1) Windows users: git config --global core.autocrlf true
2) Mac/Linux users: git config --global core.autocrlf input

2) Configure Per-repository settings

echo "* text=auto" > .gitattributes
git add .
git commit -m "Files play nice in Mac, Linux and Windows"
git push origin master

Additional reading:
StackOverflow thread
Github help

Thank You, Mr Lee Kuan Yew


This week, as I walked around places in Singapore, they become reminders of the enormous role that Mr Lee played as the founding father of Modern Singapore. These reminders become especially strong when my colleague and I were in the queue to pay our last respects to him.

Hyperlapse of the queue via The Straits Times:

The few hours of queuing seems to form a trail, leading me through the advancements of Singapore – the transformation of Singapore to become a global financial hub that is situated at Raffles Place and Marina Bay area, the celebration of the Arts at the Esplanade, and the clean up of the Singapore River, where it used to be full of rubbish and reeking of stench.

View of the queue

I became reflective and renewed my appreciation for Mr Lee’s leadership. My colleague and I also struck up conversations with the people queuing before and after us, discussing about the transformation of the Singapore River and how far Singapore has progressed. In addition, it is heartening to see shop owners and volunteers, who helped to provide water, a vital resource to brave the hot sun. Some shops even provided seats for the elderly who were in the queue.

wall of condolence cards

Finally, we reached the Parliament House. While passing through Security, you will be able to see walls of condolence cards. Inside the building, everyone paid their respects in an solemn and orderly manner. As the queue is very long, we were only allowed to stop briefly to pay our respects.


While we can only stop for a few minutes in the Parliament House after waiting for several hours, I would say that Mr Lee, who dedicated his life to Singapore, definitely deserves our Respect.

I have spent my life, so much of it, building up this country. There’s nothing more that I need to do. At the end of the day, what have I got? A successful Singapore. What have I given up? My life. – Lee Kuan Yew

Mr Lee led Singapore’s transformation from a fledgling country with no natural resources upon Independence into a renowned global financial hub and a clean and green city that is safe to live in. It is this strong foundation that enables Singapore to prosper till date, where Singapore enters its 50th year of Independence.

Thank you Sir. Farewell, and may you rest in peace.

HiDPI Windows 8 setting for Brackets

While test-driving the (Version 1.1) editor on Windows 8, I discovered that the text displayed on the application is not as crisp – it is rather pixelated – at HiDPI resolution of 2880 x 1620. The workaround is to edit the properties of the application and check Disable display scaling on high DPI scaling. This has already been reported as an issue on Github.

Pros: text becomes crisp!
Cons: Icons at the top right hand corner “shrunk” as they are displayed @ 100% scaling.

EDIT: New version of Brackets is out and the issue has been solved.

Pay It Forward

This is the first post, more frequently known as  “the Hello World! post” in blogs. Rather than a first post that is likely to be forgotten, I would like to use this first post to communicate an idea I feel strongly about – Pay It Forward.

Pay it forward is an expression for describing the beneficiary of a good deed repaying it to others instead of to the original benefactor – Wikipedia Post

I have the fortune to meet many people in my life who took some of their time to teach me something, in almost everything you can imagine – Teachers who painstakingly explain concepts, Colleagues who take time to explain processes, Volunteers who share their life experiences and how do they handle certain situations, and last but not least learning from family members and friends! I am very grateful to all these people who taught me something!

Somewhere along the way, the idea of “Pay It Forward” stuck and I hope that this site can serve as an expression of this concept. Hopefully you will be able to pickup or learn something during your visit here. If so, I encourage you to pass your insight gained to another fellow person who may need it.