Skip to content

Instantly share code, notes, and snippets.

Peter Baumgartner ipmb

  • Lincoln Loop
Block or report user

Report or block ipmb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View pyproject.toml
name = "tmp"
version = "0.1.0"
description = ""
authors = ["User <>"]
python = "^3.7"
requests = "^2.21"
sentry-sdk = "^0.7.11"
ipmb / Dockerfile
Created Apr 4, 2019
Build vmods on Ubuntu from Varnish repo
View Dockerfile
FROM ubuntu:18.04
ARG REPO=varnish60lts
RUN set -ex && \
apt-get update -qq && \
apt-get -yq install curl apt-transport-https build-essential libtool autotools-dev automake gnupg && \
echo "deb${REPO}/ubuntu/ bionic main" > /etc/apt/sources.list.d/varnish.list && \
curl -L${REPO}/gpgkey | apt-key add && \
apt-get update -qq && \
apt-get -yq install varnish varnish-dev

Keybase proof

I hereby claim:

  • I am ipmb on github.
  • I am ipmb ( on keybase.
  • I have a public key ASAhIL1zFberH0RNfVsAfqZOpwcXxLWpcQgGfaSywHmS0wo

To claim this, I am signing this object:

shiv -o test.pyz -e pytest:main .
./test.pyz --pyargs my_tests
echo $?
ipmb / status.txt
Created Jun 7, 2018
Systemd Status exmple
View status.txt
$ sudo systemctl status saltdash@0.9.4.service
● saltdash@0.9.4.service - Saltdash v0.9.4
Loaded: loaded (/etc/systemd/system/saltdash@.service; indirect; vendor preset: enabled)
Active: active (running) since Tue 2018-05-15 23:25:08 UTC; 3 weeks 1 days ago
Main PID: 25580 (python3.6)
Tasks: 5 (limit: 4704)
CGroup: /system.slice/system-saltdash.slice/saltdash@0.9.4.service
└─25580 /usr/bin/python3.6 /srv/saltdash/saltdash-0.9.4.pyz serve
Jun 07 18:15:42 web-prod python3.6[25580]: localhost - - [07/Jun/2018:18:15:42 +0000] "GET /-/alive/ HTTP/1.1" 200 - "-" "Go-http-client/1.1
ipmb / Dockerfile
Created Jun 6, 2018
vmods on trusty
View Dockerfile
FROM ubuntu:14.04
RUN apt-get update && \
apt-get -yq install curl gnupg apt-transport-https build-essential pkg-config \
libpcre3-dev automake autogen libtool libreadline6-dev \
libeditline0 libeditline-dev python-docutils
RUN curl -sL$VARNISHVERSION/gpgkey | apt-key add - && \
printf "deb$VARNISHVERSION/ubuntu/ trusty main\ndeb-src$VARNISHVERSION/ubuntu/ trusty main" > /etc/apt/sources.list.d/varnish.list && \
apt-get update && \
ipmb /
Created May 31, 2018
DNS over HTTP (DOH) on MacOS


brew install dnscrypt-proxy


Edit /usr/local/etc/dnscrypt-proxy.toml as needed. I added/modified the following lines:

ipmb /
Created May 13, 2018
uwsgi as lib
# UWSGI_AS_LIB=`pwd`/saltdash/ pip install uwgi
# via
import sys
import os
import ctypes
from importlib import resources
except ImportError:
import importlib_resources as resources
ipmb /
Last active Apr 24, 2018
DNS zonefile -> terraform dyn
from blockstack_zones import parse_zone_file
with open('/path/to/your/zonefile') as f:
full =
ZONE = ''
record_template = """
resource "dyn_record" "{slug}" {{
zone = "{zone}"
name = "{name}"
ipmb /
Created Apr 19, 2018
Running systemd in docker with Ubuntu 18.04

Trying to use kitchen-docker. It works great when passing privileged: true to the driver, but some hosted CI systems won't let you do that for security reasons. After trying a million different incantations, I got very close with:

image: ubuntu:18.04
run_options: --tmpfs=/run --tmpfs=/run/lock -v /sys/fs/cgroup/systemd:/sys/fs/cgroup/systemd --stop-signal=SIGRTMIN+3
run_command: /sbin/init

note: kitchen does some extra things like including -e container=docker

You can’t perform that action at this time.