Skip to content

Instantly share code, notes, and snippets.

FROM docker.io/debian:buster-slim
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends \
ca-certificates \
wget \
gnupg \
; \
rm -rf /var/lib/apt/lists/*
#!/usr/bin/python
import ctypes
import difflib
import glob
import json
import os
import os.path
import re
import requests
#!/bin/bash
ARCH="x86_64"
TARGET="/tmp/alpinefs"
ROOTGZ="/tmp/alpine-rootfs.tar.gz"
MIRROR="http://dl-cdn.alpinelinux.org/alpine"
echoerr() {
printf "%s\n" "$*" >&2;
}
@foucault
foucault / middle-click-emu-enable.py
Last active August 12, 2017 00:40
Enable middle click emulation with xinput
#!/usr/bin/python
# This small script will enable middle click emulation for all pointing
# devices available. For some reason GNOME does not expose any option at all
# for middle click emulation so the only way to enable it is through the
# `xinput` program, which must be installed for the script to work
from subprocess import check_output, check_call
import re

Keybase proof

I hereby claim:

  • I am foucault on github.
  • I am spystath (https://keybase.io/spystath) on keybase.
  • I have a public key whose fingerprint is 3915 72CF 5690 CAF6 0BB3 20C6 A68E 5115 BB81 7582

To claim this, I am signing this object: