Quantcast
Channel: kbo timeline
Browsing all 20 articles
Browse latest View live

kbo: @ralesk perhaps there is already something, but I wanted to try it...

@ralesk perhaps there is already something, but I wanted to try it myself :) http://sprunge.us/hEUU !zsh

View Article



kbo: @ralesk yes, the first try was not very good. I tested and updated a...

@ralesk yes, the first try was not very good. I tested and updated a bit, now it seems to work http://sprunge.us/KcYP

View Article

kbo: @drtelnet http://sprunge.us/KcYP (updated unix-filename-rubout, this one...

@drtelnethttp://sprunge.us/KcYP (updated unix-filename-rubout, this one seems to work)

View Article

kbo: @climagic ls *(.) | wc -l # cound normal files using zsh glob qualifier ;)

@climagic ls *(.) | wc -l # cound normal files using zsh glob qualifier ;)

View Article

kbo: Finally upgraded to !KDE 4.7.3 and so far everything just works(tm)....

Finally upgraded to !KDE 4.7.3 and so far everything just works(tm). Thank you very much for the great work!

View Article


kbo: while :; do wget -q -O- http://mpd:8000 | aplay -; sleep 1; done

while :; do wget -q -O- http://mpd:8000 | aplay -; sleep 1; done <-- works MUCH better for me than streaming via esound-esd !mpd

View Article

kbo: @climagic set lcs=extends:>,precedes:.,eol:$:set list # special chars in...

@climagic set lcs=extends:>,precedes:<,trail:.,tab:>.,eol:$<cr>:set list # special chars in vim (easier to read than hexdump but w/o \r)

View Article

kbo: @climagic lsblk # list block devices (holders and slaves). I thought...

@climagic lsblk # list block devices (holders and slaves). I thought about writing a shell script for this (requires util-linux >= 2.19)

View Article


kbo: @climagic for i in *\ *; do file "$i"; done # filenames with whitespaces...

@climagic for i in *\ *; do file "$i"; done # filenames with whitespaces and fewer processes

View Article


kbo: just wrote my first kernel module (gpio-mcp23016) ... and it works :)

just wrote my first kernel module (gpio-mcp23016) ... and it works :)

View Article

kbo: @rysiek perl -ne '/^#?(..)(..)(..)$/ or /^#?(.)(.)(.)$/ or die; printf...

@rysiek perl -ne '/^#?(..)(..)(..)$/ or /^#?(.)(.)(.)$/ or die; printf "#%02x%02x%02x\n", 0xff-hex($1), 0xff-hex($2), 0xff-hex($3)'

View Article

kbo: @skreech2 gocr and tesseract come to my mind. But I don't know anything...

@skreech2 gocr and tesseract come to my mind. But I don't know anything but the names

View Article

kbo: @climagic lwp-dump(1p) that was a short one :)

@climagic lwp-dump(1p) that was a short one :)

View Article


kbo: @climagic find . -type f -exec du -m {} + | awk '{ sum += $1; } END {...

@climagic find . -type f -exec du -m {} + | awk '{ sum += $1; } END { print sum / FNR; }' # average file size (recursive) in MB

View Article

kbo: @climagic ps ww --noheading -o cmd -p $(cat something.pid) # pgrep -F...

@climagic ps ww --noheading -o cmd -p $(cat something.pid) # pgrep -F file does not work for me for some reason

View Article


kbo: @lostson works fine with jabber and sip here

@lostson works fine with jabber and sip here

View Article

kbo: @climagic vi =(strace lsblk 2>&1) # with context and vimgrep :) temp...

@climagic vi =(strace lsblk 2>&1) # with context and vimgrep :) temp file is automatically deleted (requires zsh)

View Article


kbo: @climagic readlink -f /proc/2394/exe # full path of executable. always :)

@climagic readlink -f /proc/2394/exe # full path of executable. always :)

View Article

kbo: @alekgr %?condition?replace_if_true? is some kind of if. for...

@alekgr %?condition?replace_if_true? is some kind of if. for pgp_decode_command, %p is "true" (not empty) if it needs a passphrase

View Article

kbo: @climagic I never used C-N, so I bound it to complete the current word...

@climagic I never used C-N, so I bound it to complete the current word from history: bindkey '^N' hist-complete (zsh)

View Article
Browsing all 20 articles
Browse latest View live




Latest Images