grittyscripts.blogspot.com
Gritty Scripts of Death: Edit distances
http://grittyscripts.blogspot.com/2011/12/edit-distances.html
Gritty Scripts of Death. Monday, December 5, 2011. This is my magnum opus. Of sorts. I.e. it took me a long time and a lot of effort to get it done. This was mostly because I only worked on it while sitting in stuffy rooms listening to lectures of variable capacity to bore. It's a pretty ambitious project for a gritty script as it is, but having to re-learn all the stuff every time I picked at it did not help either. Here's a little brief on each of the algorithms and the actual code's way down below.
grittyscripts.blogspot.com
Gritty Scripts of Death: November 2009
http://grittyscripts.blogspot.com/2009_11_01_archive.html
Gritty Scripts of Death. Sunday, November 1, 2009. Colorful text, right? What else could you possibly. When you're playing around with your shell you can typically use a bunch of control sequences to set colors and styles to your text, but these are hard to remember. at least, in my experience. This script should provide a slightly easier way to use those controle sequences. E.g. when you want to have red bold text on white background, you'd normally go:. 033[31m 033[1m 033[47mSome text 033[m. This progr...
grittyscripts.blogspot.com
Gritty Scripts of Death: January 2009
http://grittyscripts.blogspot.com/2009_01_01_archive.html
Gritty Scripts of Death. Saturday, January 31, 2009. So, we've got this computer that we use as a router. and since it probably eats electricity like crazy, compared to an ordinary router, every night when everyone goes off-line somebody has to turn it off. And since programmers are lazy, we've been kicking around the idea of making a program that turns the damn thing off by itself. But since programmers are lazy, I only did it today, after a year of excuse finding (at which I am highly proficient).
grittyscripts.blogspot.com
Gritty Scripts of Death: August 2008
http://grittyscripts.blogspot.com/2008_08_01_archive.html
Gritty Scripts of Death. Monday, August 25, 2008. Another Ocaml script (although, I suppose it isn't a script, because I compile it). I really like to write in Ocaml, because it's a different kind of thought process. This one is just a little tool that I sometimes like to use, when I have to go through a file and change the name of some array or similar. Granted, this can be done automatically through many text editors, but sometimes it's a hassle to even open a file, especially if it's biggish. With an ...
grittyscripts.blogspot.com
Gritty Scripts of Death: November 2008
http://grittyscripts.blogspot.com/2008_11_01_archive.html
Gritty Scripts of Death. Friday, November 28, 2008. I was sitting in a hotel room without any Internet access and without much to do. and I made this simple script, to roll die. It uses the date to generate a random number, and then limits it to the specified range, from 0 to N. Quick and dirty way to generate random numbers between one and N,. Just like a die roll simulation. Optionally, a number of sides for the die,. But if this is not supplied, 6 is used by default;. Do the actual die rolls. Human re...
grittyscripts.blogspot.com
Gritty Scripts of Death: February 2010
http://grittyscripts.blogspot.com/2010_02_01_archive.html
Gritty Scripts of Death. Thursday, February 25, 2010. This has to do with an earlier script I wrote. For cheating at Scrabble. Etc You feed it a bunch of letters and it finds all the words that can be made from those letters. Immediately after I'd made that script I figured it would be fun to make that thing into a simple GTK. App, since I hear people making those kinds of things all the time, in context of scratching their own itches. Also I heard about this thing called Quickly. And lo and behold!
grittyscripts.blogspot.com
Gritty Scripts of Death: January 2011
http://grittyscripts.blogspot.com/2011_01_01_archive.html
Gritty Scripts of Death. Saturday, January 29, 2011. So I've recently fallen victim to that remote hobby of mine that is table-top wargaming, and have taken up FOW. At the local professional gaming store. Which results hugely from my having listened to an episode of The D6 Generation on the topic. The calculator is called Point'd. And can be used for any game with a two-tier two-player scoring system (where there are primary and secondary objectives). And subtraction ( -. Some screenshots and that. And i...
grittyscripts.blogspot.com
Gritty Scripts of Death: December 2008
http://grittyscripts.blogspot.com/2008_12_01_archive.html
Gritty Scripts of Death. Thursday, December 25, 2008. If you happen to have many computers in your local network, and you want to find out which ones are working at the moment without getting up, well, there are several ways to do this, probably. Same for when you have DNS turned on and want to know what IP addresses all those computers have got at the moment. So this might be yet another way to do this. It's written in Perl. Because writing it in Bash. I wanted to do the main monitoring using Perl.
grittyscripts.blogspot.com
Gritty Scripts of Death: July 2009
http://grittyscripts.blogspot.com/2009_07_01_archive.html
Gritty Scripts of Death. Monday, July 27, 2009. Uptime and battery state log. Here I go, posting two days in a row. I got one of those new-fangled Asus Eee PCs recently (with Xandros and not the other thing, obviously) and, being the paranoid freak that I am, I needed to check out how long the battery lasts. And I needed to do that every single time I used it. Stuff, and a license and some basic error checking, and decided to post it. To run at all, and if you want to print stuff out to stdout. T - sleep...
grittyscripts.blogspot.com
Gritty Scripts of Death: July 2010
http://grittyscripts.blogspot.com/2010_07_01_archive.html
Gritty Scripts of Death. Wednesday, July 7, 2010. OCD - the obsessive-compulsive daemon for checking websites for changes. Have you ever waited for results of an exam or something that were meant to appear on a website somewhere? This script is supposed to spare you pressing CTRL R. Every minute, by downloading the page every so often and comparing it with some prior version. Anyway, onto the technical stuff. Whereas doing that in a bash. The first of these can be done with wget. Then a giant while-true.