Skip to content

Instantly share code, notes, and snippets.

View kmcquade's full-sized avatar

Kinnaird McQuade kmcquade

View GitHub Profile
@kmcquade
kmcquade / demo.yml
Created July 10, 2020 16:55
Default Policy Sentry file
mode: crud
name: ''
# Specify resource ARNs
read:
- 'arn:aws:s3:::example/*'
write:
- 'arn:aws:s3:::example/*'
list:
- 'arn:aws:s3:::example/*'
tagging:
@kmcquade
kmcquade / brick-aws.sh
Last active September 26, 2023 22:52
One-liner to brick AWS accounts from the Master Payer
aws organizations attach-policy \
--policy-id $(aws organizations create-policy --name pwn \
--type SERVICE_CONTROL_POLICY \
--description "pwn"
--content '{"Version": "2012-10-17","Statement": [{"Effect": "Deny", "Action": "*", "Resource": "*"}]}' \
| jq ".Policy.PolicySummary.Id"\
) \
--target-id $(aws organizations list-roots | jq ".Roots | .[0].Id")
Salt nicotine juice Regular juice
Size of "vape cloud" Less Cloud More Cloud
mg/mL Ranges from 24-50 Ranges from 3-12
@kmcquade
kmcquade / bootstrap3buttoncolors.css
Created May 2, 2020 19:31
Bootstrap 3 CSS button colors - copy over to custom style for use in Boostrap 4
.btn {
display: inline-block;
padding: 6px 12px;
margin-bottom: 0;
font-size: 14px;
font-weight: normal;
line-height: 1.42857143;
text-align: center;
white-space: nowrap;
vertical-align: middle;
@kmcquade
kmcquade / quitting-nicotine-pt-3.md
Created April 4, 2020 20:24
Table demonstrating tapering schedule of nicotine gum + cinnamon gum combo
Pattern Nicorette mg/piece Regular gum pieces/day Total dosage
4 nicotine, 1 regular 16 pieces/day 2 4 32 mg/day
3 nicotine, 1 regular 15 pieces/day 2 5 30 mg/day
2 nicotine, 1 regular 12 pieces/day 2 8 24 mg/day
1 nicotine, 1 regular 10 pieces/day 2 10 20 mg/day
1 nicotine, 2 regular 8 pieces/day 2 12 16 mg/day
1 nicotine, 3 regular 5 pieces/day 2 15 10 mg/day
1 nicotine, 4 regular 4 pieces/day 2 16 8 mg/day
1 half size ni
@kmcquade
kmcquade / quitting-nicotine-gum-dosage-pt2.md
Created April 4, 2020 19:55
Table demonstrating my initial nicotine gum dosage when quitting
Nicorette pieces per day Nicorette dosage Total dosage
20 pieces 4mg 80 mg/day
30 pieces 2mg 60 mg/day
20 pieces 2mg 40 mg/day
@kmcquade
kmcquade / quitting-nicotine-dosage.md
Last active May 9, 2020 21:28
Table demonstrating part 1 of my tapering method
Method mg/mL mL per Tank Tanks per day Total mg per day
Salt Nicotine 50 3 2.5 375
Salt Nicotine 35 3 3 315
Salt Nicotine 35 3 2.5 262
Salt Nicotine 24 3 3 216
Salt Nicotine 24 3 2.5 180
Non-salt nicotine 12 3 3 108
Non-salt nicotine 12 3 2.5 90
Non-salt nicotine 6 3 3 54
@kmcquade
kmcquade / PreventMarketplaceImages.json
Last active October 27, 2021 14:19
Testing this out with AWS
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Deny",
"Action": "ec2:RunInstances",
"Resource": "arn:aws:ec2:*::image/ami-*",
"Condition": {
"StringNotEquals": {
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "SsmReadParameter",
"Effect": "Allow",
"Action": [
"ssm:GetParameter",
"ssm:GetParameterHistory",
"ssm:GetParameters",
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:*"
],
"Resource": "arn:aws:s3:::my-bucket"
}