This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
script: | |
- true TESTS RUN HERE | |
- true Test if we .gitignore test files | |
- TMP=$(tempfile) | |
- git ls-files . --exclude-standard --others | tee "$TMP" | |
- if test -s "$TMP"; then false; else true; fi | |
- true Test if we .gitignore any tracked files | |
- git ls-files -i --exclude-standard | tee "$TMP" | |
- if test -s "$TMP"; then false; else true; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -x -e | |
: gc conteiners | |
docker ps --filter 'status=exited' -q | xargs -r docker rm | |
docker ps --filter 'status=created' -q | xargs -r docker rm | |
: gc images | |
docker images --filter "dangling=true" -q | xargs -r docker rmi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DIR=${1?usage: $0 <dir>} | |
NAME=${DIR##*/} | |
set -e -x | |
rm -rf "$DIR" | |
trap 'set +e; umount "$DIR/proc"; umount "$DIR/sys"; rm -rf "$DIR"' EXIT INT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
IMG=${1?usage: $0 <img>} | |
NAME=wheezy32 | |
set -e -x | |
rm -f "${IMG}.vmdk" package.box | |
VBoxManage convertfromraw "$IMG" "${IMG}.vmdk" --format vmdk | |
VBoxManage unregistervm "$NAME" --delete || : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
WINNAME="${1?usage: "$0" windowname}" | |
set -e | |
TMP=$(mktemp) | |
trap 'rm -f $TMP' EXIT | |
eval "$(xdotool getmouselocation --shell)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e -x | |
TMP=$(mktemp) | |
trap 'rm -f $TMP' EXIT | |
chmod u+x "$TMP" | |
cat > "$TMP" <<END | |
sudo mkdir /nix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e -x | |
pacmd load-module module-remap-sink sink_name=mono master=$(pacmd list-sinks | grep -m 1 -oP 'name:\s<\K.*(?=>)') channels=2 channel_map=mono,mono |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import qualified Data.Map as Map | |
import Control.Monad | |
main :: IO () | |
main = processOneField | |
processOneField :: IO () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
OlderNewer