code
I have been teaching myself to program for the last few years. Although I am no professional, and a lot of people might just laugh at my efforts, I have finally gotten to the level where others may find my code useful, so here it is. Unless otherwise specified, all of the code here is released under the artistic license. As I say, I am learning, so comments and criticism are encouraged and appreciated. What is not appreciated is plain old flaming. If you are not going to offer any useful advice about my code then please do not write me just to say how brain-dead my code is. I already know that ;)
I suppose my most successful project has been dir2ogg if we are basing 'success' on the downloads/deployment of the program. This may be old hat for most Open Source coders, but it still tickles me that I have surreptitiously discovered other people packaging up dir2ogg for ease of installment on their chosen distribution. Also I find a lot of people recommending it on various mailing lists and forums, so, thanks folks!
On with the code: Each headline link below goes to a separate page for each project, where you can read instructions on use, full source code listing, and the source in compressed downloadable form. An 'A' after the name indicates the code is abandoned, that is, it is not completed (though still may be usable) and I don't plan to resume work on it. A 'D' after the name indicates the code is currently in development, and updates are ongoing. An 'F' after the name indicates that the code is finished, that is, I am not adding new features, and the code is expected to remain the same. I will only fix security issues with 'F' projects.
Python
The large majority of my stuff is written in python because it is the language I know the best, and also because it is one of the easiest languages to write useful code in a short amount of time.
dir2ogg:: D :: *.mp3,*.m4a,*.wav -- > *.ogg
dir2ogg converts mp3,m4a, and wav files to Ogg Vorbis format. It supports converting an arbitrary number of directories at once, and recursively converting arbitrary directories. It preserves ID3 tags, and will even write tags if there are none in the original file.
sysinfo.py :: D :: display succinct yet detailed system information
sysinfo.py prints detailed system information to the console. Different reports can be generated depending on the modules choosen at run time. Current modules include CPU info, memory info, kernel info, hardware info, network info, partition/filesystem info, user/group info, and installed package info.
kgrab.py :: D :: download kernels from kernel.org
Kgrab is a python script to download the source code for arbitrary kernel versions (bz2 or gz). It supports GeoIP/kernel.org mirrors to speedup downloads, and also allows you to just grab a changelog.
cfgcl.py :: F :: configuration file cleaner
cfgcl.py is a short script that cleans up config files. I just hate it when someone posts their entire xorg.conf to a forum or list when it is about 75% blank and commented lines. Save internet bandwidth and run it through this script first!
panagram.py :: F :: self-documenting panagram bruteforcer
panagram.py is a python script which uses a brute-force algorithm to find self-documenting panagrams. A self-documenting panagram is a sentence which enumerates its own letter count.
pyportknock :: D :: python portknocking implementation
This is a quick implementation of a portknocking client and deamon intened for use on a Linux, or with some modification, any UNIX system. It is based heavily on the work of Marilen Corciovei, and was written mostly as an exercise.
stock.py :: D :: retrieve stock quotes
Here's a quick script to get stock quotes from finance.yahoo.com. It features a ticker option, and will soon have many more features...
wmainfo-py :: D :: Python library for getting info from WMA files
wmainfo-py is a pure Python library for low-level parsing of WMA headers. It returns meta tags and other such information from the file.
Ruby
sneetchalizer :: D :: converts between arbitrary audio file formats
The sneetchalizer is like dir2ogg on steriods. It will take mp3, ogg, m4a, m4b, mp4, aac, wav, flac and wma files and spit them out in one of mp3, ogg, m4a, flac, or wav format. Meta-tags are taken care of, and like dir2ogg you can pass file and directory arguments.
panagram.rb :: F :: self-documenting panagram bruteforcer
panagram.rb is a Ruby script which uses a brute-force algorithm to find self-documenting panagrams. A self-documenting panagram is a sentence which enumerates its own letter count.
wmainfo-rb :: D :: Ruby library for getting metadata from WMA/WMV files
wmainfo-rb is a pure Ruby library for low-level parsing of WMA headers. It returns meta tags and other such information from the file.
flacinfo-rb :: D :: Ruby library for getting metadata from Flac files
flacinfo-rb is a pure Ruby library for low-level parsing of Flac blocks. It returns Vorbis Comments and other such information from the file.
rmips :: D :: Mips32 assembly language emulator and associated tools
This is still alpha, and all but unusable for all but the most brave of Ruby hackers, but it is coming together. The Bitstring class, and Signedness module are pretty much done however.
C/C++
dgnu tools :: D :: darren's gnu tools
One night whilst drunk I came up with the idea to rewrite all the gnu core and proc utils from scratch as a way to teach myself C. While it is doubtful I will ever accomplish this mighty goal, I have managed to finish free and uptime, and cat and rm are usable, though they do not have all the gnu options implemented yet..
Other
Sieve of Eratosthenes :: Sieve of Eratosthenes polyglot page
The classic 'Sieve of Eratosthenes' algorithm in as many languages as possible. Contributions are welcome.
stats
It is
Friday May 09, 2008 8:26 pm
This page served 4717 times
This page last modified: April 14, 2008 11:28 am
Your IP address is: 38.103.63.18
You are browsing using: CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
You are browsing from: United States.
badcomputer.org's uptime: 20:26:30 up 15 days, 21:08, 1 user, load average: 0.13, 0.03, 0.01
local
home | unix stuff | dir2ogg | sneetchalizer | wmainfo | q&d guide to permissions | q&d guide to tar and gzip | code | MS rant | browser shootout | linux & iAudio X5 | photos | music | programming poetry | sieve of Eratosthenes | plea | rain | suffer | archive | about | recipes | compaqr3000 | sitemap
search
credits
This page, and all pages on this site were created and are maintained by Darren Kirby using valid XHTML 1.0 and CSS, and are ©copyright 2002 - 2008. The Penguin image was created by Tukka, and is used by permission. Inspiration for the look of this site was provided by Eric A. Meyer's CSS gallery. This website runs on Gentoo Linux. It is served by Apache. PHP and MySQL hold together the backend.