2011
09.13
Mount a Samba (CIFS) filesytem first via GUI, then:
mkdir -p /tmp/smbshare/tmp/ipkg &&
cd /tmp/smbshare/tmp/ipkg
wget http://downloads.openwrt.org/whiterussian/packages/libpcap_0.9.4-1_mipsel.ipk
ipkg -d smbfs install libpcap_0.9.4-1_mipsel.ipk
wget http://downloads.openwrt.org/whiterussian/packages/tcpdump_3.9.4-1_mipsel.ipk
ipkg -d smbfs install tcpdump_3.9.4-1_mipsel.ipk
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/tmp/smbshare/usr/lib"
PATH="$PATH:/tmp/smbshare/usr/sbin"
Source: http://www.dd-wrt.com/phpBB2/viewtopic.php?p=407287
2011
09.08
From here:
wget -O - http://www.mvps.org/winhelp2002/hosts.txt | grep 127.0.0.1 | sed -e '2,$s/127.0.0.1/0.0.0.0/g' -e 's/[[:space:]]*#.*$//' > /etc/hosts
logger "$0: Hosts-file downloaded"
stopservice dnsmasq
startservice dnsmasq
logger "$0: DNSMasq restarted"
2011
07.30
You sometimes find a SSH session gets frozen – especially when the remote connection suddenly vanishes. To reset, use:
Enter - Tilde - Dot
As in:
The Enter key,
A “~” character (tilde)
A “.” character (dot/full-stop)
2009
09.05
This will unrar all the rar files matching the pattern into the current directory, ignoring pathnames (-ep) and force overwrite (-o+) – handy for unrar’ing ISO’s.
for f in /source/dir/*.rar ; do unrar x -ep -o+ $f ; done
2009
08.22
An absolutely brilliant platformer in 3D that has kept us entertained for a long time. Loads to do, loads to explore, good progressive difficulty, no two levels are the same or repetitive.
2 year old Jack: Excellent!
Daddy: A true work of art.
Gamespot review
2009
08.22

Wolfenstein
Bloody marvelous FSP in a Nazi/scifi stylee.
Action right from the start – no retarded training missions. Cut scenes you can skip parst (yay!). Excellent GFX – runs fiine on my 2 year old PC. Good level detail – lots of exploring to do. Upgradeable weapons.
All round, it’s a winner.
Wolfenstein site
2009
08.17
I use Firefox in Ubuntu and prefer the way the backspace key works in Windows – that is, the same as the ‘back’ button. To do this, go to “about:config” in the Firefox address bar, accept the warning and set “browser.backspace_action” to a value of 0.
2009
08.17
I needed a str_ireplace function for PHP4 (it’s a new in PHP5). It does a case-insensitive string replace thing.
function str_ireplace4($needle, $replacement, $haystack) {
$i = 0;
while (($pos = strpos(strtolower($haystack),strtolower($needle), $i)) !== false) {
$haystack = substr($haystack, 0, $pos) . $replacement.substr($haystack, $pos+strlen($needle));
$i=$pos+strlen($replacement);
}
return $haystack;
}
2009
08.17
rtGui is a web based front end for rTorrent – the Linux command line BitTorrent client. It’s written in PHP and uses XML-RPC to communicate with the rTorrent client.
For more information on rTorrent, see the home page: http://libtorrent.rakshasa.no/
Features
- List all torrent downloads or by started/stopped/complete/incomplete/seeding status.
- Ajax-style refresh information without reloading page.
- Sort view by any of the displayed columns.
- View detailed torrent information.
- Stop/start/hash-check torrent.
- Set upload/download speed cap.
- Add torrents by URL.
- Upload torrent to rtorrent watch-directory.
- Set priority per torrent or file.
- Peer listing.
- RSS Feed of completed torrents (rssfeed.php).
- Does not require mySQL or any other database.
- Bulk Stop/Start/Delete/Priority set.
- Tracker URL display with configurable colouring.
- Integrated RSS News Feed reader – download torrents directly to rTorrent (still work-in-progress).
- Filter torrent list by tracker.
2009
08.17
I’ve replaced the Ubunutu/Gnome screensaver with the superior (IMHO) Xscreensaver, using this guide.
I like the VidWhacker module, and have it set to choose a random image from my ~/Pictures/ dir. I wanted to save some of the funky random images it produces, so I did this:
while true; do /usr/lib/xscreensaver/vidwhacker -stdout | convert - `date +%s`.jpg ; echo "Generated jpg"; done
2009
08.17
Out driving the other day with 2 year old son in the back. We go through a tunnel and the GPS announces “GPS signal lost”.
Voice from the back of the car: “Oh no Daddy – the GPS is lost!”