Skip to content

Instantly share code, notes, and snippets.

View mdda's full-sized avatar

Martin Andrews mdda

View GitHub Profile
mdda /
Created July 18, 2014 08:34
CSV-to-sqlite importer with simple DSL to map ports 'AIS' data
# -*- coding: utf-8 -*-
import sqlite3
import re
import sys, csv
import datetime, time
db_file = "ports.db"
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
mdda /
Created January 19, 2020 13:26 — forked from SamuelMarks/
Nothing to TPU in 5 Google Cloud commands

Google Cloud configuration

First: install the CLI program for your distribution:


Modify accordingly:

export REGION='us-central1'
export ZONE='us-central1-f'
export PROJECT_NAME='proj'