Skip to content

Instantly share code, notes, and snippets.

View ryanuber's full-sized avatar

Ryan Uber ryanuber

View GitHub Profile
openapi: 3.1.0
info:
title: Terraform Cloud API
version: 0.0.1
servers:
- url: https://app.terraform.io
paths:
/workspaces/{id}/resources:
get:
summary: Get the resources associated with a workspace.
This file has been truncated, but you can view the full file.
f0VMRgIBAQAAAAAAAAAAAAIAPgABAAAAQI5FAAAAAABAAAAAAAAAAMgBAAAAAAAAAAAAAEAAOAAHAEAAFwADAAYAAAAEAAAAQAAAAAAAAABAAEAAAAAAAEAAQAAAAAAAiAEAAAAAAACIAQAAAAAAAAAQAAAAAAAABAAAAAQAAACcDwAAAAAAAJwPQAAAAAAAnA9AAAAAAABkAAAAAAAAAGQAAAAAAAAABAAAAAAAAAABAAAABQAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAAAAHXPBgAAAAAAdc8GAAAAAAAAEAAAAAAAAAEAAAAEAAAAANAGAAAAAAAA0EYAAAAAAADQRgAAAAAAqFkHAAAAAACoWQcAAAAAAAAQAAAAAAAAAQAAAAYAAAAAMA4AAAAAAAAwTgAAAAAAADBOAAAAAABgPQEAAAAAAKB+BAAAAAAAABAAAAAAAABR5XRkBgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAIAVBGUAKgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAABAAAABgAAAAAAAAAAEEAAAAAAAAAQAAAAAAAAdb8GAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAABqAAAAAQAAAAIAAAAAAAAAANBGAAAAAAAA0AYAAAAAALDHAgAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAcAEAAAMAAAAAAAAAAAAAAAAAAAAAAAAAwJcJAAAAAAB6AQAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAHIAAAABAAAAAgAAAAAAAABAmUkAAAAAAECZCQAAAAAA1AMAAAAAAAAAAAAAAAAAACAAAAAAAAAA
@ryanuber
ryanuber / Dockerfile
Last active January 12, 2021 21:54
Docker Desktop double INT
FROM ubuntu:20.04
COPY sig.sh /sig.sh
RUN chmod +x /sig.sh
STOPSIGNAL SIGINT
ENTRYPOINT ["/sig.sh"]
@ryanuber
ryanuber / fedora.sh
Last active January 4, 2017 09:38
fedora.sh
#!/bin/bash
set -xe
AVATAR_URL=https://gravatar.com/avatar/c55cecc94ea228ef48787481b2355575?s=96
WALLPAPER_URL=http://www.hdwallpapers.in/walls/amazing_milky_way-wide.jpg
TERMINAL_FONT_URL=https://github.com/powerline/fonts/raw/master/DejaVuSansMono/DejaVu%20Sans%20Mono%20for%20Powerline.ttf
PUBKEYS=(
https://zoom.us/linux/download/pubkey
)
package locktest
import (
"sync"
"testing"
)
var l sync.Mutex
func dLock() {
@ryanuber
ryanuber / keybase.md
Created August 2, 2016 01:27
keybase.md

Keybase proof

I hereby claim:

  • I am ryanuber on github.
  • I am ryanuber (https://keybase.io/ryanuber) on keybase.
  • I have a public key whose fingerprint is BE4E 2E5C 103C 5117 1D3F 2CBA D697 4CCF 514D CB85

To claim this, I am signing this object:

@ryanuber
ryanuber / scanner.diff
Created December 25, 2015 06:03
Fast text scanner in Go
diff --git a/bench_test.go b/bench_test.go
new file mode 100644
index 0000000..1431cfb
--- /dev/null
+++ b/bench_test.go
@@ -0,0 +1,174 @@
+package license
+
+import (
+ "bytes"
@ryanuber
ryanuber / packer.json
Created March 7, 2015 17:19
QEMU Headless
{
"builders":
[
{
"type": "qemu",
"iso_url": "http://releases.ubuntu.com/14.04.1/ubuntu-14.04.1-server-amd64.iso",
"iso_checksum": "ca2531b8cd79ea5b778ede3a524779b9",
"iso_checksum_type": "md5",
"output_directory": "out",
"shutdown_command": "sudo shutdown -P now",
panic: runtime error: index out of range
goroutine 46 [running]:
runtime.panic(0x7e53c0, 0xa68a5c)
/Users/mitchellh/code/3rdparty/go/src/pkg/runtime/panic.c:279 +0xf5
github.com/mitchellh/packer/post-processor/atlas.(*PostProcessor).PostProcess(0xc2080480c0, 0x7fbde02f5310, 0xc20824c160, 0x7fbde02f5358, 0xc20824c1c0, 0x0, 0x0, 0x0, 0x0, 0x0)
/Users/mitchellh/code/go/src/github.com/mitchellh/packer/post-processor/atlas/post-processor.go:183 +0xf41
github.com/mitchellh/packer/packer/rpc.(*PostProcessorServer).PostProcess(0xc20803dcc0, 0x0, 0xc208252100, 0x0, 0x0)
/Users/mitchellh/code/go/src/github.com/mitchellh/packer/packer/rpc/post_processor.go:83 +0x2b8
reflect.Value.call(0x78b960, 0x7c38e8, 0x0, 0x130, 0x8356f0, 0x4, 0xc2080047e0, 0x3, 0x3, 0x0, ...)
{{with $syslog := key "service/firehose/syslog_endpoint"}}
{{if ne $syslog ""}}
log {{$syslog}} local0 warning
log-send-hostname
{{end}}
{{end}}