hacks

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

Raspberry Pi Code and Hacks

There is a new site up at http://kohd.ca with some interesting raspberry pi projects, code and ideas.

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).

Main Page - IEs4Linux

IEs4Linux is the simpler way to have Microsoft Internet Explorer running on Linux (or any OS running Wine).

No clicks needed. No boring setup processes. No Wine complications. Just one easy script and you'll get three IE versions to test your Sites. And it's free and open source.

IEs4Linux

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

Prepopulate and Bookmarklets in Drupal

OK, so FINALLY I figured how to get my old blog and link bookmarklets working again in Drupal.

You need to install the prepopulate module first.

JQuery Additions to Site

JQuery is now being used to provide some site features.

One of the first things I added was a floating block tab box, using both the rounded corner plugin and the tab plugin.

The tab box reads the h2.title from the enabled block, and transfers that title to the tab. The usual title of the block is hidden using CSS so it is still readable as a DOM element.

Features:

  • Tabs disappear if block is not enabled
  • 3 tabs, more than 1 block allowed in each tab
  • content is hidden until block is fully assembled, then fades in, pushing content aside

DeCSS Truth?

Some common unknown truth about DeCSS


So, you heard about Jon Johansen, the Creator of DeCSS? A brave soul,
which only intent was to help the linux community playing DVDs? And
you know, that the sole reason why he released only a windows version
of DeCSS was that Linux didn't supported DVD (or UDF) at that time?

Work Friendly

Pretty cool way to hide your surfing from prying eyes. Try it out, you will love it, I promise :)

 

http://www.workfriendly.net/

Cross Compiling to Ubuntu or Debian System from Gentoo client

Came across this error while trying to set up my 2 ubuntu boxen to compile with distcc for my gentoo laptop and workstation.

(dcc_execvp) ERROR: failed to exec i686-pc-linux-gnu-gcc: No such file or directory

Solution:

add

CC='gcc'
CXX='c++'

addLoadEvent

OK, so I had a problem with this theme disabling the javascript functions within Drupal, specifically the collapsible fieldsets in the administration>settings page. This, after much hair-pulling was due to the rather dumb fact that I was using a window.onlad call in my custom javascript that powers the theme.

Syndicate content

Check out Gangster Politics Montreal.