Linux
Perl Tricks
perl_modules.pl #!/usr/bin/perl use ExtUtils::Installed; my $instmod = ExtUtils::Installed->new(); foreach my $module ($instmod->modules()) { my $version = $instmod->version($module) || "???"; print "$module -- $versionn"; } remove_perl_module.pl #!/usr/bin/perl -w use ExtUtils::Packlist; use ExtUtils::Installed; $ARGV[0] or die "
Read moreUbuntu 7.04 Fiesty
I upgraded my work laptop to Ubuntu 7.04 Fiesty . The process was not as smooth as I expected. First it complained about not enough space on /var, so I cleaned up sufficient space.
Read moreThings that irk me!
As part of my job, I spend a lot of time assisting people when they are driving. But sometimes is can be trying. People that type commands, make a mistake, then backspace over typed text (like 10-20 characters), only to have to retype the text again.
Read moreLinux One Liner – dirtree alternative
Linux has a cool command called dirtree that gives a more visual representation of your directory structure. If you have the misfortune of working on a Unix variant that doesn’t have it, checkout this cool one liner.
Read moreDetermining Linux Video Driver Refresh Rates
I found this cool command called glxgears that you can run under X. $ glxgears 10524 frames in 5.0 seconds = 2104.650 FPS 10003 frames in 5.0 seconds = 2000.501 FPS 8417 frames in 5.
Read moreLinux One Liner – Erasing Stuff
Don’t try this at home unless you understand what it’s going to do. sudo dd if=/dev/zero of=/dev/hda1
Read moreQMail Admin
For some reason my vqadmin failed to create a new mail domain?? I know I had some /home permissions problems, but that was quite some time ago, perhaps I haven’t added a domain for mail in that time.
Read moreLinux One Liner – Finding Stuff
Let’s say you created a file in your home directory but can’t work out which directory you put it in. <br /> $ find ~ -name somefile.txt<br /> You can replace ~ (tilda) with a directory e.
Read moreLinux One Liner – Parsing long HTML urls
Ever wanted to look at a long HTML URL more easily, say to investigate a parameter. Here is a search from MapQuest. http://www.mapquest.com/maps/map.adp?formtype=address&addtohistory=&address=10%20Market%20St&city=San%20Francisco&state=CA&zipcode=94111%2d4801&country=US&geodiff=1 <br /> $ echo "[insert url here]" | | tr "&?
Read moreLinux One Liner – Security
Here are a few useful one liners for Linux Security. View current packet filtering rules. (i.e. what can and can’t access your computer. <br /> $ iptables -L<br /> On older distros, iptables may not be in place.
Read moreLinux One Liner – Using the manual
For users of Linux regardless of the skill level, using the OS manual is invaluable. Frank gives an example using crontab at Viewing a specific version of a man page , but as with Linux there is always more then one way to skin a cat.
Read moreLinux One Liner – Calculating Used Diskspace
You can easily see the state of diskspace used with the command. <br /> $ df<br /> However, often you want to know where most of the diskspace is being taken.
Read moreNew Category – Linux One Liners
I came across Frank’s blog Programming – Powerful One liners – “What can a one liner do for you?” Great Idea, I often use one line Linux commands and in my current consulting role, I’m being asked more and more Linux questions, which often result in a one Line answer.
Read moreA better VNC
I’ve been using VNCViewer from RealVNC under Linux to remote connect to an older machine running windows. Two reasons, I don’t need yet another screen on my desk, and I need windows to adequately test and use the MySQL GUI products, in particular MySQL Workbench.
Read more