Category Archives: Programming

Disable Bell in VIM

" Disable both beep and visual flash set visualbell t_vb= via

Posted in Linux, Programming | Tagged | Leave a comment

Nothing Could Fail in C

Best comment of the C programming language ever! via:reddit Here is the whole story: Going back to C by buddhabrot When I was 12 someone gave me a Metrowerks IDE to learn programming on my mac. I learned a lot … Continue reading

Posted in Programming | Tagged | Leave a comment

“–” (Double-hyphen) in Bash

$cat out if [ $# -eq 0 ] then echo "Usage: out [-v] filenames…" 1>&2 exit 1 fi if [ "$1" = "-v" ] then shift less — "$@" else cat — "$@" fi In out the — arguments to … Continue reading

Posted in Notes, Programming | Tagged | Leave a comment

Handle Filenames with Spaces Properly in Bash Loops

find ~ -name ‘* *’ | while read FILE do echo "$FILE rocks." done via Handling Filenames with Spaces in Bash

Posted in Programming | Tagged | Leave a comment

Simple Weather Script for Conky

Wanna Conky to show your local weather? You might had found tons of solutions already on the web, but here comes a simpler one: SimpleWeather. Requirement: Python >= 2.5 How to use it: Download weather.py. Edit the file, fill in … Continue reading

Posted in Programming | Tagged , | 1 Comment