ssh dynamic port tunnelling
useful when using insecure links with a ssh server you can access : ssh -ND<port on localhost> username@remote-ssh-server e.g. ssh -ND8080 myusername@192.168.1.1 *** when using firefox, only specify “localhost” in SOCKS Host, port “8080” & choose “SOCKS 5” in “connection…
mail rejects, deleted & queue in periodic.conf
By default, after exim successfully configured and run, it sends out Megabytes of mail queue to the root mailbox. It can be annoying when using a slow download line. e.g. PSTN & ISDN dialup, 3G internet access & etc. To…
split – but no destination parameter to specify
first : cd /destination/directory second : split /source/directory/big-huge-file prefix-to-apply-onto-splited-files Voila !!! (use the parameter -b to specify the size of splited files in BYTES, NOT kb, mb or gb)
cron & time zone
after changing time zone (tzsetup), restart cron (/etc/rc.d/cron restart) to let it know the changes or else the cron jobs will use the previous time zone.
convert epoch using date command
date -d ‘<Unix epoch> <epoch date> sec’ e.g. date -d ‘1970-01-01 988822888 sec’ would dated “Wed May 2 17:31:28 MYT 2001” 20080430 : get a particular date in epoch, e.g. date -d ‘Apr 30 2008 00:00:00’ ‘+%s’
Recent Comments