Skip to content

Instantly share code, notes, and snippets.

View marknca's full-sized avatar

Mark marknca

View GitHub Profile
@marknca
marknca / .bash_profile
Last active July 7, 2018 12:05
Mac bash personal configuration
# Config var
USERNAME=__CHANGE_THIS__
# Path
export PATH=$PATH:/Users/$USERNAME/bin:/usr/local/go/bin:/usr/local/bin:$PATH
# Env
export EDITOR=subl
# Prompt
@marknca
marknca / santa.py
Last active December 11, 2020 22:07
A quick Secret Santa generator. You can specify restrictions (e.g., don't let Larry draw Jen's name). Set the three TODO sections (line 14, line 17, and line 74) before running the script.
#! /usr/bin/env python
# Usage
# ===============================
# test run
# ./santa.py --test
#
# game time
# ./santa.py --password EMAIL
#
@marknca
marknca / remove-opsworks-security-groups.sh
Last active March 27, 2023 15:29
Remove OpsWorks security groups from a given region
#! /usr/bin/env bash
# Remove OpsWorks security groups from the given region
# Available regions:
# ====================
# ap-northeast-1 => Asia Pacific (Tokyo) Region
# ap-southeast-1 => Asia Pacific (Singapore) Region
# ap-southeast-2 => Asia Pacific (Sydney) Region
# eu-west-1 => EU (Ireland) Region