Wednesday, March 31, 2010

Ubuntu (jaunty/9.04) - Delay in print dialog

We use a 'Konica Minolta c451' printer at work and I have been having this issue since I upgraded to Ubuntu 9.04 (Jaunty). The bug has been reported here: https://bugs.launchpad.net/ubuntu/+source/gtk+2.0/+bug/475845

The temporary recommended solution is to comment out the following in /etc/cups/cupsd.conf:
##Listen /var/run/cups/cups.sock

Tuesday, March 16, 2010

Extracting subtitles with MKVmerge

check the tracks with:
mkvinfo "filename.mkv"
extract the subtitle track with:
mkvextract tracks "filename.mkv" 3:subs.srt

Monday, February 22, 2010

Decode captcha in bash

  1. convert input image to grayscale using imagemagik
    convert input.png -colorspace Gray output.tif
  2. decode with tesseract
    tesseract output.tif result; cat result.txt

Bash wordlist/dictionary generator for brute-forcing

This example code will generate passwords of 4 characters only. To generate bigger passwords, there has to be more loops (pretty obvious in the code below). Happy Brute-forcing !!
1 #!/bin/bash
2
3 list=`echo {0..9} {a..z} {A..Z}`
4
5 for c1 in $list
6 do
7 for c2 in $list
8 do
9 for c3 in $list
10 do
11 for c4 in $list
12 do
13 echo $c1$c2$c3$c4
14 done
15 done
16 done
17 done
18

Friday, February 19, 2010

Cutting MKV files with 'mkvmerge'

mkvmerge --split timecodes:00:28:00,00:34:42 'input.mkv' -o 'output.mkv'