A few quick tools usually not very well written for managing stuff on my Web site.
Python JavaScript Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
canadaResidency
firstpixel
html2md2mail
mrpropre
notebook
notes
.gitignore
README.mdown
parisweb2011.opml
photodated.sh
silly-ideas.mdown
validation-compare.py

README.mdown

Tools for La Grange

Author: Karl Dubost, La Grange License:

I'm using tools to publish, check things once in a while, sometimes just once. These are really stupid tools not always well written (suggestions and improvements are welcome). I will add them little by little when I have time.

Validation.py

My Web site is entirely made of static files. I wanted to check a few things with regards to these files.

Given a list of URIs such as

http://www.la-grange.net/2006/12/08
http://www.la-grange.net/2006/12/09

Get the following result listing Validation, encoding of the page as served by the server and encoding declared in the page..

http://www.la-grange.net/2006/12/08
validation: Valid 0 0
encoding-server: application/xhtml+xml; charset=utf-8; qs=0.999
encoding-page: utf-8
title: Dans la rue - 2006-12-08 - Carnet Web Karl

http://www.la-grange.net/2006/12/09
validation: Valid 0 0
encoding-server: application/xhtml+xml; charset=utf-8; qs=0.999
encoding-page: utf-8
title: Un an de plus - 2006-12-09 - Carnet Web Karl

TODO: comparing the doctype and the mimetype

parisweb2011.opml

An OPML file of the Paris Web 2011 speakers. It will give you things to read until Paris Web 2012.

photodated.sh

This script is a very simple bash script, taking a list of photos, extracting the EXIF date and time and moving the photos in a dated space according to this date and renaming with the time. The script is made for my own usage but can be updated to your own usage.

Requirement: epinfo

CanadaResidency

  • Compute if your Canadian permanent resident status is at risk
  • Compute if you are elligible to Canadian Citizenship

Output example:

→ ./statusCanada.py daysInCanada.data 
-------------------------------------------------
Landing: 2001-12-05
Since landing: 3831 days
-------------------------------------------------
PERMANENT RESIDENCY: [Rule: 730 min on 1825 days]
You spent 729 days outside on the last 1825
You can go out of Canada for 366 days
-------------------------------------------------
CITIZENSHIP: [Rule: 1095 min on 1460 days]
CONGRATULATIONS! You can apply
1096 days on 1095 days minimum
-------------------------------------------------