Skip to content

Instantly share code, notes, and snippets.

View quantumew's full-sized avatar

Andrew Gertjejansen quantumew

  • Minnesota, USA
View GitHub Profile
@cpswan
cpswan / clientpack.sh
Last active February 5, 2016 16:01
Get a VNS3 clientpack
#!/bin/bash
command -v openvpn >/dev/null 2>&1 || { echo "OpenVPN should be installed first. Aborting." >&2; exit 1; }
command -v curl >/dev/null 2>&1 || { echo "This script requires curl, but it's not installed. Aborting." >&2; exit 1; }
MGRIP=10.0.0.10
APIPW=pa55Word
NAME=$1
if [ -e /etc/openvpn/clientpack.ip ]; then
echo "VNS3 Clientpack already installed"
else
CLIENTPACKJSON=`curl -k -X POST -u api:$APIPW -H 'Content-Type: application/json' https://$MGRIP:8000/api/clientpacks/next_available`
@l15n
l15n / git-branches-by-commit-date.sh
Created July 13, 2012 08:47 — forked from jasonrudolph/git-branches-by-commit-date.sh
List remote Git branches and the last commit's author and author date for each branch. Sort by most recent commit's author date.
# Credit http://stackoverflow.com/a/2514279
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ai %ar by %an" $branch | head -n 1` \\t$branch; done | sort -r