Skip to content

Instantly share code, notes, and snippets.

Avatar

phiresky

View GitHub Profile
@kazlauskis
kazlauskis / mdb2sqlite.sh
Created Sep 8, 2016
Transforms MS Access MDB file to sqlite database using mdbtools
View mdb2sqlite.sh
#!/bin/bash
# Inspired by
# https://www.codeenigma.com/community/blog/using-mdbtools-nix-convert-microsoft-access-mysql
# USAGE
# Rename your MDB file to migration-export.mdb
# run ./mdb2sqlite.sh migration-export.mdb
# wait and wait a bit longer...
mdb-schema migration-export.mdb sqlite > schema.sql
@ericremoreynolds
ericremoreynolds / bisect_key.py
Last active Mar 13, 2020
Key-like functionality recipe for Python's bisect functions
View bisect_key.py
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
XVilka / TrueColour.md
Last active Oct 29, 2020
True Colour (16 million colours) support in various terminal applications and terminals
View TrueColour.md

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.