git open - A small git hack

You can add a git sub-command by defining a new alias in your ~/.gitconfig file as follows:

The git open defined in the ~/.gitconfig is mapped to a shell script called git-open.sh. 

This bash script does two things: 

1. It tries to detect if there are any files with uncommitted changes in the current repo and prints out the filenames.

2. If the repo doesn't have any uncommitted files, it'll print the filenames from the last commit.

The git open alias is mapped to open the output from this script using vim. 

Why is this useful?

I can pick up where I left off the previous day by simply typing `git open` inside the repo. This will open either all files with uncommitted changes or open the files from the last commit. There is a very good chance that my work for the day will continue on those files.

A small hack to make life a little bit easier.

Conversations with a 1 year old

Vian is picking up new words. His new addition is "Yeah". It is pronounced with an emphatic "EYAH!" (imagine a Karate yell).

I like asking him random questions that are at the edge of his understanding and watch him say "Yeah!".

But sometimes he uses his "Yeah!" with such precision it catches us off guard. Such as last night when we were getting him ready for bed.

Yoshi: Vian, would you like to hold a toy? You can pick either Pandie (stuffed panda) or the fire engine.

Vian: Yeah!


Words, Words, Words

Vian has been picking up a few words courtesy of Sempi. The words he has picked up so far are the ones that Sempi uses with forceful emotion. 

STOP:

Whenever Vian tries to take Sempi's toys, Sempi yells "STOOOOP" with conviction and distress. So that's the first word that Vian decided to pick up. Now he uses it with us generously. He can't quite pronounce the sound "ssss" so his STOP sounds like "TOP".

It's a catch all phrase for stopping anything that is unpleasant. So far he has used it to stop me from giving Yoshi hugs in front of him (jealousy). It is hilarious to watch him command his toys to "TOOPPP" when they keep sliding off of the couch or the table where he's playing.

NO:

This is the second word that he's picked up from Sempi. But the twist is, Vian says NO with a tinge of joy and pride. We've asked Sempi to ask Vian's permission before taking toys from Vian's hands. Sempi being the older, more responsible brother will ask politely "Vian can I please play with the toy you have in your hand?" and Vian responds "NO" with a smile and enthusiasm. It looks absolutely savage when witnessed in person.

READ:

This one, I'm very glad he's picked it up from Sempi. Sempi is a total book worm. He asks us to read a book as soon as he wakes up, while eating, while lounging, right before bedtime, even while driving (instead we listen to podcasts while driving). Now Vian has picked up on this and he demands that we read to him while he eats. He can't pronounce "R" or "D" so it sounds more like a "WEE", "WEE". He get so excited about this that he would keep asking us to read even while we're reading him a book.

Life hack of a 5 yo

When I drop off Sempi at school, I walk him to the front desk where they have name badges for the kids arranged in random order. I ask Sempi to pick out his badge while I sign the sign-in sheet. This is my way of training him to recognize his name.

This morning he told me, "Appa, do you see how the safety pin is attached sideways to my badge? I did that yesterday so I can find my badge easily in the mornings". 

#proud-papa

It starts early

Yoshi was washing her face in the bathroom while Vian was playing with the bathroom scale.

Yoshi: Why is it upside down?

Vian: Appaaaa

Yoshi: Appa did it? 

Vian: Appaaa

Yoshi: oh, appa did it 

Vian: Appaaa Appaaa

Yoshi: no Vian, you did it 

Vian: (silence)

All of this happened while I was at work. Appa means dad in Tamil.