Skip to content

Instantly share code, notes, and snippets.

version: '3'
services:
frontproxy:
image: traefik
command: --api --docker
ports:
- "80:80"
- "443:443"
volumes:
@bearnard
bearnard / docker-registry-caching-proxy.conf
Created February 19, 2020 10:57 — forked from etuttle/docker-registry-caching-proxy.conf
NGINX config for a caching proxy that sits in front of a docker registry
upstream docker-mirror-upstream {
server upstream.example.com;
}
proxy_cache_path /var/lib/docker-mirror/cache levels=1:2 max_size=10g inactive=48h keys_zone=cache:10m;
server {
listen 80 default_server;
listen 443 ssl default_server;

Keybase proof

I hereby claim:

  • I am bearnard on github.
  • I am bearn (https://keybase.io/bearn) on keybase.
  • I have a public key whose fingerprint is 2FEF BABA D0F0 A721 E0F8 6FAE A6CC 8FF1 2EF5 410E

To claim this, I am signing this object:

Verifying that +bearnard is my blockchain ID. https://onename.com/bearnard
@bearnard
bearnard / gist:19fceb59491b682b6b29
Created May 17, 2014 22:26
robolock mavericks breakage
Process: robolock-II [19485]
Path: /Volumes/VOLUME/robolock-II.app/Contents/MacOS/robolock-II
Identifier: org.pythonmac.unspecified.robolock-II
Version: 0.1 (0.1)
Code Type: X86-64 (Native)
Parent Process: launchd [266]
Responsible: robolock-II [19485]
User ID: 501
Date/Time: 2014-05-17 15:25:41.610 -0700
git clone git://ctpug.org.za/naja.git
virtualenv --no-site-packages path_to_naja_virtualenv
brew install mercurial
brew install --HEAD smpeg
##### GET SOUND WORKING
brew edit sdl_mixer
@bearnard
bearnard / wtf
Created May 12, 2014 22:19
chef-solo omnibus:default run ubuntu 14.04
-rwxr-xr-x 1 root root 1017016 Apr 23 22:43 /bin/bash
root@nginx-openresty-omnibus-build-lab:/home/vagrant# ls -la /bin/bash
-rwxr-xr-x 1 root root 1017016 Apr 23 22:43 /bin/bash
root@nginx-openresty-omnibus-build-lab:/home/vagrant# ls -la /bin/bash
-rwxr-xr-x 1 root root 1017016 Apr 23 22:43 /bin/bash
root@nginx-openresty-omnibus-build-lab:/home/vagrant# ls -la /bin/bash
-rwxr-xr-x 1 root root 1017016 Apr 23 22:43 /bin/bash
root@nginx-openresty-omnibus-build-lab:/home/vagrant# ls -la /bin/bash
-rwxr-xr-x 1 root root 1017016 Apr 23 22:43 /bin/bash
root@nginx-openresty-omnibus-build-lab:/home/vagrant# ls -la /bin/bash
@bearnard
bearnard / mysqlpool.scala
Created May 5, 2012 19:22 — forked from tsuna/mysqlpool.scala
MySQL JDBC connection pool for Scala + Finagle
// Copyright (C) 2012 Benoit Sigoure
// Copyright (C) 2012 StumbleUpon, Inc.
// This library is free software: you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 2.1 of the License, or (at your
// option) any later version. This program is distributed in the hope that it
// will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
// of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
// General Public License for more details. You should have received a copy
// of the GNU Lesser General Public License along with this program. If not,
@bearnard
bearnard / gist:1187678
Created September 2, 2011 00:40 — forked from voodootikigod/gist:1155790
PyCodeConf Ticket Give-away
## Day job:
Platform/Services Engineer
## Favorite Python project:
Celery/Twisted
## Favorite Conference:
Velocity
## Python Experience Level: