Instantly share code, notes, and snippets.

View gist:3674e3769240fcc3adc02f08ee115c35
Flashing binaries to serial port /dev/ttyUSB0 (app at offset 0x10000)...
esptool.py v2.5.1
Serial port /dev/ttyUSB0
Connecting........_
Chip is ESP32-PICO-D4 (revision 1)
Features: WiFi, BT, Dual Core, Embedded Flash
MAC: d8:a0:1d:40:89:c4
Uploading stub...
Running stub...
Stub running...
View README.md
View fortune-1000-github-repos.json
This file has been truncated, but you can view the full file.
{"name":"github","url":"https://github.com/walmartlabs","timestamp":"2018-03-23T21:58:13.542Z","data":{"description":"Example source code for the Lacinia tutorial","forked from":"","forks":"4","language":"Clojure","name":"clojure-game-geek","stars":"6","updated at":"2018-03-23T17:10:33Z","url":"https://github.com/walmartlabs/clojure-game-geek"}}
{"name":"github","url":"https://github.com/walmartlabs","timestamp":"2018-03-23T21:58:13.542Z","data":{"description":"GraphQL implementation in pure Clojure","forked from":"","forks":"59","language":"Clojure","name":"lacinia","stars":"841","updated at":"2018-03-23T00:48:51Z","url":"https://github.com/walmartlabs/lacinia"}}
{"name":"github","url":"https://github.com/walmartlabs","timestamp":"2018-03-23T21:58:13.542Z","data":{"description":"","forked from":"","forks":"","language":"Clojure","name":"schematic","stars":"2","updated at":"2018-03-22T21:29:36Z","url":"https://github.com/walmartlabs/schematic"}}
View gist:aa992e3a137a78333d67da98c644f696
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA PUBLIC TO XXX;
GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA PUBLIC TO XXX;
ALTER DEFAULT PRIVILEGES IN SCHEMA PUBLIC GRANT ALL PRIVILEGES ON TABLES TO XXX;
ALTER DEFAULT PRIVILEGES IN SCHEMA PUBLIC GRANT ALL PRIVILEGES ON SEQUENCES TO XXX;
\du
\dp
View main.go
package test
import (
"regexp"
guuid "github.com/google/uuid"
suuid "github.com/satori/go.uuid"
)
var re = regexp.MustCompile("^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[8|9|aA|bB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$")
View gist:d2a6e227a488e308831d126688d0659b
iptables -A OUTPUT -d 127.0.0.0/8 -j ACCEPT
iptables -A OUTPUT --dst redis -j ACCEPT
iptables -A OUTPUT --dst postgres -j ACCEPT
iptables -P OUTPUT DROP
iptables -L
View Dockerfile
FROM debian:stretch
RUN apt-get update && \
apt-get install -y \
git \
build-essential \
python3 \
python3-pip \
pkg-config \
libsystemd-dev \
View gist:06d40238ea65070d565c0eb054c32836
2017-11-22T16:57:07.259-0800 [DEBUGgoogle_bigquery_table.csp_reports: Importing from ID "reports"...
google_bigquery_table.csp_reports: Import complete!
] plugin.terraform-provider-google_v1.2.0_x4: 2017/11/22 16:57:07 [INFO] Instantiating Google Cloud Dataproc Client...
2017/11/22 16:57:07 [TRACE] root: eval: *terraform.EvalSequence
Imported google_bigquery_table (ID: reports)
google_bigquery_table.csp_reports: Refreshing state... (ID: reports)
2017-11-22T16:57:07.261-0800 [DEBUG] plugin.terraform-provider-google_v1.2.0_x4: 2017/11/22 16:57:07 [INFO] Reading BigQuery table: reports
2017-11-22T16:57:07.264-0800 [DEBUG] plugin.terraform-provider-google_v1.2.0_x4: panic: runtime error: index out of range
2017-11-22T16:57:07.264-0800 [DEBUG] plugin.terraform-provider-google_v1.2.0_x4:
2017-11-22T16:57:07.264-0800 [DEBUG] plugin.terraform-provider-google_v1.2.0_x4: goroutine 51 [running]:
View postico.md
cat client-key.pem <(echo) client-cert.pem <(echo) server-ca.pem > postico.pem