Skip to content

Instantly share code, notes, and snippets.

View smiller171's full-sized avatar

Scott Miller smiller171

View GitHub Profile
@smiller171
smiller171 / debug.log.asc
Created April 23, 2019 18:58
terraform dubug output for lb_listener_rule bug
BEGIN KEYBASE SALTPACK ENCRYPTED MESSAGE. kis56mtEkrUoMd7 FtTtB1KMPnRvyVH F2xCu5nLdSMyXqD ZOP8F2ysH06wEf7 95DWUtAC7RuLuzN dF5tT0Kd9reOXYE I3o50RdTRkJY65C d3sWcrwZibdw3md bY9lZQ9OjWz1BfD BQfwDMPGRznliYj d2jripkTXhIvEio dPQjnVG4uaNdvXd VvN5SuGc0zGKC5w jGfssNwsEEJpMzw YNtZTICMU1P3K4w IBVb8L3b6F70Dwo ufZZZ8MONhsHqod MCusX8R8mApwBeT XJP9ekPZ7JM1lbb 1VkoGvmVsQXxNuV ikWNQZksMHa5HdD innWMM5OGFMNtKh j27vByhXwxkO930 KLypupl17IAWxGh 7Swe8uh41IUb7Lo qEUCcO9MJHyGCLq 7nZE56j9hH5EclZ RpuV9z6NHP117GH ThLIbW7wiyANKwZ 5Vcp0qaxjdvdg6s PfOTmlWRPYsAS6w L1CnnBUn5VNp2SE e2WE8pOf64IP12V NHwjSF5oiB7tJIz 68eXRKIRKrNIyiX 1tdQt5r9gGE03en LcvmtYfWoCwTCiX c51ak3EY7jMDVCt byl6wiFAEx0vjYL m8joQg1YTz9BD4q FmrEbelWmTkq4Os YJHe66sVpRmZKes AtfMAhJjvEiRfkK BRkSeW787amx5Ot V94C76A8xbofnXx P0IGIUiGaDK5lqu qGD22c2V9llvgVG Rkgtdf1VUbt33nC xXbHUZ2ONrsIyIT l3QqTqTk49O5U9p AafyseJ3YRnror6 Qsyjn6VVcALil9F c8FUXmq9N8o8Ltl QLEPH9io8id7X2v zddvEYEJsKHUdEl DVwUckPMMouYOlV nl9AhLaVi2XrvNK uyWzp4wR7lSW6Uc HDZOI7Av0Xbj3nw CLvX6hku79lTSPI 0GBQn1HE3RMvJVO WbdpXV
@smiller171
smiller171 / database.tf
Last active October 3, 2023 16:49
Manage RDS password in Terraform in a sane way
resource "random_password" "db_master_pass" {
length = 40
special = true
min_special = 5
override_special = "!#$%^&*()-_=+[]{}<>:?"
keepers = {
pass_version = 1
}
}
2018-11-27 14:46:24 [000000] tea for god
2018-11-27 14:46:24 [000000] by void room (2016-2018)
2018-11-27 14:46:24 [000000] build: v0.3.0 (#166) built on: Nov 24 2018, 22:50:32
2018-11-27 14:46:24 [000000] load code info
2018-11-27 14:46:24 [000000] loading settings...
2018-11-27 14:46:24 [000000] initialising VR...
2018-11-27 14:46:24 [000000] choose oculus
2018-11-27 14:46:24 [000000] initialising oculus
2018-11-27 14:46:24 [000000] create device
2018-11-27 14:46:24 [000000] device : Oculus Rift CV1
@smiller171
smiller171 / pre-commit.bash
Created March 18, 2018 19:42
Dockerhub fork commit hook
#!/bin/bash
list=$(curl -s https://hub.docker.com/v2/repositories/library/node/tags/?page_size=500 | jq -r '.results|.[]|.name' | grep -v onbuild | grep -v latest |
sort)
branch=$(git rev-parse --abbrev-ref HEAD)
create_branch() {
tag=$1
branch=$2
if git rev-parse --verify ${tag} > /dev/null
then
echo "branch ${tag} exists"
@smiller171
smiller171 / index.html
Last active March 7, 2017 05:45
Under Construction
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous">
</head>
@smiller171
smiller171 / leastCommonMultiple.js
Last active December 11, 2016 16:59
find least common multiple of all numbers in a range.
function smallestCommons(arr) {
arr.sort(function(a,b) {
return b-a;
});
var min = arr[1];
var max = arr[0];
var allPrimeFactors = [];
var availablePrimes = [];
var reducedFactors = [];
var poweredFactors = [];
@smiller171
smiller171 / keybase.md
Created August 16, 2016 16:27
My publicly-auditable identity

Keybase proof

I hereby claim:

  • I am smiller171 on github.
  • I am smiller171 (https://keybase.io/smiller171) on keybase.
  • I have a public key whose fingerprint is A4B0 55D0 4E7D 2704 E673 0CCB 8659 EE68 4CAD 0E9F

To claim this, I am signing this object:

@smiller171
smiller171 / private.xml
Last active August 8, 2016 17:04
Karabiner code keyboard media keys with native fn on application key
<?xml version="1.1"?>
<root>
<item>
<name>Code Keyboard media keys</name>
<appendix>This will bind CODE/WASD the printed values on the media keys to their actual software function.
* FN+Insert : Pause / Play
* FN+Delete : Previous Song
* FN+End : Next Song
* FN+Pause : Mute Volume
* FN+Page Up : Volume Up