G73 keyboard backlight scripts

Posted by Ktoso under coding, freedom, fun, gaming, guide, terminal heroes (18 Responds)

I’ve upgraded my desktop and laptop last week. By “and” I mean that I’ve bought an desktop replacement class notebook – an Asus G73 series. Amongst many nice parts it has I’m very happy about the harddrives – Seagate Momentus XT, click the link to see an very interesting benchmark of it. Anyways, that’s not [...]

Tags: , , , , ,

[Terminal Heroes] sed mastery – group catching

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

Just a quick sed (the stream editor) example, as someone from work needed it a few minutes ago and I was more happy to supply an quick solution: # replace the href part [ktoso@homunculus ~]$ cat sedmastery    <a href="#" id="hibernate">Hibernate</a>    <a href="#" id="html">HTML</a>    <a href="#" id="js">JavaScript</a> [ktoso@homunculus ~]$ sed 's|\([^#]*\)#\([^>]*\)>\([^< ]*\)|\1/\3\2>\3|g' sedmastery [...]

Tags: , , ,

Installing Git with Gitosis

Posted by Ktoso under coding, guide, java, Project13 (No Respond)

Git is really simple and VERY powerfull. It makes svn look like an idiot – but that’s just my personal opinion ;-) Anyways, I’m using github most of the time, but now I’d like to hava a non public repository (yet remote) for some small project. I’ve been commiting to a local git instance from [...]

Tags: , , , , , , ,

Terminal Heroes 8: Memory usage scripts

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

I have a low-memory VPS running online and thus always have to worry about what uses how much memory… Of course top and my favorite htop are very good tools to check this, but sometimes I just want to get a super simple report if I’m overusing memory or not yet. The bellow scripts (most [...]

Tags: , , , , , , ,

Kill only Tomcat

Posted by Ktoso under coding, java (No Respond)

There is sometimes the need to kill some JVM, I usually use “killall java” and that works fine as long as that’s in fact what I want – kill ALL. But let’s say i just want to kill Tomcat and not my IDE? The below method works quite well in such an situation: [ktoso@homunculus ~]$ [...]

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: , , , , , , , , , , , , , ,

Fixing Blender problems on IntelGMAX4500

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

I’ve recently bought a new laptop, a 15.6” HP Probook, that replaced my netbook Asus EEE 900 (needed some bigger hardware to work on “on the move”). One problem I encountered was blender not displaying correctly if I’d expand any dropdown menu etc. The fix is very simple yet powerfull, just set the following: LIBGL_ALWAYS_SOFTWARE=1 [...]

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: , , , , , , , , ,