I hereby claim:
- I am pemcconnell on github.
- I am pemcconnell (https://keybase.io/pemcconnell) on keybase.
- I have a public key whose fingerprint is DD8F F839 3477 8AB5 1281 4247 2D50 21BD AD9B 0FDE
To claim this, I am signing this object:
#!/usr/bin/env bash | |
############################################################################### | |
## connect to an instance via SSM | |
############################################################################### | |
if [ ! -f ~/.aws/credentials ]; then | |
echo "this script scrapes profiles set up in ~/.aws/credentials" | |
echo "please set that file up" | |
exit 1 |
# get 172 address from WSL env - ip addr show <device> | |
netsh interface portproxy add v4tov4 listenport=6443 listenaddress=0.0.0.0 connectport=6443 connectaddress=172.x.x.x | |
# then ensure the given listen port (6443 in this example) is open on the firewall |
#!/usr/bin/env python3 | |
""" | |
simple zmq publisher | |
""" | |
import argparse | |
import json | |
import zmq | |
FROM ubuntu:20.04 | |
LABEL "MAINTAINER" "Peter McConnell <[email protected]>" | |
SHELL ["/bin/bash", "-eo", "pipefail", "-c"] | |
RUN apt-get update && \ | |
DEBIAN_FRONTEND=noninteractive \ | |
apt-get install -yq --no-install-recommends \ | |
xauth \ | |
openssh-server \ |
#!/usr/bin/env python | |
import os | |
import sys | |
import subprocess | |
import time | |
# How often we check the filesystem for changes (in seconds) | |
wait = 1 | |
command = ' '.join(sys.argv[1:]) |
I hereby claim:
To claim this, I am signing this object:
mysqldump -h [server] -u [user] -p[password] db1 | mysql -h [server] -u [user] -p[password] db2 |
cd && git clone [email protected]:pemcconnell/.dotfiles.git && cd .dotfiles && make install |
NGINX_VERSION=1.6.2 | |
NPS_VERSION=1.9.32.2 | |
cd $HOME | |
wget http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz | |
wget http://github.com/pagespeed/ngx_pagespeed/archive/release-${NPS_VERSION}-beta.tar.gz | |
tar xzfv nginx-${NGINX_VERSION}.tar.gz | |
tar zxfv release-${NPS_VERSION}-beta.tar.gz | |
cd ngx_pagespeed-release-${NPS_VERSION}-beta/ |