Jul
26
2010
1

Re-run last command in terminal using sudo

Why didn’t I find this sooner?

To re-run the last command in terminal use
!!
which becomes _extremely_ useful, if you forgot you needed root access
sudo !!
(read: sudo damnit! ;) )

Written by Florian Beer in: moblog
rel-tag , , , ,

Dec
04
2008
0

Colorful make output

This handy piece of code colors errors and warnings in make output.
(put it in your .bash_profile)

make()
{
  pathpat="(/[^/]*)+:[0-9]+”
  ccred=$(echo -e “\033[0;31m"
)
  ccyellow=$(echo -e "\033[0;33m")
  ccend=$(echo -e "\033[0m")
  /usr/bin/make "$@" 2>&1 | sed -E -e "/[Ee]rror[: ]/ s%$pathpat%$ccred&$ccend%g” -e “/[Ww]arning[: ]/ s%$pathpat%$ccyellow&$ccend%g”
  return ${PIPESTATUS[0]}
}

via shawnwilsher.com

An alternative would be to install colormake and use that instead of the normal make command.

Written by Florian Beer in: development,linux,mac
rel-tag , , , , , , , ,

Sep
29
2006
1

ICS.istsehr.org

ICS.istsehr.org

I reactivated a (very) old site that I did in my first year at uni. It basically gives you the chance to send in funny quotes from colleagues and lecturers for everybody else to view it. (It’s even got RSS :) )

I know it’s mainly the concept of bash.org copied. But I wrote it all from scratch (in about 5min.) so it’s no exact copy ;)

Unfortunately it’s in german, so unless Google Translate improves or you learn reading my mother tounge you’re out of the game.

Written by Florian Beer in: development,private,web
rel-tag , , , ,