Skip to content

Instantly share code, notes, and snippets.

View burdzwastaken's full-sized avatar
🌪️
:(){ :|: & };:

Matt Burdan burdzwastaken

🌪️
:(){ :|: & };:
View GitHub Profile
@burdzwastaken
burdzwastaken / tmux-cheatsheet.markdown
Created April 27, 2018 22:24 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@burdzwastaken
burdzwastaken / spectre.c
Last active January 5, 2018 23:49 — forked from ErikAugust/spectre.c
Spectre example code
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
#pragma optimize("gt",on)
#else
#include <x86intrin.h> /* for rdtscp and clflush */
#endif
@burdzwastaken
burdzwastaken / lambdaAMICleanup.py
Created September 6, 2017 04:18 — forked from bkozora/lambdaAMICleanup.py
AWS Lambda Function to Delete AMIs and Snapshots
# Automated AMI and Snapshot Deletion
#
# @author Robert Kozora <bobby@kozora.me>
#
# This script will search for all instances having a tag with "Backup" or "backup"
# on it. As soon as we have the instances list, we loop through each instance
# and reference the AMIs of that instance. We check that the latest daily backup
# succeeded then we store every image that's reached its DeleteOn tag's date for
# deletion. We then loop through the AMIs, deregister them and remove all the
# snapshots associated with that AMI.