HTTP 1/1 status codes

Mount UFS slice on linux:
mount -t ufs -o ufstype=ufs2,ro /dev/hda1 /mnt/to
Remove Suspend/Hibernate buttons from XFCE:
xfconf-query -c xfce4-session -np '/shutdown/ShowHibernate' -t 'bool' -s 'false'
xfconf-query -c xfce4-session -np '/shutdown/ShowSuspend' -t 'bool' -s 'false'
Add specific chroot device when mknod fails you:
mount -t devfs devfs /chroot/dev
devfs -m /chroot/dev rule apply path "*" hide
devfs -m /chroot/dev rule apply path null unhide
devfs -m /chroot/dev rule apply path zero unhide
Reset MySQL root password and add new user:
/etc/init.d/mysqld stop
mysqld_safe --skip-grant-tables --skip-networking &
mysql -u root mysql -e "UPDATE user
 SET password=PASSWORD('new_root_pass') WHERE user='root'; FLUSH PRIVILEGES;"
pkill mysqld_safe
/etc/init.d/mysqld start

GRANT USAGE ON db_name.* to db_user@localhost IDENTIFIED BY 'db_passwd';
GRANT ALL PRIVILEGES ON db_name.* TO db_user@localhost IDENTIFIED BY 'db_passwd';
Rename all files here to lowercase
rename 'y/A-Z/a-z/' *
for f in *.avi; do ffmpeg -i "$f" "${f%.avi}.webm"; done
Like downsample those jpegs with imagemagik
for f in *.jpg; do convert "$f" -resize 1100x1100 -quality 90 "${f%.jpg}.jpg"; done
Reverse-tunnel NAT-hidden host
remotehost$ ssh visiblehost
visiblehost$ ssh -R 10999:hiddenhost:22 visiblehost
remotehost$ ssh visiblehost -p 10999
Forward-tunnel NAT-hidden host
remotehost$ ssh -L 10999:hiddenhost:22 visiblehost -N
remotehost$ ssh localhost -p 10999
Return last git commit to --cached stage
git reset --soft HEAD^
/* work on it */ ...
git commit -c ORIG_HEAD
Xming32 XKB options
-dpi 96 -xkblayout us,ru -xkbvariant basic,winkeys -xkboptions grp:alt_shift_toggle
Corect PuTTY UTF-8 border characters (once)
Or, assuming $TERM is changed to "putty", add to .bashrc:
# If this is a putty session, disable UTF8 borders
case "$TERM" in
    export NCURSES_NO_UTF8_ACS=1
Concat video files
mencoder -oac copy -ovc copy -idx -o 
Mirror whole website
wget --no-clobber --convert-links --random-wait -r -p -E -e robots=off -U mozilla http://site/path/