Skip to content

Instantly share code, notes, and snippets.

Working from home

Mike Flynn mikeflynn

Working from home
View GitHub Profile
mikeflynn /
Last active Apr 8, 2021
A bash script wrapper to better manage AWS EC2 security groups from the command line.
# A script that wraps the aws-cli to automate the auditing of EC2 security groups
# Requires: and
if [ -z $(which aws) ]; then
echo "ERROR: The aws-cli command is not installed or not in your path."
exit 1
View gist:e181b503f5c0ccf254bfc83025820036
(require '[ :as csv])
(require '[ :as api])
(require '[ :as c])
(require '[api.cms :as cms])
(defn foobar
[infile outfile country]
(->> (slurp infile)
(map #(assoc % :cms-name (->> (c/get :id (:id %) :fields [:cms])
mikeflynn /
Last active Jan 22, 2022
STLToday Paywall Bookmarklet

The Paywall Busting Bookmarklet

To sneak past the STLToday paywall you need to do the following (I'm assuming you're using Google Chrome, but the same basics will work on any PC browser.)

  1. Go to

  2. Create a bookmark of that page.

  3. Edit the bookmark.


Keybase proof

I hereby claim:

  • I am mikeflynn on github.
  • I am thatmikeflynn ( on keybase.
  • I have a public key ASDqiTuDgXFj_OtFiqtwyfuw_3FHV58xJcTWXZwn6ZAPvgo

To claim this, I am signing this object:

mikeflynn /
Last active Dec 28, 2016
A bash script to download video from Foscam cameras.
#!/usr/bin/env bash
# ./ xxxxxx yyyyyy > /dev/null 2>&1
# Check input.
if [ -z "$1" ]; then
echo "Missing camera hostname."
exit 1
mikeflynn / template.rss
Created Jun 29, 2016
RSS Feed Template
View template.rss
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:media="" xmlns:itunes="" xmlns:dcterms="" version="2.0">
<title>[LOL] DmPranksProductions from 20160601</title>
<itunes:images href=""></itunes:images>
<guid isPermaLink="false">spf_-vfqSkrfhlw</guid>
View yt_crawler.go
package main
import (
mikeflynn /
Last active Jun 19, 2019
Example Wordpress Makefile
include ../_global/
@./wp core config --dbname=example_site --dbuser=root --dbpass=root --path=./wordpress --skip-check;
@echo "Theme file found."
@unzip -d wordpress/wp-content/themes
mikeflynn / hue.go
Last active Oct 5, 2015
Hue lights API in Go
View hue.go
package main
import (
mikeflynn / dashbutton_sniff.go
Last active Oct 5, 2015
The network sniffing functionality for the Amazon Dash Button hack.
View dashbutton_sniff.go
func SnifferStart() {
// Get a list of all interfaces.
ifaces, err := net.Interfaces()
if err != nil {
var wg sync.WaitGroup
for _, iface := range ifaces {