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:
admin,
centos,
devops,
fedora,
god,
keep alive,
process watch,
ruby,
ubuntu
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:
keystroke,
linux,
macro,
sidewinder,
sidewinder x6 linux,
xdotool
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:
#maven,
bisect,
coding,
git,
java,
runner,
SCM,
TDD,
testing
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:
bash,
branch,
git,
prompt,
ps1,
shell,
terminal heroes,
tips,
tricks
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:
bash,
fsf,
linux,
notebook,
script,
terminal
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:
#eclipse,
coding,
git,
hack,
intellij,
java,
netbeans,
SCM,
tip,
xsolve
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:
coding,
sed,
shell,
terminal
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 [...]
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:
bash,
centos,
coding,
gnu,
gnu/linux,
shell,
terminal,
tricks
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:
coding,
cool,
freedom,
gnu,
gnu/linux,
hack,
hacking,
linux,
open source,
shell,
terminal,
tip,
trick,
tricks,
wget