I hereby claim:
- I am smgoller on github.
- I am smgoller (https://keybase.io/smgoller) on keybase.
- I have a public key ASBoe1nu2JMs8ApBC86mQbXib8RJMDP3geh2Y0hi1MLvZAo
To claim this, I am signing this object:
version: "3.8" | |
networks: | |
default: | |
driver: bridge | |
socket_proxy: | |
name: socket_proxy | |
driver: bridge | |
services: | |
# Docker Socket Proxy - Security Enchanced Proxy for Docker Socket | |
socket-proxy: |
kubectl get namespace "NAMESPACE" -o json | tr -d "\n" | sed "s/\"finalizers\": \[[^]]\+\]/\"finalizers\": []/" | kubectl replace --raw /api/v1/namespaces/NAMESPACE/finalize -f - |
#!/bin/bash -e | |
# Setup a Root CA in vault | |
# Generate and sign an Intermediate cert | |
# | |
# Requires: | |
# * A running vault server already initialzed and unsealed | |
# * Environment variable VAULT_TOKEN is set | |
# * vault cli (https://www.vaultproject.io) | |
# * httpie (https://github.com/jkbrzt/httpie) |
#!/usr/bin/env bash | |
[[ -d /usr/local/Homebrew ]] || /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
hash foo 2>/dev/null || brew install ansible lastpass-cli | |
echo "Enter your lastpass username:" | |
read username | |
lpass login ${username} | |
mkdir -p ~/.ssh | |
lpass show --notes 7467094604006037409 > ~/.ssh/id_rsa_toolsmiths | |
lpass show --field="Public Key" 7467094604006037409 > ~/.ssh/id_rsa_toolsmiths.pub | |
chmod 700 ~/.ssh |
#!/bin/bash | |
set -e | |
# Standalone script to install Xcode w/ CLI tools on a fresh OS X 10.8, via applescript. | |
# This might be more lovely (and maintainable) as ruby, if only we could have some handy | |
# gems that all need a compiler for native extensions. We don't, so do it old school. | |
# Some things: |
#This regex looks for $ followed by anything other than { (wrapped variable) and ( (execute command in subshell) | |
\$(?!\{|\() |
using terms from application "Colloquy" | |
on process user command c with arguments for view | |
try | |
if c is in {"nowplaying", "np", "playing"} then | |
tell application "Google Chrome" | |
repeat with w in (every window) | |
repeat with t in (every tab whose URL contains "play.google.com/music") of w | |
if (execute t javascript "document.getElementsByClassName('playing').length") is equal to 1 then | |
set tTitle to execute t javascript "document.getElementById('playerSongTitle').innerText;" | |
set tArtist to execute t javascript "document.getElementById('player-artist').innerText;" |
I hereby claim:
To claim this, I am signing this object:
javascript:void(function(){var i,a,s;$.ajax({url: '/', async: false});a=document.getElementsByTagName('link');for(i=0;i<a.length;i++){s=a[i];if(s.rel.toLowerCase().indexOf('stylesheet')>=0&&s.href) {var h=s.href.replace(/(&|%5C?)forceReload=d+/,'');s.href=h+(h.indexOf('?')>=0?'&':'?')+'forceReload='+(new Date().valueOf())}}})(); |