Skip to content

Instantly share code, notes, and snippets.

View mtheoryx's full-sized avatar
🐳
Making happy little clouds

David Poindexter mtheoryx

🐳
Making happy little clouds
View GitHub Profile
@mtheoryx
mtheoryx / cdk-boostrap.txt
Created April 27, 2022 15:06
cdk bootstrap instructions
## IF YOU HAVE A DEFAULT PROFILE FOR AWS CLI
cdk bootstrap aws://<ACCOUNT_NUMBER>/<REGION> --trust <CROSS_ACCCOUNT_NUMBER>
## IF YOU HAVE A NAMED PROFILE FOR AWS CLI
cdk bootstrap aws://<ACCOUNT_NUMBER>/<REGION> --profile LOCAL_AWS_CONFIG_NAMED_PROFILE --trust <CROSS_ACCCOUNT_NUMBER>
@mtheoryx
mtheoryx / cdk-deploy-policy.json
Created April 21, 2022 14:18
CDK Deployment Policy
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"sts:AssumeRole",
"iam:PassRole"
],
"Resource": [
"arn:aws:iam::<ACCOUNT_NUMBER>:role/cdk-hnb659fds-image-publishing-role-*",
@mtheoryx
mtheoryx / cdk-boostrap-policy.json
Created April 19, 2022 18:31
Consolidated minimum permissions to CDK bootstap an AWS account and region
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "0",
"Effect": "Allow",
"Action": [
"cloudformation:DescribeStacks",
"cloudformation:CreateChangeSet",
"cloudformation:DescribeChangeSet",
@mtheoryx
mtheoryx / cdk-bootstrap-policy.json
Created April 19, 2022 15:42
Minimum permissions to CDK bootstrap and account and region
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "0",
"Effect": "Allow",
"Action": "cloudformation:DescribeStacks",
"Resource": "arn:aws:cloudformation:<REGION>:<ACCOUNT_NUMBER>:stack/CDKToolkit/*"
},
{

A couple of months ago, my wife got a new cell phone.

I don't quite know what to believe, even to this day, but I have to trust that what she saw was real. So I'm telling you now.

After a long day of shopping, cleaning, generally managing the engines of our household like a boss, the day was over. She placed the phone on the desk in her office, and she made her way to the living room to watch something on TV.

At some point, our youngest son approached her at the end of the couch and asked if he could play with her new phone. She told him not to call anyone or mess with text messages, and he agreed, running into her office to grab the phone, and then to his room to play with his new borrowed toy.

At around 11:20 pm, far later than we usually stay up, she was drowsy, so she decided to tuck him into bed and call it a night.

AWS.mock('S3', 'putObject', sinon.stub().withArgs(sinon.match(expectedParams)).resolves(response));
@mtheoryx
mtheoryx / quinn-brightward.md
Created May 15, 2021 14:54
Character description for commissioned token artwork

Character Basics

  • Name: Quinn Brightward
  • Race: Human, variant
  • Age: Mid-Twenties
  • Class: Paladin, Oath of Glory
  • Gender: Male
  • Alignment: Lawful Neutral
  • Forgotten Realms Deity: Torm, god of courage and self-sacrifice, LG, War domain
  • Symbol: White right gauntlet
@mtheoryx
mtheoryx / machine.js
Created June 1, 2020 19:15
Generated by XState Viz: https://xstate.js.org/viz
const lightBulbMachine = Machine({
id: "lightBulb",
initial: "unlit",
states: {
lit: {
on: {
BREAK: "broken",
TOGGLE: "unlit",
},
},
set nocompatible " be iMproved, required
filetype off " required
" Visual preferences
"set conceallevel=2 " Markdown italics, bold, links
set termguicolors " No idea why I needed this
set number " Line numbers on the left
set relativenumber " Relative numbers on the left
syntax on " Enable built-in syntax highlighting
@mtheoryx
mtheoryx / conference-talk-outline.md
Last active March 13, 2020 18:34
Initial conf talk outline

Event-driven Security with AWS Security Services

Who is CleanSlate Technology Group

Some Sales Team member will do this part

Intro

There are 3 common types of Clouds