Skip to content

Instantly share code, notes, and snippets.

View matisojka's full-sized avatar

Mateusz Sójka matisojka

View GitHub Profile
@matisojka
matisojka / gist:ca41d70da79239ffbfe8
Created July 2, 2015 12:46
Github labels / states
Review finished - expecting dev input
Feedback considered - expecting review
Code accepted - Ready for QA
QA pending
QA validated
QA rejected - expecting dev input
Ship it
@matisojka
matisojka / Dockerfile
Last active March 5, 2016 09:23 — forked from shijuvar/main.go
A simple microservice plumbing in Go
FROM google/golang:stable
# Godep for vendoring
RUN go get github.com/tools/godep
# Recompile the standard library without CGO
RUN CGO_ENABLED=0 go install -a std
MAINTAINER [email protected]
ENV APP_DIR $GOPATH/Users/mati/deindeal/moosehead/modules/newsletter_feeds
# Set the entrypoint
@matisojka
matisojka / Dockerfile
Created March 5, 2016 11:00
Tiny Go microservice plumbing
FROM alpine:3.2
ENV GOROOT=/usr/lib/go \
GOPATH=/gopath \
GOBIN=/gopath/bin \
PATH=$PATH:$GOROOT/bin:$GOPATH/bin
WORKDIR /gopath/src/app
ADD . /gopath/src/app
@matisojka
matisojka / enteprisifier.rb
Created September 30, 2016 13:38
Tiny helper to make your program feel more enteprisy!
class Enterprisifier
def self.enterprisify!
sleep 5
end
end
@matisojka
matisojka / docker-cleanup-resources-centos.md
Last active June 1, 2018 19:32 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks (CentOS version)

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ sudo docker volume rm $(sudo docker volume ls -qf dangling=true)

$ sudo docker volume ls -qf dangling=true | xargs -r sudo docker volume rm