Friday, August 20, 2010

Filter selection through pipe in Emacs

Emacs has this wonderful feature of filtering a selection through a unix pipe. It's just a bit hard to remember how to invoke.

C-u M-| command RET

Thursday, August 19, 2010

RPM cheat sheet

list installed packages, dpkg -l
rpm -qa

info on an installed package, dpkg -s
rpm -qi

contents of an installed package, dpkg -L
rpm -q -l

package where a file belongs to, dpkg -S
rpm -q -f

extract package contents without installing, dpkg -x
rpm2cpio file.rpm | cpio -idv

Sunday, August 8, 2010

debugging makefile variables

To debug makefile variable assigments. Use make -p (--print-data-base) to see which values get assigned to variables and where.

Need to add to reading list: Managing projects with GNU make.

Wednesday, August 4, 2010

OpenSSH host key signature fingerprint

Note to self. It's ssh-keygen that can dump the host key fingerprint in a format suitable for PuTTY security alert comparisons.

ssh-keygen -l -f /etc/ssh/