Random notes on random stuff
Select entire buffer
At Point : C-c C-x C-u
All Dynamic Blocks : C-u C-c C-x C-u
Start :
New Item :
If you use zsh and Tramp hangs every time you try to connect, try placing this in your .zshrc:
[ $TERM = "dumb" ] && unsetopt zle && PS1='$ '
Alternatively, I had success using the following in my .zshrc:
unsetopt promptcr
I’ve noticed that preexec and precmd call also be noxious if they do fancy stuff. I’ve ended up with:
if [ "$TERM" = "dumb" ]
then
unsetopt zle
unsetopt promptcr
unsetopt promptsubst
unfunction precmd
unfunction preexec
PS1='$ '
fi
Archive : c-c c-x c-s
Publish : C-c C-e
x** GIT
Archive : git archive –format=tar | gzip2 > mytarball.tar.gz
git tag -s EVOLUTIONFOOXN <sha-id>
Git new-work-dir
http://blog.nuclearsquid.com/writings/git-new-workdir
git-new-work-dir source-dir dest-new-dir
C-u - Clear current line
Split : C-a S
/wc - Window close
C-N/P - Next windows
/window show # - for split windows
http://quadpoint.org/articles/irssisplit
Conqueror http://bc.tech.coop/blog/060529.html
Verifying DVD Burn : http://www.g-loaded.eu/2006/10/07/verify-a-burned-cddvd-image-on-linux/
echo $(( $(ls -l my-local-image.iso | awk '{ print $5 }') / 2048 )) - gives the count.
use the count in here - dd if=/dev/hdc bs=2048 count=169383 | md5sum
tar -c myproject/ | bzip2 > myproject.tar.bz2
tar -cvfa woogaaboo.tar.gz foobar/
A working example of encoding:
openssl base64 -e -A < face.png > ~/.evolution/faces
Grep :
-C : Context lines
Site wide default options : http://danielkitta.org/blog/2009/09/21/using-config-site-to-set-default-options/
HTML generated by org-mode 6.21b in emacs 23