2007-04-17

borker.py

Silly little script to modify a file.
$ cat Xorg.0.log
<...>
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
<...>
$ borker.py Xorg.0.log
bork bork bork
$ cat Xorg.0.log
<...>
bork: (--) bork, (**) bork bork bork, (==) bork bork,
(++) bork bork bork, (!!) bork, (bork) bork,
(bork) bork, (bork) bork, (bork) bork bork, (??) bork.
<...>
borker.py

2007-04-10

python command line hex calculator

This is a _really_ simple command line hex calculator. Mostly just learning more python.

$ ccalc.py 0xa+5
15 0xf 0o17 0b1111
$ ccalc.py 0xa + 5
15 0xf 0o17 0b1111

ccalc.py

2007-04-09

wwmii

I recently switched from ion3 to wmii for a change. I really enjoy it. Among other things, you can use whatever programming language you like to customize your setup.

I wrote a python script to give me a little more status for my system. Here is what it does.

$ status.py
--{ *AC* 99% + 81% on + 0.70 0.52 0.45 + N/A 00 + Mon 2007-04-09 11:45:23 MST }--
status.py

2007-04-02

boring

$ `perl -e 'print "\x64";'``ruby -e 'print "\x61"'``python -c 'print "\x74"*1'`e
Mon Apr 2 14:39:00 MDT 2007