Skip to content

Instantly share code, notes, and snippets.

View gwojtak's full-sized avatar
💭
Eating a crate of Hamdingers™

Greg Wojtak gwojtak

💭
Eating a crate of Hamdingers™
View GitHub Profile

Keybase proof

I hereby claim:

  • I am gwojtak on github.
  • I am gwojtak (https://keybase.io/gwojtak) on keybase.
  • I have a public key ASAEo0rPB_mhW_NBpz8hiIUBysy_t4SAwelS75_RGxUZAwo

To claim this, I am signing this object:

@gwojtak
gwojtak / convert.py
Created October 23, 2019 13:46
Convert IAM Secret Access Key to SES SMTP Password
#!/usr/bin/env python3
import hmac
import hashlib
import base64
import argparse
# Values that are required to calculate the signature. These values should
# never change.
DATE = "11111111"
@gwojtak
gwojtak / enforce_permissions.sh
Created April 9, 2020 22:06
Enforce Permissions on a directory
inotifywait -mrq -e CREATE --format %w%f "$1" | while read FILE
do
[[ -d "${FILE}" ]] && chmod 2775 "${FILE}"
[[ -f "${FILE}" ]] && chmod 0664 "${FILE}"
done
@gwojtak
gwojtak / user.cfg
Last active June 16, 2024 23:33
Star Citizen user.cfg
; System specs:
; Intel 12700KF (12th gen Core i7 Unlocked, no iGPU)
; GeForce 3060 ti 8 GB
; 32 GB DDR5 5200 RAM
;
; yields ~55-60 fps in crowded areas (cities/stations)
; 150-160 in space/planets
Con_Restricted = 0
r_displayinfo = 1
@gwojtak
gwojtak / eks-endpoint-errors.md
Created January 15, 2025 14:22
eks endpoint errors when specifying a policy

With a policy that specifically allows all

📂 tf $ cat main.tf
provider "aws" {
  region = "us-west-2"
}

data "aws_subnets" "all" {}

data "aws_security_groups" "default" {}