I hereby claim:
- I am kennedyj on github.
- I am jkennedy (https://keybase.io/jkennedy) on keybase.
- I have a public key whose fingerprint is DF79 A235 C9C2 4CDD 5936 2A1C D60A 5FBF 2421 4A84
To claim this, I am signing this object:
#!/bin/bash | |
cd /tmp | |
echo "# Downloading linkchecker v8.2" | |
curl -L 'https://github.com/wummel/linkchecker/archive/v8.2.zip' -o /tmp/linkchecker-v8.2.zip | |
unzip /tmp/linkchecker-v8.2.zip | |
cd linkchecker* | |
make -C doc/html | |
python setup.py sdist --manifest-only | |
python setup.py build |
#!/bin/bash | |
pid="$$" | |
allfiles="/tmp/$pid-allfiles" | |
# check command line arguments | |
if [ -n "$1" ] && [ -z "$2" ] | |
then | |
echo "specify what to look for, and what files to look in" | |
exit 1 |
#!/bin/bash | |
# This should be loaded into the user profile | |
export TRUECRYPT_COMMAND='/Applications/TrueCrypt.app/Contents/MacOS/Truecrypt --text' | |
export TRUECRYPT_VOLUME_PATH=$HOME/secrets.tc | |
if [ -e "/Applications/TrueCrypt.app/Contents/MacOS/Truecrypt" ] | |
then |
#!/bin/bash | |
# setup path to the applications expected path | |
export wallet_db="/Users/$(whoami)/Library/Containers/com.acrylic.Wallet/Data/Library/Application Support/Wallet/Database.wallet" | |
# configure any wallets to be used. each item in the list must also have a variable that matches | |
# ie: personal wallet_personal_db | |
export wallet_db_list=( personal group other ) | |
export wallet_personal_db="/Users/$(whoami)/Wallets/Personal.wallet" |
#!/bin/bash | |
getmem() { | |
name=$1 | |
image=$(docker ps | grep $name | awk '{print $2}') | |
short=$(docker ps | grep $name | awk '{print $1}') | |
long=$(docker inspect $short | grep ID | awk '{print $2}' | sed 's~[",]~~g') | |
rss=$(grep total_rss /sys/fs/cgroup/memory/lxc/$long/memory.stat | awk '{print $2}') |
#!/bin/bash | |
# Get in use image tags | |
docker ps | grep -v 'IMAGE' | awk '{ print $2}' > tags-inuse.txt | |
# Get all images with tags, combine the image and tag keep the id | |
docker images -a | grep -v 'REPOSITORY' | grep -v '^<none>' | awk '{print $1":"$2"\t"$3}' > tags-full.txt | |
# Remove the in-use tags from the full list | |
grep -v -f tags-inuse.txt tags-full.txt > tags-prune-list.txt |
mkdir -p $HOME/.vim/ftplugin/go | |
mkdir -p $HOME/.vim/ftdetect | |
mkdir -p $HOME/.vim/syntax | |
mkdir -p $HOME/.vim/autoload/go | |
# make sure GOROOT is properly set, brew example | |
# GOROOT == /usr/local/Cellar/go/1.2/ | |
cd $GOROOT/misc/vim | |
find . -type f -exec cp {} $HOME/.vim/{} \; |
I hereby claim:
To claim this, I am signing this object:
#! /bin/bash | |
# | |
# Usage: ./check_apache_certs -p apachepath | |
# | |
CUT=$(which cut) | |
SED=$(which sed) | |
GREP=$(which grep) | |
AWK=$(which awk) | |
SORT=$(which sort) |
#!/usr/bin/python | |
# e.g. docker ps -a | grep 'my name' | awk '{print $1}' | xargs docker inspect | ./volume-list.py | |
import json | |
import fileinput | |
raw = [] | |
for line in fileinput.input(): | |
raw.append(line) | |
data = json.loads(''.join(raw)) |