Skip to content

Instantly share code, notes, and snippets.

View Calrion's full-sized avatar

Greg Waterhouse Calrion

View GitHub Profile
#!/bin/bash
# A simple script to backup an organization's GitHub repositories.
GHBU_BACKUP_DIR=${GHBU_BACKUP_DIR-"github-backups"} # where to place the backup files
GHBU_ORG=${GHBU_ORG-"<CHANGE-ME>"} # the GitHub organization whose repos will be backed up
# (if you're backing up a user's repos instead, this should be your GitHub username)
GHBU_UNAME=${GHBU_UNAME-"<CHANGE-ME>"} # the username of a GitHub account (to use with the GitHub API)
GHBU_PASSWD=${GHBU_PASSWD-"<CHANGE-ME>"} # the password for that account
GHBU_GITHOST=${GHBU_GITHOST-"github.com"} # the GitHub hostname (see comments)
GHBU_PRUNE_OLD=${GHBU_PRUNE_OLD-true} # when `true`, old backups will be deleted
@Calrion
Calrion / aws-getkeys.sh
Last active December 17, 2015 16:39
Shell script to obtain AWS access and secret key credentials. This script isn't designed to be used on its own (though it's a great self-contained tester for checking your setup) but rather incorporated into a larger script, which then makes use of the credentials to access AWS resources.
#!/bin/sh
# Shell script to obtain AWS access and secret key credentials.
# Written by Greg Waterhouse, 2013-05-23.
# Copyright 2013 Greg Waterhouse
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
@Calrion
Calrion / README.md
Created December 8, 2011 04:32
Mount Stop Daemon (for Mac OS X)

Mount Stop Daemon

Mount Stop Daemon is a command-line utility for Mac OS X that prevents volumes from being automatically mounted. Any and all new volumes will not be automatically mounted while mountstopd is running.

Usage