I recently started playing Battlefield 3 and remembered that I have a Fraps license so I installed it and started recording some stuff. Unsurprisingly the performance made a big dip when I recorded. A glance at my PC told me the harddrive was at fault, probably bringing the whole system down due to IO.
Since my PC has [...]
Category > Programming
How to increase Fraps performance with a ramdisk
How to build an efficient GeoIP SQL table
This here is a very handy little script I threw together to generate a geoip.sql table for quickly determining which country a IP is from. I already hear you saying “Just convert the IP to an INT and use BETWEEN, how hard can it be”. And you are right, that works. And it may even [...]
How to easily add colored text output in bash scripts
Here is small snippet that can give your shell scripts some nice output: colortext.sh As with the debug.sh script, just download it to the same directory as your own script and add it with
Select All Code:. colortext.sh
It contains one simple function called text with the syntax text <color> “text to be output”. Color can be red, [...]
How to add debugging to shellscripts
Debugging bash scripts is pretty straightforward, throwing around a couple echo and set -x quickly gives you what you need. But what if you want to add a nice breakpoint, debugging to lots of paces in the code or turn all debugging on or off at once? Then this little script I wrote is the [...]
Disemvoweling
Talk about weird words … ok, according to Wikipedia disemvoweling is the term for replacing or removing vowels from words. Commonly used as a tool for moderating. I’m pretty sure everyone has run across certain disemvoweled words on the internet like f*ck or sh*t. Anyway I went and made a pure html/javascript page that does just that, [...]



