[HOW TO] Please, commit your changes or stash them before you can switch branches.

In the morning, I pull git to deploy, and unlucky, this paragraph shows me: Please, commit your changes or stash them before you can switch branches. Ya I see, a long time ago, I changed one line on file. So it don't like the git repositories file. Next, I have to change/ recovery file on my local as git repositories file. I see it commons sense. So somebody know the method to fix. Next, google. In...

[HOW TO] script automatically call skype

In the morning my boss calls me: Tien, why do you don't write script automatically call skype? I see the admin girl don't exactly run on time for it. So please write windows script. Tien: ya I understand. It is easy to write. Drop call... In the afternoon, I go to office, and start to write the script. Most often, admin girl runs skype to call hanoi's office by hand. She has a lot of works, so...

[HOW TO] Validate haproxy.cfg

In the morning I change the haproxy.cfg, but I don't want to restart the haproxy. Because it can make incident for our infrastructure. So I think I need to validate haproxy configuration file. Luckily haproxy always support that.  Way is  /usr/sbin/haproxy -c -V -f /etc/haproxy/haproxy.cfg Configuration file is valid Good to see. I hope this help you to check the syntax of haproxy.cfg...