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/bash | |
# Convert a MDB file (Access) to SQL | |
# Needs mdbtools[http://mdbtools.sourceforge.net/] | |
# run 'aptitude install mdbtools' on Debian/Ubuntu | |
# Created by Álvaro Justen <https://github.com/turicas> | |
# License: GPLv2 | |
mdb=$1 | |
sql=$2 |
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/python3 | |
import string | |
import sys | |
def read_commentfile(fn): | |
f = open(fn, 'r') | |
return [l.strip('\n') for l in f.readlines()] | |
def parse_commentlines(l_stream):#takes a stream of lines | |
grabs = [] |
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/python3 | |
import re | |
def pythonize_iso_timestamp(timestamp): | |
""" Convert ISO 8601 timestamp to python .fromisoformat()-compliant format """ | |
# 'Z'-timezone to '+00:00'-timezone | |
timestamp = timestamp.replace('Z', '+00:00') | |
# '+0000'-timezone to '+00:00'-timezone | |
def repl(matchobj): | |
sign = matchobj.group(1) |