Skip to content

Instantly share code, notes, and snippets.

import Image, ImageDraw
from random import randint
def draw_picture(output_filename):
print('drawing: {}'.format(output_filename))
image = Image.new('RGB', (640, 480), 'black')
draw = ImageDraw.Draw(image)
for i in xrange(0, 640, 20):
#!/bin/bash -e
####
# based on http://www.clock.co.uk/blog/a-guide-on-how-to-cache-npm-install-with-docker
#
# Set's the last modified timestamp of a file to it's repositories commit timestamp.
#
# Particular useful with docker when building after a new git checkout has been made,
# can improve docker build times for composer, bower, npm, etc
#
# @see https://github.com/docker/docker/issues/3556
Hello My Name is Holy Moose 5,5%
Five A.M. Red Ale 5%
Mahrs Bräu Der Weisse Bock 8,5 %
Hardcore IPA 9,2 %
Cocoa Psycho 10%
Mikkeller Black Moon 10,6%
Kinn Sjelefred 4,7 %
#Mash Tag 15 10%
Punk IPA 5,4%
Birrificio Italiano Tipopils 5,2 %
package monitor
import (
"net"
"net/http"
"sync"
"sync/atomic"
)
type NetworkMonitor struct {
#!/usr/bin/env python
"""
# copied from https://github.com/saltstack/salt-contrib/blob/master/grains/ec2_tags.py
ec2_tags.py - exports all EC2 tags in an 'ec2_tags' grain and splits 'Role' tag
into a list on 'ec2_roles' grain.
To use it:
python-pip:
pkg.installed
boto:
pip.installed:
- name: boto >= 2.8.0
- require:
- pkg: python-pip
package main
import (
"encoding/hex"
"os"
"os/signal"
"syscall"
"github.com/chifflier/nfqueue-go/nfqueue"
"github.com/coreos/go-iptables/iptables"
$ glide get github.com/docker/docker#^1.12.0
[INFO] Preparing to install 1 package.
[INFO] Attempting to get package github.com/docker/docker
[INFO] --> Adding github.com/docker/docker to your configuration with the version ^1.12.0
[INFO] Downloading dependencies. Please wait...
[INFO] --> Fetching updates for github.com/docker/docker.
[INFO] Resolving imports
[INFO] --> Detected semantic version. Setting version for github.com/docker/docker to v1.13.0.
[INFO] Downloading dependencies. Please wait...
[INFO] Exporting resolved dependencies...
$ ./gollum -ll 2 -c config/http_recieve.conf
We be nice to them, if they be nice to us. (startup)
^CMaster betrayed us. Wicked. Tricksy, False. (signal)
Filthy little hobbites. They stole it from us. (shutdown)
It's the only way. Go in, or go back. (flushing)

Paris

root@scw-01f953:~# curl -OL http://mirrors.evowise.com/linuxmint/stable/18.1/linuxmint-18.1-cinnamon-64bit.iso
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1726M  100 1726M    0     0  99.1M      0  0:00:17  0:00:17 --:--:--  102M

AMS