Backup and Restore Boot sector
Use these commands to backup/restore your boot sector dd if=/dev/hda of=bootsector.img bs=512 count=1 # backup dd if=bootsector.img of=/dev/hda #restore Original…
Post to Delicious From Command Line
Post to Delicious curl “https://<username>:<password>@api.del.icio.us/v1/posts/add?&url=[URL]&description=[TITLE]&tags=[TAGS]&replace=no”
Regular Expression Twitter Linker
Regular expression to link twitter users… Replace this ‘@(\w+)’ With this ‘<a href=”http://twitter.com/\1″>@\1</a>’
Object Or Array Check in JavaScirpt
Test whether an object is an object or an array if(Object.prototype.toString.apply(arr) === ‘[object Array]’) alert(“Array”) Original Article
Command Line Tool to Set ID3 Tags for MP3
Set the ID3 tags for mp3 files using this command… id3tool -t “title” -r “artist” file.mp3
Get Audio from a video file
Get Audio from a video file mplayer -dumpaudio -quiet VIDEO_FILE
Find the Process that Listen to a Port
Find the process that are listening to a said port… lsof -i :80
Move files from Folder 2 Levels Deep
Use this command to move files from folders two level deep to the current folder… mv */*.* .
Post a new Task to Nexty
This is the command used to post a new task to the nexty GTD tool. curl –basic –user “binnyva:password” –cookie-jar…
Upgrade Ubuntu to the Latest Version
Use these two commands to upgrade to the latest version of Ubuntu/other debian based distros. sudo apt-get update sudo apt-get…
Recent Comments