Skip to content

Instantly share code, notes, and snippets.


Curtis Mckee cmckee-dev

Block or report user

Report or block cmckee-dev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:20626fe4de977c3cd842f6e382ac8e18
git clone ~/.linuxbrew/Homebrew
mkdir ~/.linuxbrew/bin
ln -s ../Homebrew/bin/brew ~/.linuxbrew/bin
eval $(~/.linuxbrew/bin/brew shellenv)

brew tap aws/tap
brew install aws-sam-cli

Security Groups

aws ec2 describe-security-groups
aws ec2 create-security-group --description "Security group for Napster services." --group-name napster --vpc-id vpc-be4f5bdb sg-01c495c1e361abd30


View github-corner.less
.github-corner:hover .octo-arm {
animation: octocat-wave 560ms ease-in-out
.github-corner svg {
fill: gray;
color: #fff;
.github-corner:hover svg {

Hugo Static Website Generator Reference


sudo apt-get install hugo

This installs the the “extended” Sass/SCSS version.

cmckee-dev /
Last active Feb 14, 2019
Git Stash Cheatsheet

git stash list

  • Lists all stashes on stack.

git stash apply stash@{0}

  • Applies the changes from stash but does not delete from stack.

git stash pop stash@{3}

  • Applies the changes from stash and deletes from the stack.

git stash show stash@{2}


AWS 9 in 2019


aCloudGuru membership - $250/yr. This includes all training courses as well as practice exams.
Cloud Practitioner Exam - $100, Associate Exams - $150, Professional & Specialty Exams - $300.
Total Estimated Cost for all 9 certifications: $2300

  1. Cloud Practitioner
  2. Solutions Architect Associate
cmckee-dev /
Created Dec 3, 2018
Guideline for locking down your debian installation to be more secure.

Debian Security Guideline

Encryption/ Device Lock Down

  • Revoke GRUB shell access
  • UEFi setup menu supervisor password protected
  • All Boot devices disabled
  • LUKS hard drive encryption

TPM Module

  • Storing LUKS key and doing pre-boot integrity checks
cmckee-dev /
Last active Sep 14, 2019
Useful commands while working with Unix

Add User:
useradd -m -g [group] -G [additional_group] [username]

The -m flag creates /home directory for user

Expire User:
usermod --expiredate [YYYY-MM-DD] [username]

If user try to login, he or she will get the following message:

Your account has expired; please contact your system administrator Authentication failure

cmckee-dev /
Last active Nov 10, 2018
Good way to manage environment varaiables while adhearing to 12 Factor App.
# .env

export GITHUB_CLIENT_ID=blahblahblah
export GITHUB_CLIENT_SECRET=blahblahblah

export POSTGRES_HOST=localhost
export POSTGRES_USER=user
You can’t perform that action at this time.