Skip to content

Instantly share code, notes, and snippets.

View cjthorpe's full-sized avatar

Chris Thorpe cjthorpe

View GitHub Profile
@cjthorpe
cjthorpe / IAM-Policy-Restrict-Master
Created January 17, 2020 17:03
Example IAM Policy to Restrict Pushing Directly to Master Branch in CodeCommit
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Deny",
"Action": [
"codecommit:GitPush",
"codecommit:DeleteBranch",
"codecommit:PutFile"
],
### Keybase proof
I hereby claim:
* I am cjthorpe on github.
* I am chrisjthorpe (https://keybase.io/chrisjthorpe) on keybase.
* I have a public key ASDTlFHNIfkdW16bSR5RhjuE61wYBOP47qjKYRTk_4gvHAo
To claim this, I am signing this object:
# RAM Usage
ps aux | awk '{print $6/1024 " MB\t\t" $11}' | sort -rn | head -25
# HISTIGNORE - Colon-separated list of exact commands to ignore storing of in BASH history.
HISTIGNORE="clear:bg:fg:cd:exit:date:w:* --help"
# Format, Mount drives in Linux (Ubuntu)
sudo mkfs.ext4 /dev/sdb
sudo mkdir /mnt/sdb