Coredump
Work, play, and everything in-between [feed]

Posts Tagged ‘linux’

Generate random strings

(Another “piecemeal” post. Yes, I know: I should write more often.)
I cycle through one-off passwords (of varying lengths). To generate these, I use the following shell script:

#!/bin/bash
 
usage() {
echo "Usage: `basename $0` [length]"
}
 
[ $# -gt 1 ] && usage && exit 65
 
[ $# -eq 0 ] && len=8 || len=$1
 
strings /dev/urandom | grep -o [...]

Find duplicate files

Update: As Pádraig Brady, fslint maintainer, pointed out: fslint/findup *is* a shell script.
My 500-GB Seagate FreeAgent Desktop is almost filled to the brim (there’s *only* ~70GB free space left) so I need to find all duplicate files for clean-up.
Fortunately, there are tools to do just this. I tried fslint, which is also available in [...]

Upgrading to Fedora 12

…was pain-free. Well, almost.
The prep work for Fedora’s latest version, Constantine, involved backing up important files and freeing up space. Like my move from Fedora 10 to 11, I used PreUpgrade (I’ didn’t want to do the yum upgrade route — it was too much work for something that should be trivial by now).
Reading through [...]

Fix for Picasa 3 Linux login problem

(Update: Just realized that this isn’t a fix but a workaround. The fix would be for Google to bundle the working Wine binaries. (Then again, they most likely use the stable release, while Fedora uses the current development one. Oh well…))
Picasa 3 for Linux has this niggling* problem: you can’t log on to Picasa Web. [...]

Get Twitter timeline from the CLI

We already know how to update Twitter from the command line. To get your and your friends’ timeline from the CLI, use the following one-liner:

curl -u username –silent "https://twitter.com/statuses/friends_timeline.rss" | perl -ne ‘print "$2\n" if /< (description)>(.*)< \/\1>/;’

Using the same method, you can also get unread Gmail inbox messages (via commandlinefu.com).

« Before