Skip to content

Instantly share code, notes, and snippets.

@sheeley
sheeley / obsidian.tf
Created October 18, 2021 22:26
Setting up Cloudformation for Obsidian using Terraform
resource "aws_acm_certificate" "aigee_org" {
domain_name = "aigee.org"
subject_alternative_names = ["notes.aigee.org"]
validation_method = "DNS"
lifecycle {
create_before_destroy = true
}
}
@sheeley
sheeley / rap.md
Created May 26, 2019 01:02
I Want You to Know
  • Jungle Brothers - Raw Deluxe
  • ATCQ, Busta Rhymes, Charlie Brown, Scenario, Black Sheep, De La Soul,
  • Busta w/Flipmode, Spliff Starr, Beatminerz
  • Jay-Z vs. Nas
  • Cocoa Brovas, Smif n Wesson
  • Cam’ron, Juelz Santana, chipmunk soul, Kanye
  • THPS, b-boy document
  • Rawkus, Mos Def, Talib Kweli, Common, DCQ
  • 7L & Esoteric - The Soul Purpose
  • Kanye round 2
@sheeley
sheeley / build.sh
Last active May 3, 2021 18:58
Terraform API Gateway Lambda setup
#! /usr/bin/env bash
GOOS=linux GOARCH=amd64 go build -o main main.go
zip main.zip main
@sheeley
sheeley / process.sh
Created December 28, 2017 16:22
process kindle books json
# takes json from ajax request on list of kindle ebooks, returns title, author, url
cat books.json | jq '.GetContentsForCollection | .asinDetails[] | .title + " - " + .authors + " www.amazon.com" + .dpURL'
// Base implementation:
function videoExperience(options) {
var elem = document.createElement("...")
// attach handlers, set up video/images/etc
return elem
}
// TCS:
var video = videoExperience(options)
document.getElementById("videoContainer").appendChild(video)
@sheeley
sheeley / 1.sh
Created October 24, 2016 16:11
Updating Circle
# ssh to circleci.fanaticslabs.com
circleci dev-console
@sheeley
sheeley / list.js
Created October 7, 2016 23:12
restify list routes by path
const output = {}
for (const verb of Object.keys(server.router.routes)) {
console.log(verb)
for (const route of server.router.routes[verb]) {
const {method, spec: {path}} = route
if (!output[path]) {
output[path] = []
}
output[path].push(method)
}
@sheeley
sheeley / ip_cleaner.py
Created September 21, 2016 16:42
IP Cleaner
# Scrubs a file of ip addresses, renaming anything that isn't broadcast to 10.0.0.(1-n)
import re
import sys
pattern = '(?:[0-9]{1,3}\.){3}[0-9]{1,3}'
def main():
with open('output.txt', 'r') as output_file:
output = output_file.read()
@sheeley
sheeley / bower
Created September 24, 2015 17:43
bower log
➜ bower-test npm -g list
^C
➜ bower-test npm -g list | grep bower
├─┬ [email protected]
│ ├─┬ [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
├─┬ [email protected]
@sheeley
sheeley / orphaned.txt
Last active September 8, 2015 17:34
git rebase leaves orphan files
➜ tcs git:(master) git checkout feature/RED-599-Bundling
Branch feature/RED-599-Bundling set up to track remote branch feature/RED-599-Bundling from origin.
Switched to a new branch 'feature/RED-599-Bundling'
➜ tcs git:(feature/RED-599-Bundling) git rebase feature/fanatics
First, rewinding head to replay your work on top of it...
Applying: PDP Round swatches, exposed sizing.
Applying: More updates to the PDP; circle swatches, flush left, fixed color swatch
Using index info to reconstruct a base tree...
M TCS.Website/Areas/Fullsite/Views/Catalog/ProductDetails.ascx
M TCS.Website/css/fullsite/global.css