Access your Amazon S3 buckets from the shell


Here's a group of Python scripts I wrote which can be used to copy/delete files in Amazon S3. They use the boto library, and so they require it to be installed. You can install boto using pip:

pip install boto

The scripts read your AWS Credentials from a ~/.creds file placed in your home directory. The .creds file should contain this text:

[AWS Credentials]
secretKey=<secretKey>
accessKey=<accessKey>


where of course you replace the values inside the <> with your actual secret key and access key.

Will probably add more features later on.

Three Useful JavaScript String Methods


Here are some useful JavaScript methods that unfortunately aren’t included in the standard library. The trim function I got from a JavaScript lecture given by Douglas Crockford, the other two I wrote myself.

String.prototype.trim = function () {
     return this.replace(/^\s*(\S*(\s+\S+)*)\s*$/, "$1") ;
};

String.prototype.nowhitespaces = function () {
     return this.replace(/\s+/, "");
};

String.prototype.chomp = function () {
     return this.replace(/(\n|\r)+$/, "");
};


Enjoy!

The biggest zerg ever

Debian GNU/Linux Crash Course


This course gives a basic tour of Debian GNU/Linux focused on what the average user needs to know in order to carry out the most common tasks computers are used for. This course is not comprehensive, but I have tried to include as much information as possible. I hope that upon completion the novice user would have learned enough that they will be able to use the system comfortably. I will also included a few advanced topics that the intermediate user will appreciate, though they may prefer to skip over much of the introductory material.

Four Lessons ready. More coming soon!

Click here to get started!

ὁ δὲ ἀνεξέταστος βίος οὐ βιωτὸς ἀνθρώπῳ