Coding Category

You are currently browsing the archives for the Coding category.

Cisco Configuration Manager

February 27, 2006 @ 8:30 pm

This project provides tools to manage configurations for Cisco devices. At the heart of the project is a tftp daemon written entirely in PHP. Configurations are read and written to the tftp server using a file path that incorporates a password feature for security. The current version of each device configuration is stored in a mysql database. Subsequent changes to the configurations are stored in diff format to provide revision history. A web frontend is provided to manage devices and view configurations and history. (more…)

Adi’s AdSense Manager

November 10, 2005 @ 2:11 am

The other day I signed up for the Google AdSense program. No problem integrating the AdSense code into static pages here or there. Wordpress was a different matter. I could add code manually in templates but adding it to posts didn’t go over so well. Wordpress applied formatting to the AdSense code which broke things.
(more…)

Image Popup Javascript

February 20, 2005 @ 12:11 am

I know that popup windows are being frowned upon at most times. However, I personally like the use of a popup window to obtain the larger version of an image thumbnail on a page. I make liberal use use of this on my web pages. One of my attempts of a popup image window is described here. (more…)

Redirect HTTP Requests

October 18, 2004 @ 9:35 pm

Here is a small perl script I wrote to redirect http requests from one server to another. Intead of running web server software, such as apache, this little script is invoked by inetd. The inetd daemon is configured to listen to port 80 and any incoming connection to port at is passed to this script to be handled. I make no claims that this is secure or reasonable thing to do.
(more…)

W3C Validator Javascript

February 9, 2004 @ 11:39 pm

I used to like some small unobtrusive links to the various W3C html and css validators at the bottom of my pages. Instead of mainting these links by hand I decided to write some litte Java for the task. The solution I came up with is W3C compliant in that browsers not capable of Javascript simply won’t display the links. (more…)

rcsh

@ 11:26 pm

The rcsh term stand for ‘restricted command shell’. The purpose of it is to severly limit the access shell accounts have on a server. If rcsh is specified as shell command in ‘/etc/passwd’, only command available in a specific directory can be executed. (more…)

Procmail-DNSBL

January 7, 2003 @ 10:09 pm

Way back when there was a time when my mail was handled by sendmail, procmail and UW-imapd. I came up with a procmail recipe that would lookup sender ip addresses in various DNSBL services.
(more…)

speak_time, an IRLP Custom Script

October 27, 2002 @ 1:22 am

Introduction to speak_time
When I first started with IRLP I wrote a few custom scripts for my node. This script announces the local system time. (more…)

speak_temperature, an IRLP Custom Script

@ 1:14 am

Introduction to speak_temperature
When I first started with IRLP I wrote a few custom scripts for my node. This script announces the temperature. The temperature is obtained via a Dallas DS1820 1-wire sensor attached to the nodes serial port. digitemp is used to read the sensor, a precompiled static digitemp binary has been included for convenience. (more…)

cwid, an IRLP Custom Script

@ 12:59 am

Introduction to cwid
When I first started with IRLP I wrote a few custom scripts for my node. This script plays a CW ID on a regular basis. It uses playmidi and a midi file to id the repeater. The scripts default timing adheres to Canadian regulation. It ids at 20 minute intervals, but yields to ongoing conversations for up to an additional 2 minutes. It only ids if there is activity on the repeater. It will not id during extended periods of inactivity. The actual timing is easily configured using variables. (more…)

Next Page »