I hereby claim:
- I am lexton on github.
- I am lexton (https://keybase.io/lexton) on keybase.
- I have a public key ASBvJ5-srUEYDUesbrblBz18GdddDZAFC0iQ99SW7GIdEwo
To claim this, I am signing this object:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
/ # ps aux | |
PID USER TIME COMMAND | |
1 root 0:00 dockerd --host tcp://127.0.0.1:2375 | |
17 root 0:00 containerd --config /var/run/docker/containerd/containerd.toml --log-level info | |
125 root 0:00 sh -c clear; (bash || ash || sh) | |
132 root 0:00 ash | |
192 root 0:00 ps aux | |
/ # docker --host tcp://127.0.0.1:2375 run hello-world | |
Unable to find image 'hello-world:latest' locally |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
"sort" | |
"strconv" | |
"strings" |
function dd { | |
while IFS= read -r line; do | |
if [[ "$(echo $line | grep -c "\b$1\b")" != "0" ]]; then; | |
# meh, do manual shell expansion of the ~ | |
# not quite sure why this isn't expanded automagically, but better than eval. | |
d=${$(echo $line | awk '{print $NF}')/#\~/\/Users\/lexton} | |
cd $d | |
return | |
fi | |
done <~/ws/links |
#!/bin/bash | |
# Take a snapshot of your local brew installation to repeat on a new system | |
# Default to a temp file, but when you are ready just provide the path. | |
BREWFILE=${1:-/tmp/brewfile} | |
declare -a BREWS=('' 'cask') | |
for f in ${BREWS[@]}; do | |
brew $f list | xargs -I{} printf "$f install {}\n" | tee -a $BREWFILE |
trust_ssl(){ | |
# Download and install the certificate for usage in development mode into its own keychain | |
# This requires the root password to modify the keychain | |
# Usage: trust_cert <hostname> [port] | |
# Usage: trust_cert clear | |
KEYCHAIN="$HOME/Library/Keychains/dev.keychain" | |
PASSWORD="notarealpassword" | |
if [ ! -f $KEYCHAIN ]; then | |
echo "INFO: Creating Keychain" |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
fatal() { | |
local frame=0 | |
while caller $frame; do | |
((frame++)); | |
done | |
echo "$*" | |
exit 1 | |
} |
#!/bin/bash | |
# Get the basic outputs for the tagging mechanism | |
BASE_DIR="$(git rev-parse --show-toplevel)" | |
if [ $? -ne 0 ]; then | |
echo "Not inside a git repo." | |
exit 1 | |
fi | |
export BASE_DIR |
#!/bin/sh | |
# Cisco Anyconnect CSD wrapper for OpenConnect | |
CSTUB="$HOME/.cisco/hostscan/bin/cstub" | |
$ARCH=$(uname -m) | |
if [[ "$ARCH" == "x86_64" ]] | |
then |
python -c import sys, os; verbosity=0; sys.stdin = os.fdopen(0, 'rb'); exec(compile(sys.stdin.read(958), '<string>', 'exec')) |