Skip to content

Instantly share code, notes, and snippets.



View GitHub Profile
kazlauskis /
Created Sep 8, 2016
Transforms MS Access MDB file to sqlite database using mdbtools
# Inspired by
# Rename your MDB file to migration-export.mdb
# run ./ migration-export.mdb
# wait and wait a bit longer...
mdb-schema migration-export.mdb sqlite > schema.sql
ericremoreynolds /
Last active Mar 13, 2020
Key-like functionality recipe for Python's bisect functions
class KeyifyList(object):
def __init__(self, inner, key):
self.inner = inner
self.key = key
def __len__(self):
return len(self.inner)
def __getitem__(self, k):
return self.key(self.inner[k])
XVilka /
Last active Oct 29, 2020
True Colour (16 million colours) support in various terminal applications and terminals

Terminal Colors

There exists common confusion about terminal colors. This is what we have right now:

  • Plain ASCII
  • ANSI escape codes: 16 color codes with bold/italic and background
  • 256 color palette: 216 colors + 16 ANSI + 24 gray (colors are 24-bit)
  • 24-bit true color: "888" colors (aka 16 milion)
You can’t perform that action at this time.