Skip to content

Instantly share code, notes, and snippets.

View tianon's full-sized avatar
♥️
TIANON

Tianon Gravi tianon

♥️
TIANON
  • @docker, but thoughts, comments, commits generally his own ("do not represent the views of Docker, Inc" etc etc)
  • Las Vegas, NV
  • 16:52 (UTC -07:00)
  • X @tianon
View GitHub Profile
@tianon
tianon / slink
Last active September 8, 2021 15:36
$ debootstrap --arch=i386 slink /tmp/slink http://archive.debian.org/debian /path/to/my/scripts/slink # see also https://github.com/debuerreotype/debuerreotype/pull/125
@tianon
tianon / etc-apt-sources.list
Last active June 14, 2023 00:05
Perpetually Debian Jessie via NGINX
deb http://example.com/jessie jessie main
deb http://example.com/jessie-security jessie main
deb http://example.com/jessie jessie-updates main
@tianon
tianon / put-multiarch-prototype.sh
Last active May 11, 2019 14:40
The original Bash-based prototype for https://github.com/docker-library/official-images/pull/5897 to prove out the concept \m/
#!/usr/bin/env bash
set -Eeuo pipefail
# for real pushes, this would be "library"
targetOrg='trollin'
# https://github.com/tianon/dockerhub-public-proxy
publicProxy="$DOCKERHUB_PUBLIC_PROXY"
_curl() {
@tianon
tianon / vizio-gv42l-xorg.conf
Last active March 7, 2017 04:14
Vizio GV42L in Linux without overscan
# see https://lists.gt.net/mythtv/users/334412#334412
Section "Monitor"
Identifier "VizioGV42L"
VendorName "VIZIO"
ModelName "GV42L"
HorizSync 31.0 - 70.0
VertRefresh 50.0 - 85.0
Option "DPMS"
@tianon
tianon / nginx-go.conf
Last active December 13, 2016 23:03
configuration behind go.tianon.xyz, inspired by https://twitter.com/jessfraz/status/782333853117448192
# inspired by https://twitter.com/jessfraz/status/782333853117448192
# https://gist.github.com/jessfraz/421918a367a71dbaf72fdc772d809f61
# https://gist.github.com/tianon/c5ae888200d6426b167d4961d088dee2
server {
listen 80;
listen 443 ssl http2;
server_name go.tianon.xyz;

Keybase proof

I hereby claim:

  • I am tianon on github.
  • I am tianon (https://keybase.io/tianon) on keybase.
  • I have a public key whose fingerprint is B42F 6819 007F 00F8 8E36 4FD4 036A 9C25 BF35 7DD4

To claim this, I am signing this object:

@tianon
tianon / jessie-1-2.diff
Created July 8, 2016 21:13
"debootstrap --variant=minbase jessie jessie-N http://snapshot.debian.org/archive/debian/20160101" reproducibility testing
diff --git a/jessie-1.tar.tv b/jessie-2.tar.tv
index a0a88dc..a3b3f44 100644
--- a/jessie-1.tar.tv
+++ b/jessie-2.tar.tv
@@ -1,35 +1,35 @@
-drwxr-xr-x root/root 0 2016-07-08 14:04 ./
-drwxr-xr-x root/root 0 2016-07-08 14:03 ./dev/
-crw-rw-rw- root/root 1,5 2016-07-08 14:03 ./dev/zero
-lrwxrwxrwx root/root 0 2016-07-08 14:03 ./dev/stderr -> /proc/self/fd/2
-lrwxrwxrwx root/root 0 2016-07-08 14:03 ./dev/stdin -> /proc/self/fd/0
@tianon
tianon / apt-mark-minimum-manual.sh
Last active May 13, 2016 19:13
discover the minimum set of packages that need to be "apt-mark manual" to keep what's currently installed
#!/bin/bash
set -e
# https://gist.github.com/tianon/b7fce03f0d52f8103242421878fc6b5e
#
# usage:
#
# $ apt-mark-minimum-manual.sh
# inetutils-ping
@tianon
tianon / driver.go
Last active April 21, 2016 22:37
docker-machine-driver-template
package main
import (
"fmt"
"github.com/docker/machine/libmachine/drivers"
"github.com/docker/machine/libmachine/engine"
"github.com/docker/machine/libmachine/mcnflag"
"github.com/docker/machine/libmachine/state"
)
@tianon
tianon / vim-gpg
Created March 4, 2016 20:32
edit GPG-encrypted files reasonably
#!/bin/bash
set -e
usage() {
local s="$(basename "$0")"
echo "usage: $s [identity] [file]"
echo " ie: $s jsmith@example.com ~/some-secret-file.asc"
}
identity="$1"; shift || { usage >&2; exit 1; }