vega_it
Hello world
This is my My home page
Useful Pad ?
Sync Cd-rom with a directory (with rsync)
rsync /mnt/cdrom/* /home/test/ --progress --ignore-errors --partial --no-blocking-io
Sincronizzare due cartelle (with rsync)
rsync -rogpa /home/user /mnt/usbdisk --progress
Mount Iso file
mount -o loop -t iso9660 file.iso /mnt/test
Set password .htaccess with apache
AuthName "restricted stuff" AuthType Basic AuthUserFile /path/to/file (fuori accesso web) require valid-user
Set file password .htaccess
htpasswd -c /path/to/file "username_to_use"
Packet Forward
echo 1 > /proc/sys/net/ipv4/ip_forward
MYSQL set privileges
mysql> GRANT ALL PRIVILEGES ON *.* TO 'vega'@'localhost' -> IDENTIFIED BY 'some_pass' WITH GRANT OPTION;
MYSQL import a .sql file
mysql -uroot -p < file.sql
Create a scsi node
mknod /dev/sda b 8 0 mknod /dev/sda1 b 8 1 mknod /dev/sda2 b 8 2 mknod /dev/sdb b 8 16 mknod /dev/sdb1 b 8 17 mknod /dev/sdc b 8 32 mknod /dev/sdc b 8 33
Download entire site
wget -r -l0 http://www.mysite.it
TREE creare un file html con la lista dei file e cartelle
tree -f -H . > list.html
Dump RealPlayer stream
mplayer -dumpstream -dumpfile video.rm rtsp://path/to/file.rm
Dump filmato Windows Media
mplayer -dumpstream -dumpfile video.wmv mms://path/to/file.wmv
Convert .rm to avi
apt-get install mencoder mencoder video.rm -ovc lavc -oac mp3lame -o video.avi
vega_it (last edited 2008-08-06 16:17:36 by localhost)