Tag Archives: tips

Silence

3
Filed under Development
Tagged as , , ,

Just to make some little noise after not pushing anything to this blog, I will share this nice trick I learned today. If you want to see what macros gcc define on your platform:

gcc -E -dM -xc /dev/null

does the job for you.

Showing trailing whitespace in Vim

0
Filed under Development
Tagged as , , ,

Git has been warning me for leaving trailing whitespace in code files every now and then. So I decided to put this in my .vimrc:

Source: here

Showing current git branch on shell prompt

2
Filed under Development
Tagged as , , , ,

Found this useful piece of code to put into .bashrc, which shows the current branch when the current working directory is versioned by git.

Listing debian packages sorted by size

0
Filed under Development
Tagged as , , , , , , , ,
dpkg-query --show --showformat='${Package;-50}\t${Installed-Size} ${Status}\n' | sort -k 2 -n |grep -v deinstall

This was the most useful thing I’ve found today.

found it here.