Category Archives: Code

Getting Started with Itty – The Very Small Erlang Webserver

Itty is a tiny webserver, written in Erlang, for the purposes of learning Erlang. The code is not very pretty, but it is an attempt to learning how a webserver works while teaching myself Erlang.  My hope is to someday have a somewhat complete (robust, all the expected features, minimal bugs, and concise) version of [...]

A Totally Useless Port Scanner To Teach You Some Python

In case you are viewing this in a RSS reader: please refer to the following “gists” the scanner code and the output to follow along with the post. I would like to present you a quick post to demonstrate the power of Python in a succinct little port scanner. The time taken from idea to [...]

Quickie: Gmail Backups With Getmail

Audience: *nix users that want to backup their gmail Today I have a real quick method of backing up your gmail email. Call me paranoid, but no matter what it is, if it’s important to me I like to have more than one copy. Gmail Setup Log into gmail and go to “Settings” Make sure [...]

Getting Your Twitter Status From the Shell

Here is a quick shell script i whipped up to pull twitter status from the command line. The eventual plan is to pop this in a cron job, pipe it into a file and include this in a php page. Easy status updates for a website headline #!/bin/sh USER=$1 wget -qO- http://twitter.com/statuses/user_timeline/$USER.xml?count=1 | xmlstarlet select [...]

Updating Your Twitter Status From a Script

Just a quick little script modified from the one found here http://cutup.org/anize/?twitter_bash_curl I hardcoded the username/password and stripped out the “friends” statuses. For my purposes (http://appliedresearchwi.com headline) I only need “my” current status. The script is run from crontab as follows: */5 * * * * /home/zachpeters/appliedresearchwi.com/etc/twitter.sh > /home/zachpeters/appliedresearchwi.com/etc/twitter.status Code – note the “username” and [...]