Thursday, June 12, 2014

Git rebase vs merge

I have been thinking about this for quite a while now. I have been doing merge and it always keep adding the merge commit which is good to keep track of the project history. However, I am more lenient towards git rebase as it keep the history flat and clean.



A typical git rebase example:


Lets say you start working on a feature enhancement



#Start a feature branch
git checkout -b feature
#commit
git commit -a -m "Feature added"

Now there is a sudden need to do a bug fix



#create bug fix branch
git checkout -b bugfix master
#commit
git commit -a -m "bugfix"
#merge back to master
git checkout master
git merge bugfix
git branch -d bugfix

Now that bugfix is merged with master, we rebase feature branch to keep our repo history flat and clean



git checkout feature
git rebase master

This will put the feature branch changes to the tip of master so we can do a standard merge from master once we are ready to commit feature changes.


Do you prefer git merge? and why?






via Rabin's blog

Friday, June 6, 2014

Reina’s second trimester

The second 3 months of Reina’s life. How they went along and her milestone achievements. You can view the timeline at Reina’s timeline



via Rabin's blog

Reina’s first Trimester

The first 3 months of Reina’s life. How they went along and what she achieved :) View Reina’s second trimester You can view the timeline at Reina’s timeline



via Rabin's blog

Wednesday, May 28, 2014

Reliably copy files from a folder

A simple bash script that uses rsync to copy files from a folder. The advantage of this script is when you have a brief network timeout or connection issue, it will still resume until MAX_RESTARTS is exhausted.



via Rabin's blog

Thursday, May 22, 2014

Log viewer

A simple log viewer which will be used in conjuction with sudo command to allow users with limited priviledges to view/read log files.



via Rabin's blog

First ER visit for Reina (part 2)

We are still here at mona vale hostpital. Reina still has the cannula in her hand :(. The only difference is she now has been moved to pediatric ward from ER. The doctors are still keeping her under observation because she is so young. They are monitoring her feed and her nappies to make sure [...]



via WordPress http://ift.tt/1lUa7PW

Friday, May 9, 2014

First ER visit for Reina

Today has turned into a horrible day for Reina. Last night she did a massive spew over her mum and had high temperature. She did sleep through the night aftet a dose of panadol. This morning she woke up with rashes on her legs and fever. After being suggested to go to ER by Dr. [...]



via WordPress http://ift.tt/Ry5Etf