Skip to content

Instantly share code, notes, and snippets.

View jdnlab's full-sized avatar

jdaniel jdnlab

View GitHub Profile
@jdnlab
jdnlab / gist:a6584f2c53987e47765b1b732f4da178
Last active December 15, 2020 20:13
docker-storage-local
# storage setup for my local docker testing machine
# show the local volume setup, then display detailed information about where, on the host machine is mounted
# ref: https://docs.docker.com/storage/#choose-the-right-type-of-mount
[~]$ sudo docker volume ls && sudo docker volume inspect minikube
DRIVER VOLUME NAME
local minikube
[
@jdnlab
jdnlab / tf-prov-aws-issue-20180815
Created August 15, 2018 16:54
tf-prov-aws-issue-20180815
2018-08-15T10:41:37.898-0500 [DEBUG] plugin.terraform-provider-aws_v1.31.0_x4.exe: 2018/08/15 10:41:37 [DEBUG] [aws-sdk-go] DEBUG: Send Request sts/GetCallerIdentity failed, will retry, error RequestError: send request failed
2018-08-15T10:41:37.898-0500 [DEBUG] plugin.terraform-provider-aws_v1.31.0_x4.exe: caused by: Post https://sts.amazonaws.com/: proxyconnect tcp: tls: oversized record received with length 20527
2018-08-15T10:41:37.898-0500 [DEBUG] plugin.terraform-provider-aws_v1.31.0_x4.exe: 2018/08/15 10:41:37 [DEBUG] [aws-sdk-go] DEBUG: Retrying Request sts/GetCallerIdentity, attempt 3
@jdnlab
jdnlab / 8943-v2.json
Last active August 3, 2017 13:39
GrafanaLabs Issue 8943 - v2
{
"annotations": {
"enable": true,
"list": []
},
"description": "Dashboard showing Carbon C Relay internal metrics",
"editable": true,
"gnetId": 85,
"graphTooltip": 0,
"hideControls": false,
@jdnlab
jdnlab / 8943-v1.json
Last active August 3, 2017 13:39
GrafanaLabs Issue 8943 - v1
{
"annotations": {
"enable": true,
"list": []
},
"description": "Dashboard showing Carbon C Relay internal metrics",
"editable": true,
"gnetId": 85,
"graphTooltip": 0,
"hideControls": false,
@jdnlab
jdnlab / bu-secure.sh
Created February 4, 2017 08:16
bu-secure.sh
IPF="ipfw -q add"
ipfw -q -f flush
#loopback
$IPF 10 allow all from any to any via lo0
$IPF 20 deny all from any to 127.0.0.0/8
$IPF 30 deny all from 127.0.0.0/8 to any
$IPF 40 deny tcp from any to any frag
# stateful.
@jdnlab
jdnlab / ns-secure.sh
Created February 4, 2017 01:07
ns-secure.sh
#!/bin/sh
# iptables script generated 2017-02-04
# http://www.mista.nu/iptables
IPT="/sbin/iptables"
# Flush old rules, old custom tables
$IPT --flush
$IPT --delete-chain

Keybase proof

I hereby claim:

  • I am james-daniel on github.
  • I am jdaniel (https://keybase.io/jdaniel) on keybase.
  • I have a public key whose fingerprint is 3491 BCCA 8B70 D788 C1D7 80DE 3048 8D95 CF38 EC1C

To claim this, I am signing this object: