Category: Code

Script to Convert FLV to AVI

This will convert a flv file to a avi file. I got this off linux.com. It uses mencoder – so…

Building an RPM from a Spec File

Use this command to build an RPM if you have a Spec File rpmbuild -ba SPEC_FILE

Installing Rails

You can install Rails in a Fedora system with these commands… yum -y install ruby ruby-devel ruby-irb ruby-libs ruby-rdoc ruby-ri…

Get the Plain Text Version of a Web Page

This command fetches a web page, converts it to text and shows it. lynx -dump http://www.example.com/

Share Current Folder over the Web

Want to show something on your machine to someone over the web? Don’t copy it or upload it somewhere. Just…

Perl Joke

Just a joke – no offense intended… perl -e ‘a=”etbjxntqrdke”;a=~s/(.)/chr(ord(1)+1)/eg;printa’

A Shell Script to Create a Build of Firefox Extension

This shell script will create a build of a firefox extension in linux. This is created according to my details(eg,…

Force Download Dialog with PHP using octect-stream

Use this code to force a download of any type of content with PHP header(“Content-type:application/octect-stream”); header(‘Content-Disposition: attachment; filename=filename_’ . date(‘Y-m-d’)…

Creating a SVN Tag

Creating a tag in SVN means that you copy the entire trunk to another folder in the ‘tags’ folder… svn…

Install CPAN in Fedora

If you are getting a ‘Can’t locate CPAN.pm in @INC’ error while opening cpan, you have not installed Bundle::Cpan. You…