GitHub Diff in Gmail

Posted by Ktoso under coding, english, fun (3 Responds)

Hi there, below is the (horribly trashy and chaotic – as it was hacked up in about 2/3 hours) source for my Google Gmail Contextual Gadget. It extends Gmail by parsing all links passed in an email, and if an github commit link is found it displays the diff for this commit. With coloring etc [...]

Tags: , , , , , ,

MySQLIntegra: dbfiller & wiki

Posted by Ktoso under coding, null (No Respond)

I passed all my exams at my first attempt and should have now some time to relax, right? Well something like that, I’m actually doing quite a lot these days. We’re on the roll with MySQL Integra. Our server “Kopiec” is somewhat online (running CentOS off course) – we’re able to start/stop if thanks to [...]

Tags: , , , , , , , , , , , , , ,

(Almost) Automatically convert files into PDF

Posted by Ktoso under coding, freedom, fun, terminal heroes (No Respond)

I’m learning Numerical Analysis right now and a friend of mine found some really nice PS files by dr Marian Bubek ( http://www.icsr.agh.edu.pl/~mownit/mownit.html ). I was really happy to see some *.ps but some people from my fellow students started complaining that they’d rather have pdf’s and not ghostscript files (who knows why they’d do..?). [...]

Tags: , , , , , , , , , , , , , ,

Vim Hacking – 1 – vis

Posted by Ktoso under coding, terminal heroes (No Respond)

Vim is a really amazing text editor (though I’d like to learn Emacs too soon… :-)) and it can be easily expanded to be even more useful. One super cool extension I found is: vis — it allows powerful sed-like line modification (you could use sed from inside vim, but that’s not really “handy”). Vis [...]

Tags: , , , , , , ,

Terminal Heroes – 6 – Track X events

Posted by Ktoso under coding, fun, terminal heroes (No Respond)

Another Command Line Fu oneliner I’ve sumbited today: #show X window events in chosen window $ xev -id `xwininfo | grep 'Window id' | awk '{print $4}'` EnterNotify event, serial 13, synthetic NO, window 0×6400053,     root 0x13c, subw 0x640005b, time 42431610, (367,0), root:(369,63),     mode NotifyNormal, detail NotifyVirtual, same_screen YES,     [...]

Tags: , , , , , , , , ,

Terminal Heroes – 4 – regexpias lair

Posted by Ktoso under coding, freedom, fun, terminal heroes (2 Responds)

Let’s drop a little humor in this time… You, brave Terminal Hero, shall kill -9 the daemon that has hidden itself in one of those files! We don’t know in which file you can find it though! We’re running out of time! The kingdom of GNU will be rm -rf‘d if you won’t make it [...]

Tags: , , , , , , ,

Smart webpage migration

Posted by Ktoso under coding, freedom, guide (No Respond)

I recently had to migrate a big website – about 5GB – to a new server. That could take a while to do, right? Well, maybe if you did it like that (the not smart way): Thanks goodness I’m not really keen on doing stuff the slow “not_smart” way, and the new server is a [...]

Tags: , , , , , , ,

Google Analytics GUI fix

Posted by Ktoso under coding (No Respond)

I really like the google analytics tool, yet it doesn’t seem that all it’s styles where writen carefuly… Take a look at this: So… Which button is the confirm one…? Yup, the colors are screwed up! I guess that’s becouse they didn’t think that someone could have a dark OS skin that would also skin [...]

Tags: , , ,

mencoder mastery – part 2

Posted by Ktoso under coding (No Respond)

Tym razem małe polecenie włączające zewnątrzny plik mp3 (z ogg zadziała tak samo): #poniższe polecenie bierze plik old.avi, i łącząc go z sound.mp3 (zachowując jego codec audio) tworzy plik new.avi mencoder old.avi -o new.avi -ovc copy -oac copy -audiofile sound.mp3 #analogicznie możemy wziąć plik audio w innym formacie i przetworzyć go np na mp3, wtedy [...]

Tags: , , , , ,

mencoder mastery – part 1

Posted by Ktoso under coding, guide (No Respond)

Skoro była taka seria z wgetem, to przyszedł czas na to samo z mencoderem. mencoder to program do ogólnie pojętej obróbki plików video. Jeżeli korzystasz z jakiegoś okienkowego programu do modyfikowania wideo pod linuksem, z dużym prawdopodobieństwem jest on nakładką na mencodera :> Dzisiejszy temat to obracanie całego filmu: mencoder -ovc lavc -vf rotate=1 -oac [...]

Tags: , , , , ,