Skip to content

Instantly share code, notes, and snippets.

View QuinnyPig's full-sized avatar

Corey Quinn QuinnyPig

View GitHub Profile
import boto3
import requests
def handler(context, event):
url = "https://sisa.msal.gov.ar/datos/descargas/covid-19/files/datos_nomivac_covid19.zip"
session = requests.Session()
response = session.get(url, stream=True)
s3_bucket = "streambucket-shitposting"
@QuinnyPig
QuinnyPig / resignation.txt
Last active January 31, 2023 06:51
Templated resignation letter
Dear BOSS,
Please accept this letter as formal notification that I am resigning from my position as JOB TITLE with COMPANY. My last day will be DATE OF LAST DAY.
Thank you so much for the opportunity to work in this position for the past DURATION. I’ve greatly enjoyed and appreciated the opportunities I’ve had to WTF DID YOU DO, and I’ve learned many things, all of which I will take with me throughout my career.
During my last two weeks, I’ll do everything possible to wrap up my duties and train other team members. Please let me know if there’s anything else I can do to aid during the transition.
I wish COMPANY continued success, and I hope to stay in touch in the future.
Sincerely,
@QuinnyPig
QuinnyPig / buildspec.yml
Last active October 16, 2018 04:43
The buildspec.yml that deploys Last Week in AWS.
version: 0.2
phases:
install:
commands:
- echo Entered the install phase...
- pip install -r requirements.txt
build:
commands:
- echo Entered the build phase...
@QuinnyPig
QuinnyPig / inventory_vpcs.py
Created December 18, 2016 08:15 — forked from jezhumble/inventory_vpcs.py
List EC2 and RDS instances, grouped by VPC
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import argparse, sys, boto3, pprint
def count(my_list, my_key):
if my_key not in my_list:
return '0'
else:
return str(len(my_list[my_key]))
@QuinnyPig
QuinnyPig / gist:01e540cf9e4d1b346cc9
Created October 24, 2015 19:04
Git log aliases
l = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
h = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
@QuinnyPig
QuinnyPig / zshrc
Last active August 29, 2015 14:25
# Alias hub to git if it's installed, otherwise don't blow up
if type "hub" > /dev/null; then
alias git=hub
fi
# Crappy OS X detection. This sets some Java and EC2 required nonsense.
if [[ -e /usr/local/Cellar ]]; then
export JAVA_HOME="$(/usr/libexec/java_home)"
export EC2_HOME="/usr/local/Library/LinkedKegs/ec2-api-tools/jars"
fi
cquinn@Quinnertube(master|✚1…) ~/src/moreutils % make 4 13838 14:16:30 Sun 07-12-2015
cc -O2 -g -Wall ifdata.c -o ifdata
ifdata.c:133:5: warning: implicit declaration of function 'error' is invalid in C99 [-Wimplicit-function-declaration]
error(EXIT_FAILURE, 0,
^
1 warning generated.
Undefined symbols for architecture x86_64:
"_error", referenced from:
_do_socket_ioctl in ifdata-0e01ad.o
_please_do in ifdata-0e01ad.o
----------
ID: rabbitmq_vhost_sensu
Function: rabbitmq_vhost.present
Name: sensu
Result: False
Comment: An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/salt/state.py", line 1563, in call
**cdata['kwargs'])
File "/usr/lib/python2.7/site-packages/salt/states/rabbitmq_vhost.py", line 84, in present
if any(user, owner, conf, write, read):
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
*.log
*.so
*.7z
cquinn@Quinnertube ~/src/terraform-example % terraform plan 11 11981 16:25:09 Mon 06- 8-2015
Error loading config: Error parsing /Users/cquinn/src/terraform-example/main.tf: Line 103, column 43: syntax error
cquinn@Quinnertube ~/src/terraform-example % wc -l main.tf [1] 0 11982 16:25:17 Mon 06- 8-2015
100 main.tf