Skip to content

Instantly share code, notes, and snippets.

View kytomaki's full-sized avatar

Samppa Kytömäki kytomaki

  • Reaktor
  • Helsinki
View GitHub Profile
@kytomaki
kytomaki / dockerclean.sh
Created October 19, 2016 07:06
Cleaning up after docker.
#!/bin/sh
#
# Create $HOME/.docker-gc/exclude which contains images you do not
# wish to remove.
#
# https://github.com/spotify/docker-gc#excluding-images-from-garbage-collection
docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
-v "$HOME"/.docker-gc:/etc/docker-gc \
-e FORCE_CONTAINER_REMOVAL=1 \
@kytomaki
kytomaki / clean_up_docker.sh
Created July 28, 2016 13:37
Clean up docker clutter.
# Stop running containers
docker kill $(docker ps -q)
# Remove containers
docker rm -f $(docker ps -aq)
# Remove images
docker rmi -f $(docker images -qa)
@kytomaki
kytomaki / platformio.rb
Last active January 3, 2016 16:50 — forked from uetchy/platformio.rb
Platform.IO Homebrew Formula
class Platformio < Formula
desc "Open source ecosystem for IoT development"
homepage "http://platformio.org"
version "2.7.0"
url "https://github.com/platformio/platformio/archive/v#{version}.tar.gz"
sha256 "b6de5dde5925f886e948eb29b91d4a8432c1735c34eac6d235ab4f227cd17332"
depends_on :python if MacOS.version <= :snow_leopard
resource "bottle" do

Keybase proof

I hereby claim:

  • I am kytomaki on github.
  • I am kytomaki (https://keybase.io/kytomaki) on keybase.
  • I have a public key whose fingerprint is 86E7 2CFB 809B 0AE6 E50A FA96 69A9 14C7 8668 DDD0

To claim this, I am signing this object:

wget http://agentzh.org/misc/nginx/ngx_openresty-VERSION.tar.gz
tar -zxvf ngx_openresty-VERSION.tar.gz
cd ngx_openresty-VERSION/
./configure --prefix=/opt/openresty --with-luajit --with-http_iconv_module -j2
make
make install