Skip to content

Instantly share code, notes, and snippets.

View mdda's full-sized avatar

Martin Andrews mdda

View GitHub Profile
@mdda
mdda / csv_to_sqlite.py
Created July 18, 2014 08:34
CSV-to-sqlite importer with simple DSL to map ports 'AIS' data
#!/usr/bin/python
# -*- 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
mdda / tpu.md
Created January 19, 2020 13:26 — forked from SamuelMarks/tpu.md
Nothing to TPU in 5 Google Cloud commands

Google Cloud configuration

First: install the CLI program for your distribution: https://cloud.google.com/sdk/install

Parameters

Modify accordingly:

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