Skip to content

Instantly share code, notes, and snippets.

View willmorgan's full-sized avatar

Will Morgan willmorgan

View GitHub Profile
#!/bin/sh
# Pre-commit file needs to be executable so first
# chmod +x .git/hooks/pre-commit
# Fix your grunt path
PATH="/usr/local/bin:$PATH"
# Runs grunt default
echo "Running Grunt..."
@willmorgan
willmorgan / update-authorized-keys.sh
Created April 19, 2017 12:55 — forked from dhensby/update-authorized-keys.sh
Script to update SSH keys for a user
#!/usr/bin/env bash
USER=''
HOME_DIR=''
DEBUG=false
KEY_FILE=''
function setuser {
if [ -z "$1" ]; then
echo "RUNTIME EXCEPTION: No user supplied"