scripting

warning: Creating default object from empty value in /home/jeremych/public_html/cms/modules/taxonomy/taxonomy.pages.inc on line 33.

How I do Password Management

I thought I would share a trick that has eased my cross-platform and cross-network password management tasks.

I run a LAN subversion server, which keeps track of the revisions of my password vault. For storing, organizing and encrypting passwords, I use Password Gorilla which is a great cross-platform (linux, windows, mac) application using twofish encryption to secure everything. One master password unlocks all the rest. The password generator included in PG is great, and allows for customizations like not using similar digits (O and 0), as well as desired password length, etc. You can also override password defaults on a case-by-case basis.

The glue that ties this all together and makes it a networked application is a bash script on linux (I have not bothered to automate this on other platforms since I am in linux 98% of the time). For this to work, I have set up ssh keys (not necessary, but a pain to type a password each time), gentoo's cool keychain program, and ssh-askpass-fulscreen (is called different things on different distros ie: ssh-askpass-gtk on gentoo i believe).

Mencoder AVI to FLV Conversion

Here is what I am using so far:


#!/bin/sh

mencoder -forceidx \
-lavfopts i_certify_that_my_video_stream_does_not_use_b_frames \
-of lavf -ffourcc FLV1 \
-oac mp3lame -lameopts abr:br=56 -srate 22050 \
-ovc lavc \
-lavcopts vcodec=flv:vbitrate=250:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 \
-vf scale=360:240 \
-o $1.flv $1

UPDATE (07-05-2008):

MYSQL database dumps through ssh


#!/bin/sh

PASS=$1

for i in `/usr/bin/mysql --user=root --password=$PASS --batch --skip-column-names -e "show databases" | sed 's/ /%/g'`;do
nice -n 19 /usr/bin/mysqldump -u root -p$PASS "$i" > /home/backupsql/"$i".sql
gzip /home/backupsql/"$i".sql
done

Syndicate content

Check out Gangster Politics Montreal.