Skip to content

Instantly share code, notes, and snippets.

💻
Coding

Curtis Mckee cmckee-dev

💻
Coding
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 https://github.com/Homebrew/brew ~/.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
View aws-cli-cheatsheet.md

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

EC2


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 {
View Golang-Hugo-Reference.md

Hugo Static Website Generator Reference

Installation

Ubuntu:
sudo apt-get install hugo

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

@cmckee-dev
cmckee-dev / git-stash.md
Last active Feb 14, 2019
Git Stash Cheatsheet
View git-stash.md

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}

View aws-9-in-2019.md

AWS 9 in 2019

aws-certs

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
cmckee-dev / debian-security.md
Created Dec 3, 2018
Guideline for locking down your debian installation to be more secure.
View debian-security.md

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
cmckee-dev / unix-notes.md
Last active Sep 14, 2019
Useful commands while working with Unix
View unix-notes.md

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
cmckee-dev / Environment-Variable-Managment.md
Last active Nov 10, 2018
Good way to manage environment varaiables while adhearing to 12 Factor App.
View Environment-Variable-Managment.md
# .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.