Skip to content

Instantly share code, notes, and snippets.

View sandhose's full-sized avatar

Quentin Gliech sandhose

View GitHub Profile

Keybase proof

I hereby claim:

  • I am Sandhose on github.
  • I am sandhose (https://keybase.io/sandhose) on keybase.
  • I have a public key whose fingerprint is EEA8 ADFA 3C01 FED9 E7AA 442A 22D6 2B84 5527 19FC

To claim this, I am signing this object:

% Tikz lets us draw anything
\usepackage{tikz}
\usetikzlibrary{calc} % Coordinate calculation in tikz
% Allows drawing in the background
\pgfdeclarelayer{bg}
\pgfsetlayers{bg,main}
% Allows customizing the headings
\usepackage[explicit]{titlesec}
# usage: python3 ableton-to-cues.py $ALS_FILENAME $REKORDBOX_XML_FILENAME
# converts ableton warp markers to rekordbox cue points.
# use '--reverse' to convert rekordbox cues to ableton warp markers instead
# writes output to output.xml if converting ableton to rekordbox
# in reverse mode, it writes to output.als
import argparse
import datetime
import gzip
import logging
#!zsh
set -auo pipefail
# Save the current timestamp to compare dates later
local -i ts=$(date -j -f '%H:%M:%S' '00:00:00' '+%s')
# The name of the zfs property to check on datasets
local property=custom:prune-snapshot
@sandhose
sandhose / synapse.yaml
Last active January 11, 2019 20:36
Kubernetes manifests of my Synapse deployment
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: synapse
labels:
app: synapse
spec:
accessModes:
- "ReadWriteOnce"
resources:
import os
from mininet.cli import CLI
from mininet.log import setLogLevel
from mininet.net import Mininet
from mininet.node import Controller
class POXBridge(Controller):
def start(self):
schema {
query: RootQuery
}
# A Git object ID.
scalar GitObjectID
# Information about pagination in a connection.
type PageInfo {
# When paginating forwards, are there more items?
@sandhose
sandhose / Dockerfile
Last active July 22, 2018 21:22
zmarkdown on kubernetes
FROM node:10-alpine
RUN npm i -g zmarkdown
ADD entrypoint.sh /server
CMD ["/server"]
EXPOSE 27272
" Set some junk {{{
set autoindent " Copy indent from last line when starting new line
set backspace=indent,eol,start
set cursorline " Highlight current line
set diffopt=filler " Add vertical spaces to keep right and left aligned
set diffopt+=iwhite " Ignore whitespace changes (focus on code changes)
" set esckeys " Allow cursor keys in insert mode
set expandtab " Expand tabs to spaces
set foldcolumn=0 " Column to show folds
set foldenable " Enable folding
#!/bin/sh
set -eu
WD=/var/backups/mysql
LATEST=$WD/latest
PREVIOUS=`readlink -e $LATEST`
NEXT=$WD/`date '+%Y%m%d-%H%M'`