Skip to content

Instantly share code, notes, and snippets.

View cloin's full-sized avatar
👋
Event-Driven Ansible all day

Colin McNaughton cloin

👋
Event-Driven Ansible all day
View GitHub Profile
@cloin
cloin / clip_teeter_coupons.js
Created July 5, 2024 17:56
Clip all Harris Teeter coupons
// ==UserScript==
// @name Clip All Grocery Coupons
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Adds a button next to "print my coupons" to clip all unclipped coupons on the page. Teeter has a max of 200 clipped.
// @author cloin
// @match https://www.harristeeter.com/savings/cl/coupons/*
// @grant none
// ==/UserScript==
#!/bin/bash
# credit: https://devnambi.com/2020/set-aws-session.html
# Sets up new profile with MFA credentials
# Need to first create a profile in ~/.aws/credential
# `get_token.sh -p <profile_name> -t <token>` generates MFA profile
# (optional) `source get_token.sh -p <profile_name> -t <token>` does the same and sets environment variables
# Default profile expects $AWS_MFA_DEFAULT set to serial of MFA device
# (e.g. arn:aws:iam::0123456789:mfa/Ernie)
@cloin
cloin / weechat highlights in Mac OS X Notification Center.md
Last active February 13, 2019 10:13
weechat highlights in Mac OS X Notification Center