Skip to content

Instantly share code, notes, and snippets.

View stfsy's full-sized avatar
💭
I may be slow to respond.

Stefan Pfaffel stfsy

💭
I may be slow to respond.
  • Allianz Technology
  • Barcelona, Spain
  • X @stfsy
View GitHub Profile
@stfsy
stfsy / bootlocal.sh
Created June 15, 2017 19:35 — forked from lalyos/bootlocal.sh
boot2docker init script to setup custom private IP rande, place it to: /var/lib/boot2docker/bootlocal.sh
######
# curl -Lso /var/lib/boot2docker/bootlocal.sh j.mp/bootlocal && chmod +x /var/lib/boot2docker/bootlocal.sh
#######
#################
# set your custom network here:
#################
B2D_NETWORK=172.19.0.1
# stops all container and docker itself
@stfsy
stfsy / harden.sh
Last active May 13, 2017 10:17 — forked from jumanjiman/harden.sh
hardening script for an raspbian docker container
#!/usr/bin/env bash
set -x
set -e
#
# Docker build calls this script to harden the image during build.
#
# NOTE: To build on CircleCI, you must take care to keep the `find`
# command out of the /proc filesystem to avoid errors like:
#
@stfsy
stfsy / golang_on_rpi.md
Created April 19, 2017 11:59 — forked from konradko/golang_on_rpi.md
Install Golang 1.7 on Raspberry Pi
wget https://storage.googleapis.com/golang/go1.7.linux-armv6l.tar.gz
tar -C /usr/local -xzf go1.7.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin
@stfsy
stfsy / gist:deaec4860a96f4d68498f6d1ac48093b
Created April 1, 2017 10:50 — forked from oysteinjakobsen/gist:e59cdd38a688ee8a418a
How to get docker-compose (fig) up and running on Raspberry Pi 2

Background

I assume you already have Docker up and running on your Raspberry Pi 2. If not, see this article.

The next natural step is to install Docker Compose (formerly Fig), but there's no ARM support out of the box. This recipe will help you install Docker Compose on your Raspberry Pi 2!

The following six steps will do the trick:

  1. Get the docker-compose source code from git
@stfsy
stfsy / docker-destroy-all.sh
Created January 14, 2017 11:37 — forked from JeffBelback/docker-destroy-all.sh
Destroy all Docker Containers and Images
#!/bin/bash
# Stop all containers
docker stop $(docker ps -a -q)
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
@stfsy
stfsy / app.yaml
Last active November 8, 2015 21:56 — forked from darktable/app.yaml
GAE: App.yaml designed for serving a static site on Google App Engine (Python). Copy your static html and files into a folder called "static" next to app.yaml. Contains a bunch of mimetype declarations from html5boilerplate's .htaccess. May not be neces
application: you-app-name-here
version: 1
runtime: python27
api_version: 1
default_expiration: "30d"
handlers:
- url: /(.*\.(appcache|manifest))
mime_type: text/cache-manifest