Skip to content

Instantly share code, notes, and snippets.

@jpotier
jpotier / Dockerfile
Created April 2, 2016 12:09
Dockerfile used to build a netdata container with netdata
FROM gliderlabs/alpine:latest
WORKDIR /myapp
COPY . /myapp
RUN apk-install zlib bash # Keeping this, the rest is just build-dep
RUN apk --update add --virtual build-dependencies build-base zlib-dev autoconf automake \
&& cd netdata.git \
&& addgroup -S netdata \
&& adduser -S -G netdata -s /sbin/nologin -h / netdata \
@sloria
sloria / bobp-python.md
Last active May 12, 2024 06:54
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@sebgoa
sebgoa / libshell.py
Created June 26, 2013 19:25
A quickie shell for Apache libcloud
#!/usr/bin/env python
import code
import sys
import os
import urlparse
from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driver
import libcloud.security as sec