Skip to content

Instantly share code, notes, and snippets.

View lpenz's full-sized avatar
🐧
🦀 🐊

Leandro Lisboa Penz lpenz

🐧
🦀 🐊
View GitHub Profile
@lpenz
lpenz / docker-create-debian-image.sh
Last active March 1, 2018 06:49
debootstrap a bare debian docker image
#!/bin/bash
DIST=${1?no distribution specified}
ARCH=${2:amd64}
set -e -x
NAME=debian-${DIST}-${ARCH}
debootstrap --no-check-gpg "--arch=$ARCH" "$DIST" "$NAME" http://archive.debian.org/debian
tar -C "$NAME" -c . | docker import - "$USER/$NAME"
@lpenz
lpenz / brewer.tex
Created April 25, 2015 22:02
colorbrewer colors for latex
% Colors from www.ColorBrewer.org by Cynthia A. Brewer, Geography, Pennsylvania State University.
% Apache-Style Software License for ColorBrewer software and ColorBrewer Color Schemes
%
% Copyright (c) 2002 Cynthia Brewer, Mark Harrower, and The Pennsylvania State University.
%
% Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
% You may obtain a copy of the License at
%
% http://www.apache.org/licenses/LICENSE-2.0
@lpenz
lpenz / .travis.yml
Created April 23, 2015 14:48
.travis.yml: base for go with coveralls
language: go
go:
- tip
before_install:
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- go get github.com/bradfitz/goimports
- go get github.com/golang/lint/golint
- go get golang.org/x/tools/cmd/vet
- if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi