--
Read HTTP via netcat:
-echo "GET / HTTP/1.0\r\n\r\n" | netcat $DOMAIN 80
+echo -e "GET / HTTP/1.0\r\n\r\n" | netcat $DOMAIN 80
--
Get X ressources for specific program:
Plug in your vodafone card and check in syslog whether the appropriate
(probably /dev/ttyUSB0 or /dev/noz0) has been created. If so run:
-# gcom -d $DEVICE
+# comgt -d $DEVICE
# wvdial --config /etc/wvdial.conf.umts $PROFILE
Usage examples:
-# gcom -d /dev/ttyUSB0
+# comgt -d /dev/ttyUSB0
# wvdial --config /etc/wvdial.conf.umts a1usb
-# gcom -d /dev/noz0
+# comgt -d /dev/noz0
# wvdial --config /etc/wvdial.conf.umts tmnozomi
-# gcom -d /dev/noz0
+# comgt -d /dev/noz0
# wvdial --config /etc/wvdial.conf.umts dreiusb
+# comgt -d /dev/ttyACM0
+# wvdial --config /etc/wvdial.conf.umts yesss
+
If you receive invalid DNS nameservers when connecting, like:
[...]
To get a list of available providers execute:
-# gcom -s -d /dev/ttyUSB0 /usr/share/doc/gcom/examples/operator
+# comgt -s -d /dev/ttyUSB0 /etc/comgt/operator
--
hdparm - get/set hard disk parameters
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:
% apt-show-versions | awk '/No available version in archive/{print $1}'
--
+Simple mailserver with python:
+
+% python -m smtpd -n -c DebuggingServer localhost:1025
+--