Archive for 'General' Category

bash shell tips for filenames

By technese - Last updated: Sunday, February 12, 2012

# remove empty files rm -f $(find . -empty) # change all filenames from upper to lower case rename ‘y/A-Z/a-z/’ * # change all filenames from spaces to underscores find -name “* *” -type f | rename ‘s/ /_/g’

lighttpd – enable or disable directory listing individually

By technese - Last updated: Friday, February 3, 2012

Edit lighttpd.conf Note: You may also remove (|$|/) to allow a wildcard||| Enable directory listing for /foldername/ $HTTP[“url”] =~ “^/foldername(|$|/)|” { dir-listing.activate = “enable” } OR Disable directory listing for /foldername/ $HTTP[“url”] =~ “^/foldername(|$|/)|” {dir-listing.activate = “disable” } #Restart lighttpd $ /etc/init.d/lighttpd restart Source:http://www.cyberciti.biz/tips/howto-lighttpd-enable-disable-directory-listing.html

Hiren’s Boot CD

By - Last updated: Sunday, January 29, 2012

http://mirror.leaseweb.com/hirensbootcd/

Convert .mid to .mp3 with Debian Linux with timidity/fluidsynth and twolame encoder

By technese - Last updated: Sunday, January 29, 2012

Install timidity and twolame $ aptitude install timidity twolame $ timidity file.mid -Ow -o – | twolame -b 256 -r – file.mp3 ——————————————————— Input Filename: STDIN Output Filename: file.mp3 Raw input format: 2 channels, 16-bit, 44100 Hz ——————————————————— LibTwoLame 0.3.12 (http://www.twolame.org) Input : 44100 Hz, 2 channels Output: 44100 Hz, Stereo 256 kbps CBR MPEG-1 […]

NTP Time servers

By technese - Last updated: Saturday, January 28, 2012

0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org The NTP Pool DNS system automatically picks time servers which are geographically close for you, but if you want to choose explicitly, there are sub-zones of pool.ntp.org. The “continent” ones are: Area: HostName: Worldwide pool.ntp.org Asia asia.pool.ntp.org Europe europe.pool.ntp.org North America north-america.pool.ntp.org Oceania oceania.pool.ntp.org South America south america.pool.ntp.org Also, from NIST […]

hosts.allow and hosts.deny

By technese - Last updated: Saturday, January 28, 2012

To restrict access to your Unix or Linux machine, you must modify the /etc/hosts.allow and /etc/host.deny files. These files are used by the tcpd (tcp wrapper) and sshd programs to decide whether or not to accept a connection coming in from another IP address. Restrict access to only those network addresses you are certain should […]

John The Ripper

By technese - Last updated: Friday, December 23, 2011

Install or compile john the ripper binaries for your OS Using John the Ripper password cracker, version 1.7.3.1 format of the file to be tested: user:passwordhashtype – e.g. root:5f4dcc3b5aa765d61d8327deb882cf99 `john` doesn’t get the hashtype correct for MD5, so we need to use –format –format=NAME              force hash type NAME: DES/BSDI/MD5/BF/AFS/LM/NT/mscash/NETLM/NETNTLM/bfegg/DOMINOSEC/lotus5/raw-MD5/raw-sha1/IPB2/nsldap/openssha/HDAA $ john root-md5.txt –format=raw-MD5 Loaded 1 […]

Building your first Windows Metro style app using C#, C++, or Visual Basic

By - Last updated: Wednesday, December 7, 2011

http://msdn.microsoft.com/en-us/library/windows/apps/br211380.aspx

DSL Report Mobile Speed Test

By technese - Last updated: Tuesday, December 6, 2011

http://www.dslreports.com/mspeed?t=1&s=1024&w=

Block IP address using .htaccess for Apache or using url.access-deny for Lighttpd

By technese - Last updated: Saturday, December 3, 2011

For Apache Web Server, edit the .htaccess per directory: Allow access from a certain IP address: In this case, stands for a specific IP address. For example: order deny,allow deny from all allow from 192.168.1.2 Deny access from a specific IP address: order allow, deny allow from all deny from 192.168.1.2 For multiple IP addresses: […]