I hereby claim:
- I am dweomer on github.
- I am dweomer (https://keybase.io/dweomer) on keybase.
- I have a public key ASCctZsc0vugGtNcl7K7y1BVNkcKP3TuK55XTBoplQBAggo
To claim this, I am signing this object:
#!/bin/sh -x | |
export DOCKER_COMPOSE_VERSION=${DOCKER_COMPOSE_VERSION:-1.4.0} | |
sudo sh -xe << EOF | |
curl -sL https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose | |
chmod -v +x /usr/local/bin/docker-compose | |
EOF |
#!/bin/sh -x | |
export DOCKER_MACHINE_OS=$(uname -s | tr '[:upper:]' '[:lower:]') | |
export DOCKER_MACHINE_ARCH=$(uname -m | sed -e 's/x86_64/amd64/g') | |
export DOCKER_MACHINE_VERSION=${DOCKER_MACHINE_VERSION:-0.4.1} | |
sudo sh -xe << EOF | |
curl -sL https://github.com/docker/machine/releases/download/v${DOCKER_MACHINE_VERSION}/docker-machine_${DOCKER_MACHINE_OS}-${DOCKER_MACHINE_ARCH} > /usr/local/bin/docker-machine | |
chmod -v +x /usr/local/bin/docker-machine | |
EOF |
#/bin/bash | |
STALE_SINCE=${STALE_SINCE:-"3 months"} | |
git for-each-ref --sort=-committerdate refs/remotes/origin --format='%(refname:short) %(committerdate:relative)' | \ | |
while read REF RELDATE | |
do | |
if [ -z "$(git log -1 --since="${STALE_SINCE}" -s ${REF})" ]; then | |
echo $(echo ${REF} | grep --color=tty "${REF}"): ${RELDATE} | |
fi |
for b in $(git branch -r --merged origin/master | awk '{print $1}' | egrep -v '^stash') | |
do | |
echo -n "$b: " | egrep --color=always "$b" && git log -1 -s $b | |
done |
This is a silly example for dinking around with the Docker API on a link-local dummy interface. |
#!/usr/bin/env bash | |
# | |
# Copyright 2012 Zemian Deng | |
# | |
# 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 | |
# |
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
curl 'https://www.random.org/passwords/?num=10&len=20&format=plain&rnd=new' |
package main | |
// https://www.meetup.com/Golang-Phoenix/events/249838312/ | |
// I was assigned the 'gopkg.in/src-d/go-git.v4' package. Below is a simple program that will take a Git URL, | |
// clone the repo, and scan SemVer-compliant tags then output the most recent, as per SemVer, version. | |
import ( | |
"fmt" | |
"io/ioutil" | |
"os" |
sudo apt-get update | |
sudo apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) edge" | |
sudo apt-get update | |
sudo apt-get install -y docker-ce |