I hereby claim:
- I am harto on github.
- I am harto (https://keybase.io/harto) on keybase.
- I have a public key whose fingerprint is C7BB 1865 8EFF 2331 E11F CE59 35D0 32C6 F5E4 0AC2
To claim this, I am signing this object:
#!/usr/bin/env bash | |
set -x | |
set -e | |
# Deploys a directory (within a git repo) to github.io by jamming it into the | |
# `gh-pages` branch. | |
# | |
# Note: it's assumed that you don't care about tracking history for `gh-pages`, | |
# as this script clobbers the branch every time. |
#!/bin/bash | |
set -e | |
set -x | |
# Install Docker package | |
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
sh -c 'echo deb https://get.docker.io/ubuntu docker main >/etc/apt/sources.list.d/docker.list' | |
apt-get -y update |
#!/bin/bash | |
set -e | |
set -x | |
# Install Buildbox Ruby agent as a service | |
if [ -z "$BUILDBOX_API_TOKEN" ]; then | |
echo "Must specify BUILDBOX_API_TOKEN env" | |
exit 1 |
#!/bin/bash | |
# Test 42-layer image on EC2. | |
# | |
# Relevant info: | |
# | |
# ubuntu@domU-12-31-38-04-C2-78:~/layer-test$ docker info | |
# Containers: 145 | |
# Images: 798 | |
# Storage Driver: aufs |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
set -euo pipefail | |
ISSUE=bundler-path-source-conflict | |
TMPDIR="/tmp/${ISSUE}" | |
mkdir -p "$TMPDIR" | |
cd "$TMPDIR" |
PROFILES_DIR="$HOME/.aws/profiles.d" | |
CREDENTIALS="$HOME/.aws/credentials" | |
aws-profile() { | |
local profile="$1" | |
if [[ -z $profile ]]; then | |
__aws-profile-usage >&2 | |
else | |
__aws-switch-profile $profile |
npm-activate() { | |
npm-deactivate | |
export __NPM_PROJECT_BINS=$(__npm-project-bins $1) | |
export PATH=$__NPM_PROJECT_BINS:$PATH | |
} | |
npm-deactivate() { | |
if [[ -n $__NPM_PROJECT_BINS ]]; then | |
export PATH=${PATH#$__NPM_PROJECT_BINS:} | |
fi |
""" | |
Functions for flexibly formatting Python timedelta objects. | |
The following field codes apply: | |
d - days | |
M - minutes | |
h - hours | |
s - seconds | |
m - milliseconds | |
u - microseconds |
(add-to-list 'auto-mode-alist '("\\.less$" . css-mode)) | |
(setq-default compile-less nil) | |
(add-hook 'css-mode-hook | |
(lambda () | |
(when (string-match "\\.less$" buffer-file-name) | |
(add-hook 'after-save-hook | |
(lambda () | |
(when compile-less | |
(funcall compile-less))))))) |