Skip to content

Instantly share code, notes, and snippets.

View QuinnyPig's full-sized avatar

Corey Quinn QuinnyPig

View GitHub Profile
@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,
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"
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
@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]))
Coreys-Mac:~ cquinn$ tree /Library/Developer/CommandLineTools
-bash: tree: command not found
Coreys-Mac:~ cquinn$ # Dammit mistym!
Coreys-Mac:~ cquinn$ find /Library/Developer/CommandLineTools
find: /Library/Developer/CommandLineTools: No such file or directory
Coreys-Mac:~ cquinn$ /usr/bin/clang --version
Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
@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 / gist:3029388
Created July 1, 2012 19:54
cairo build failure
cquinn@quinntel ~ % brew doctor 1 22076 12:48:39 Sun 07- 1-2012
Your system is raring to brew.
cquinn@quinntel ~ % brew --config 22075 12:48:35 Sun 07- 1-2012
HOMEBREW_VERSION: 0.9.1
HEAD: d68131523bea48cba7c8c92780ea660d219cdfdd
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit sandybridge
OS X: 10.7.4-x86_64
@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