Archive for the 'Linux' Category

I got 99 problems but a bitch ain’t one!

Thursday, August 23rd, 2007

#!/bin/bash

if [ -f girlproblems.txt ]
then
FEELINGS=”bad”
PROBLEMS=`cat myproblems.txt | wc -l`
if [ $PROBLEMS == "99" ]
then
BITCHES=`cat myproblems.txt | grep bitch | wc -l`
if [ $BITCHES == "0" ]
then
echo “a [...]

Grep all files in a directory for a string

Saturday, June 30th, 2007

grep -i -r somestring ./
-i means ignore case
-r means recursive
Simple stuff, but useful nonetheless.

Opera 9.20-beta Slackware Packages

Sunday, April 1st, 2007

Opera has released an official beta build of its upcoming version 9.2 of the popular web browser. One of the big drawcards for this release is the inclusion of something they call “Speed Dial”. Basically, it is essentially a launchpad for your favourite sites which is displayed in any blank tab or window. Below is [...]

Ballmer reissues patent threat against Linux

Wednesday, February 21st, 2007

Steve Ballmer has fired off another warning shot across the bow of the Linux users and open source vendors in general by repeating his threats to sue companies that do not respect Microsoft’s intellectual property.

Linux leads Windows and OSX in flash-player version

Friday, January 19th, 2007

For the first time in recorded history (ie. as far as I can remember), linux is actually leading the pack when it comes to flash-player versions. The screenshot below is taken straight from the Adobe website no less than a few minutes ago:

Notice that Linux is at version 9,0,31,0, while both Windows and OSX are [...]

Opera Slackware packages

Tuesday, June 20th, 2006

Current testing release
opera-9.20b_20070323.5-i386-1_hno.tgz
opera-9.01_20060629.6-i486-1hno.tgz
Current stable release
opera-9.10_20061214.5-i386-1_hno.tgz
opera-9.0-i486-1hno.tgz
About the above packages
The opera desktop team have been releasing weekly builds of the upcoming recently released version 9.0.
I have been creating opera slackware packages for each one of these releases for my own personal use, and considering the fact that 9.0-final has been released, I thought that might as well [...]

Recursively chmod directories only

Monday, June 19th, 2006

find . -type d -exec chmod 755 {} \;
This will recursively search your directory tree (starting at dir ‘dot’) and chmod 755 all directories only.
Similarly, the following will chmod all files only (and ignore the directories):
find . -type f -exec chmod 644 {} \;

Stop New Mail Notifications in Bash

Friday, September 30th, 2005

This is going to be short and sweet.
Does it bug you everytime you use bash on your linux box (via a terminal-emulator, ssh or otherwise), and it echos new mail notifications every five minutes? Well, if you are signed up to some high traffic mailing lists like I am, you will know my pain.
Here is [...]

AVI + AVI + Linux = DVD

Thursday, August 11th, 2005

This one is for the code vault, and for my own personal reference.
Situation:

You have a movie you really like, but for some reason (such as being a dirty movie pirate.. arrrr!) the movie has been split into multiple files of <700MB for burning across multiple CDRs.
You infact own a DVD burner, and as such, want [...]

What happened to my Plesk Updater?

Sunday, July 24th, 2005

I ran into this problem today when updating a client’s server to the latest version of Plesk.
Did you know that upgrading to >7.5.2 disables the ‘Updater’ button in the ‘Server’ section of Plesk?
I didn’t, but after a bit of head-scratching I found the ‘fix’. (NOTE: Not really a ‘fix’ as nothing was really broken - [...]