Archive for the 'being_geeky' Category

Command-line bug tracking

November 3, 2009

Have been using todo.txt for a few days. However, i find i am using it more
for recording bugs. todo.txt allows me to mark a task as done but not put
a comment or status. e.g. I need to put in details of what I have done as a bug-fix.
So I just checked up the net a [...]

Fooling around with todo lists

October 31, 2009

I am finally trying out something called todo.txt
and this.
todo.txt looks good, is a bash script (sed heavy), generates a simple text file, allows for setting of project name, or tags, and priorities. Just the kind of simple thing I’ve been looking for. Over the years I’ve tried out many alternatives but given up. Most of [...]

Automating export of Firefox 3 bookmarks and history from command-line/cron

September 3, 2008

Firefox 2 used a bookmarks.html file for bookmarks. History was in a mork file that was incomprehensible. Firefox 3 uses SQLite for both these. Export manually is simple from the Bookmarks-Organize Bookmarks menu option. This page gives us info on how to automate bookmarks export using about:config, however this export happens:

[...]

Getting gmx to work without novalidate-cert

September 2, 2008

This was simple (thanks to madboa)

openssl s_client -connect www.gmx.com:443

This gives an output. Copy the begin certification to end certificate part and place in a file named gmx.pem.
It should look like this (lines deleted in between):

—–BEGIN CERTIFICATE—–
MIIDUzCCArygAwIBAgIQIvcebQE7u+QGIM7tD/CuCjANBgkqhkiG9w0BAQUFADCB
zjELMAkGA1UEBhMCWkExFTATBgNVBAgTDFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJ
qPqkqsLcZWVrMrGQsc0MXhixYXVns4aHpkeXfUPbFr/Cv9ly5NAa
—–END CERTIFICATE—–

openssl x509 -in gmx.pem -hash -noout

#(this outputs: ca09c2c4)

cp gmx.pem ca09c2c4.0

#(copy the .0 file to the location pointed to by [...]

Getting postfix to use gmail as relay host

August 23, 2008

Postfix seemingly comes with Mac OS X Leopard, ready to run out of the box. I have a laptop, and am not hosting a mail server. I have a dynamic IP which means gmail won’t accept my mails.
So “ditch postfix” is the first thought. I did, and wrote my own python script to replace mail/mailx [...]

Ruby versus Python versus …

August 22, 2008

It’s been some years since I got off the Java bandwagon. I spent many years on it. and after getting off, it feels like I was in a concentration camp for many years. Strangely, I loved it then. But the freedom from drudgery, great to begin wit,h has left me hanging in mid-air for these [...]

More Curling with Google Blogger (new)

March 6, 2007

This is a followup on my previous post on Curling with Google Blogger Data API.
In case you have been playing around with the CURL hints given on Google’s Blogger Data API Developer’s Guide and had problems, please peruse the following.
Authenticaton
curl --silent --header “Content-Type: application/x-www-form-urlencoded” -X POST --data-binary @file.txt https://www.google.com/accounts/ClientLogin > auth.txt
The above command needs only [...]

The Curl Blogger client is unix-shell dependent !!

March 5, 2007

MY_CURLY_THING(TM) speaks only Unix !
In the last post, I put only curl and ruby as the dependencies. And wondered why the gentleman who made his Vim plugin with python inside, didn’t just use plain ole curl.
It just hit me that my curly thing(TM) will only run on Unix!!! It will not run on those other [...]

Using CURL to post to New Google Blogger (Gdata)

March 5, 2007

I have finally got CURL to work with the new Google Beta (no longer BETA). I partly owe the problems to Google not putting up clear examples, and to a silly mistake in passing the Auth Token.
This mistake resulted in my shelving the CURL option and then writing a Java program for Listing, Posting etc [...]