This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: utf-8 | |
import sys | |
# A Tesla Model 3 VIN seems to look like: | |
# | |
# check digit | |
# | | |
# | rank |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# 1. Install weboob | |
# 2. Execute boobank | |
# 3. Follow instructions to connect to your bank account | |
# 4. Execute "boobank list" in order to obtain the account id | |
acctid="<boobank account id>" | |
mailto="<recipient1> <recipient2> [...]" | |
subject="<mail subject>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -!- coding: utf8 -!- | |
import calendar | |
import datetime | |
import locale | |
import xml.etree.ElementTree as ET | |
from gi.repository import Gtk | |
# First install python-prettytable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# | |
# Sorry, the text in the script is in french, I am French... | |
import datetime | |
import smtplib | |
from email.mime.text import MIMEText | |
from urlparse import parse_qs | |
SOURCEPATH="Where the sources are on my computer" | |
EMAIL_ADDRESS="My email address" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
This script : | |
* extracts comments from a WordPress eXtended RSS export file | |
* creates comment files for the Pelican comment system, in a "content/comments" | |
directory in the current path | |
The script takes the XML file name as its only argument. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% | |
REDMINE_URL = 'https://www.some.url.com/redmine' | |
DEFAULT_ENTRIES = [ | |
u'Arrived', | |
u'Break**', | |
u'Lunch**', | |
u'Personal stuff***' | |
] | |
############################################################################### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urlparse | |
_GET = dict(urlparse.parse_qsl(req.subprocess_env['QUERY_STRING'])) |