--
Read HTTP via netcat:
-echo "GET / HTTP/1.0\r\n\r\n" | netcat $DOMAIN 80
+echo -e "GET / HTTP/1.1\r\nHost: $DOMAIN\r\n\r\n" | netcat $DOMAIN 80
--
Get X ressources for specific program:
Check filesystem's LABEL:
generic way:
-# vol_id -l /dev/sda1
+# blkid /dev/sda1
-ext2/3 without vol_id:
+ext2/3 without blkid:
# dumpe2fs /dev/sda1 | grep "Filesystem volume name"
-xfs without vol_id:
+xfs without blkid:
# xfs_admin -l /dev/sda1
-reiserfs without vol_id:
+reiserfs without blkid:
# debugreiserfs /dev/sda1 | grep -i label
-jfs without vol_id:
+jfs without blkid:
# jfs_tune -l /dev/sda1 | grep -i label
-reiser4 without vol_id:
+reiser4 without blkid:
# debugfs.reiser4 /dev/sda1 | grep -i label
--
Check filesystem's UUID:
generic way:
-# vol_id -u /dev/sda1
+# blkid /dev/sda1
-ext2/3 without vol_id:
+ext2/3 without blkid:
# dumpe2fs /dev/sda1 | grep -i UUID
-xfs without vol_id:
+xfs without blkid:
# xfs_admin -u /dev/sda1
-reiserfs without vol_id:
+reiserfs without blkid:
# debugreiserfs /dev/sda1 | grep -i UUID
-reiser4 without vol_id:
+reiser4 without blkid:
# debugfs.reiser4 /dev/sda1 | grep -i UUID
--
Change a filesystem's LABEL:
Convert Flash to Avi:
% ffmpeg -i input.flv output.avi
+
+Extract MP3 from Flash file:
+
+% for i in *.flv; do ffmpeg -i $i -acodec copy ${i%.flv}.mp3 ; done
--
Usage example for cryptsetup / -luks encrypted partition on LVM:
% python -m smtpd -n -c DebuggingServer localhost:1025
--
+finger via netcat:
+
+echo $USER | nc $HOST 79