I hereby claim:
- I am alloydwhitlock on github.
- I am alloydwhitlock (https://keybase.io/alloydwhitlock) on keybase.
- I have a public key whose fingerprint is 2260 8CFD 4C57 12F7 8EED 7514 AD0C DE08 F3C9 54FA
To claim this, I am signing this object:
#!/bin/bash | |
# Name: Nexus MVN Retrieval | |
# Script: nexartrel.sh | |
# Version: 0.0.3 | |
# Author: Adam Whitlock [adam@adamwhitlock.com] | |
# Command line options to be passed | |
function options { |
#!/bin/bash | |
# Purpose: Setup local Airflow Python development environment | |
# Author: Adam Whitlock (adam@adamwhitlock.com) | |
# Version: 0.0.1 | |
# Specify major version of Python used for Airflow | |
PYTHON_VERSION="2" | |
AIRFLOW_VERSION="1.10.1" |
#!/bin/bash | |
# | |
# Name: Grafana dashboard backup script | |
# Version: 0.1 | |
# Requires: jq | |
display_usage() { | |
echo "Usage: $0 HOSTNAME KEY DIR" | |
echo "Backup all Grafana dashboards using Grafana API key" | |
echo "Requires 'jq' to parse JSON" |
#!/bin/bash | |
# This is a quick & dirty way of comparing a bunch of various repositories | |
# visually to understand divergence. Made this very relaxed so anyone with | |
# shell experience can modify it to their whim. | |
# | |
# Suggestions include having comparitive operations between branch names, | |
# maybe giving an error if ANY divergence is encountered, or maybe trying | |
# to automatically merge branches if doing something silly like Git flow. |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"github.com/urfave/cli" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"os" |
alias bastionssh='ssh -X -K -D 9999 targethost.example.com -t tmux attach -t session_name' |
#!/bin/bash | |
# | |
# Clear SSH control master sockets if using Cisco AnyConnect on Mac OS X | |
$(command -v ifconfig) | $(command -v grep) 'tun3' > /dev/null 2>&1 | |
[[ $? -eq 0 ]] && rm -f ~/.ssh/master-alloydwhitlock@* && echo "Cleared SSH control masters from prior connections..." |
-- These are two separate Applescripts that can be executed within an automator workflow. Create a new workflow, create two “run applescript” actions, and paste them. This script will copy the RSA token, set your PIN, and paste it. If you don’t want the pin copied, remove the two lines with “pin” in the second applescript. There are instructions online about setting workflows as services which can be called via key commands. | |
-- You can set the “terminalapp” to whichever app you use (I use iTerm) and the “pin” to your PIN. | |
on run {input, parameters} | |
set terminalapp to "iTerm" | |
set pin to "6666" | |
#!/bin/bash | |
# Name: sudoaudit | |
# Author: Adam Whitlock | |
# Version: 0.1 | |
# Purpose: Send e-mail when sudo is invoked by a user | |
# | |
# Note: Please setup the following parameters in /etc/sudoers: | |
# mailto: "auditemailaddress@companyname.com” | |
# mail_always: on |
I hereby claim:
To claim this, I am signing this object: