Install YUI Compressor

Install YUI Compressor – A code minification tool wget http://yuilibrary.com/downloads/yuicompressor/yuicompressor-2.4.2.zip unzip yuicompressor-2.4.2.zip mv yuicompressor-2.4.2/build/yuicompressor-2.4.2.jar /opt/fileconveyor/code/processors/yuicompressor.jar or Install YUI Compressor via apt: sudo apt-get install yui-compressor Compress the script: java -jar /usr/share/yui-compressor/yui-compressor.jar –type js -v myscript.js -o myscript.min.js RPM available here from http://rpm.pbone.net


Secure-Delete

From ubuntugeek.com The Secure-Delete tools are a particularly useful set of programs that use advanced techniques to permanently delete files. To install the Secure-Delete tools in Ubuntu, run the following command sudo aptitude install secure-delete The Secure-Delete package comes with the following commands srm(Secure remove) – used for deleting files or directories currently on your…


Ubuntu 11.10 add applets to top panel

Just a quick note; I upgraded to ubunutu 11.10 and really missed my applet links in the top panel (yup, using Gnome classic) I could not find out how to add them back in. After a little tinkering, I found the using “ALT + Right Click” on the top panel will open the old ‘add…


FSniper

fsniper is a tool that monitors a given set of directories for new or modified files. Then, based on the file’s type or name, it invokes a script to be run on that file. Directories are monitored using inotify, instead of simply continuously polling them for changes. Common uses include making a single download directory…


Export WordPress Blog As Readable Text

From scrawlbug.com I must be in a bit of a retrospective mood at the moment. Despite spending about six hours on a single piece of work yesterday, I found myself wandering back through some of my blog posts. Surprisingly, I rediscovered quite a few I had forgotten and several that were really quite good. I…


Interactive Vim Tutorial

From lifehacker.com Vim has long been praised as one of the best text editors around, mostly for its completely mouseless navigation. However, it can be very confusing for beginners. This interactive tutorial gets you started so you can edit text files with blinding speed. If you spend a lot of time editing config files and…


Core envy…


Copy one file to multiple directories

Had a client ask to copy a file to multiple public_html directories, came across this little bash script which worked beautifully: touch copy.sh vim copy.sh add this to file, modifying the name of the file to be copied (in this case, test.php) #/bin/bash for file in $(find /home/* -name public_html -type d) do cp test.php…


Move WP from subdir to root dir

From askwpgirl.com Q. I’ve installed my website in a subdirectory of our domain, because I didn’t want visitors to see the site until I was finished with our development. Now I want to have the site show up in the root directory (not in the http://mydomain.com/wordpress directory). How do I do this? I’ve read the…


lolcat – taste the rainbow

https://github.com/busyloop/lolcat