Posts under terminal heroes

Keeping processes alive using God’s power

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

God is a nice “framework” and daemon to watch Linux processes and restart them if necessary. As I’ve configured it today to work on an ubuntu machine here’s a quick howto: First install ruby, gem and god. apt-get install ruby, rubygems gem install god Then paste this initscript into /etc/init.d/god: got init script. Configure it [...]

Tags: , , , , , , , ,

[release] Sidewinder X6 MacroKeys on GNU/Linux

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

I’ve released my keyboard event mapper for the Microsoft Sidewinder X6 in an quite usable state right now. Take a look at sidewinder-x6-linux-macro-key-events on github. Here’s a quick description what it does: As the Sidewinder is an Microsoft keyboard, it obviously does all it can to not work at it’s full potential on GNU/Linux systems [...]

Tags: , , , , ,

[git] bisect + maven = automate “breaking” commit search

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

Hey there guys. I hope some you enjoyed my presentation on SFI last weekend. The workshop was kinda chaotic (network problems mailny) but I’m sure some of you got convinced to use, or begin with trying out, git in yout next projects… :-) Well, that was all nice and cool but git (other DVCS have [...]

Tags: , , , , , , , ,

[terminal heroes] Display git branch in shell prompt (PS1)

Posted by Ktoso under english, fun, guide, terminal heroes (2 Responds)

I don’t think I’ve blogged about this but I’ve seen this sometime ago and now decided to add it to my .bashrc for good. It’s a simple trick to make an awesome PS1 shell prompt, displaying the branch you are currently on (if you’re in a git versioned directory). Not that I’m forgetting what branch [...]

Tags: , , , , , , , ,

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

git-hacking: pre-commit hook and custom command

Posted by Ktoso under coding, english, freedom, fun, java, terminal heroes (1 Respond)

As my team is using a kinda weird source eclipse code formatter setup, that other IDEs can’t emulate in 100% I sometimes found myself committing in a file with only a few changed spaces. Of course, I could use “external-formatter” plugins etc but that’s no good. Running eclipse’s formatter each time I want to format [...]

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

Creating an polish.dic for IntelliJ IDEA

Posted by Ktoso under coding, english, java, polish, terminal heroes (3 Responds)

I’ve been coding a lot GWT/Android lately, and was using IntelliJ IDEA for this – a very nice IDE. (Yup, I’ve even got an personal license now). That said, the spellchecking is really important to me, sadly I couldnt find an ready do download polish.dic file which IntelliJ would then use to spellcheck our i18n [...]

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

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