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
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
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:
coding,
free software,
git,
gitosis,
guide,
open source,
terminal,
webdeveloper
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
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:
bash,
coding,
java,
jee,
linux,
shell,
terminal
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:
agh,
centos,
coding,
database,
gnu,
gnu/linux,
hack,
jmeter,
linux,
mariadb,
mysql,
open source,
python,
redhat,
terminal
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
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:
blender,
coding,
gnu/linux,
linux,
terminal,
tricks
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:
gnu,
gnu/linux,
hack,
linux,
open source,
terminal,
tricks,
vim
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:
bash,
coding,
command line fu,
gnu,
gnu/linux,
hack,
linux,
open source,
terminal,
tricks