Skip to content

Instantly share code, notes, and snippets.

View ianonavy's full-sized avatar

I. A. Naval ianonavy

View GitHub Profile
TF_LOG=DEBUG terraform apply
2022-11-03T10:05:02.664-0400 [INFO] Terraform version: 1.3.3
2022-11-03T10:05:02.664-0400 [DEBUG] using github.com/hashicorp/go-tfe v1.9.0
2022-11-03T10:05:02.664-0400 [DEBUG] using github.com/hashicorp/hcl/v2 v2.14.1
2022-11-03T10:05:02.664-0400 [DEBUG] using github.com/hashicorp/terraform-config-inspect v0.0.0-20210209133302-4fd17a0faac2
2022-11-03T10:05:02.664-0400 [DEBUG] using github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734
2022-11-03T10:05:02.664-0400 [DEBUG] using github.com/zclconf/go-cty v1.11.1
2022-11-03T10:05:02.664-0400 [INFO] Go runtime version: go1.19.1
2022-11-03T10:05:02.664-0400 [INFO] CLI args: []string{"/opt/homebrew/Cellar/tfenv/3.0.0/versions/1.3.3/terraform", "apply"}
2022-11-03T10:05:02.664-0400 [DEBUG] Attempting to open CLI config file: /Users/ian/.terraformrc
diff --git a/15.6.9.md b/15.6.9.md
index 42699e1..67fdf60 100644
--- a/15.6.9.md
+++ b/15.6.9.md
@@ -1,43 +1,40 @@
### SUBCHAPTER IX—STANDARD TIME
### §260. Congressional declaration of policy; adoption and observance of uniform standard of time; authority of Secretary of Transportation
* It is the policy of the United States to promote the adoption and observance of uniform time within the standard time zones prescribed by sections 261 to 264 of this title, as modified by section 265 of this title. To this end the Secretary of Transportation is authorized and directed to foster and promote widespread and uniform adoption and observance of the same standard of time within and throughout each such standard time zone.
@ianonavy
ianonavy / README.md
Created December 20, 2017 20:35
git-update-branch

git-update-branch

Rebase-friendly alternative to the GitHub "Update Branch" button on the pull request page.

Rebases a remote origin branch onto the latest default branch. Right now, hard coded for "develop" even though most people use "master". Feel free to edit.

I personally use this when I have many remote branches to merge and want all of them to be up-to-date with the latest default branch after each rebase. Of course, if you don't prefer rebase as an updating strategy you can just use the "Update branch" button in the GitHub UI. This is a rebase-friendly alternative.

Installation

@ianonavy
ianonavy / keybase.md
Created March 26, 2015 21:12
keybase.md

Keybase proof

I hereby claim:

  • I am ianonavy on github.
  • I am ianonavy (https://keybase.io/ianonavy) on keybase.
  • I have a public key whose fingerprint is 88CC 1897 CF89 A3AB F5E8 5F95 A9D4 05F4 8C84 74B3

To claim this, I am signing this object:

@ianonavy
ianonavy / hanto.py
Last active August 29, 2015 14:07
Hanto Tournament Runner
from __future__ import division
import argparse
import itertools
import sys
import threading
from math import pi, cos, sin, sqrt
import Tkinter as tk
from PIL import Image, ImageTk
@ianonavy
ianonavy / decorators.py
Last active August 29, 2015 14:03
Memoize to File
def memoize_to_file(func=None, **options):
"""Wraps a function definition so that if the function is ever
called with the same arguments twice, the results are pulled from
a cache stored in a file. The filename is specified when decorating
the memoized function. Iterable objects like dicts, lists or
pandas DataFrames are cast to a tuple before being hashed, and
everything else uses the object's __repr__ definition.
Usage:
/*
Generates a perfect solution to http://www.loper-os.org/bad-at-entropy/manmach.html.
Naive algorithm: Maintain array of correct solution so far. Repeat '1' adding each to the solution until the machine scores. When it scores, save the solution, reset, and re-enter the solution up until right before it fails. Toggle between '1' and '0' and continue repeating until the machine scores. Do this until the solution array is size n.
First 1000 digits:
111110000111100001001110111100000101001101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101
@ianonavy
ianonavy / config.txt
Created August 29, 2012 14:11
I wrote this script in high school to facilitate the reading of my English textbooks. It splits a text up into individual sentences and flashes them one at a time based on how fast you can read (in words per minute).
Title:
Tartuffe
Filename:
tartuffe.txt
Speed (in words per minute):
600
Saved books:
Title:
@ianonavy
ianonavy / nexus7-setup-wifi.sh
Created August 29, 2012 14:06
Nexus 7 Setup Wi-Fi: a simple script I wrote to help set up the Nexus 7 device for my university's wireless network. For privacy's sake, I've removed all the parts specifically pertaining to the university. This code is public domain, so modify it as need
#!/bin/bash
#
# Nexus 7 Setup Wi-fi
#
# Simple script to set up a Nexus 7 for a WPA2-Enterprise Wireless network
# with 802.1x authentication, which is broken in Android Jelly Bean. It
# relies on rooting the device.
#
# This script is a work in progress. I am not responsible for any issues
# that arise if you run this script with your device. Use at your own
@ianonavy
ianonavy / daemon.py
Created August 14, 2012 15:42
Simple daemon that waits for a screenshot to be saved into a folder and automatically uploads it to a remote server. When that's done, it copies the URL into the user's clipboard. Very similar to CloudApp and Droplr, but it runs on Linux.
#!/usr/bin/env python
import sys, os, time, atexit
from signal import SIGTERM
class Daemon:
"""
A generic daemon class.
Usage: subclass the Daemon class and override the run() method