This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"sort" | |
"github.com/hashicorp/hcl/v2/hclsyntax" | |
"github.com/hashicorp/hcl/v2/hclwrite" | |
"github.com/zclconf/go-cty/cty" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DSTR=$(date -u); minikube ssh "sudo date --set=\"$DSTR\"" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:same-af::same-af::same-af::same-af::same-af::blank::same-af::same-af::same-af::same-af::same-af::blank::same-af::same-af::same-af::same-af::same-af::blank::same-af::same-af::same-af::same-af::same-af: | |
:same-af::blank::blank::blank::blank::blank::same-af::blank::blank::blank::same-af::blank::same-af::blank::same-af::blank::same-af::blank::same-af::blank::blank::blank::blank: | |
:same-af::same-af::same-af::same-af::same-af::blank::same-af::same-af::same-af::same-af::same-af::blank::same-af::blank::same-af::blank::same-af::blank::same-af::same-af::same-af::same-af::same-af: | |
:blank::blank::blank::blank::same-af::blank::same-af::blank::blank::blank::same-af::blank::same-af::blank::blank::blank::same-af::blank::same-af::blank::blank::blank::blank: | |
:same-af::same-af::same-af::same-af::same-af::blank::same-af::blank::blank::blank::same-af::blank::same-af::blank::blank::blank::same-af::blank::same-af::same-af::same-af::same-af::same-af: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo cat /var/lib/cloud/instance/scripts/runcmd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"time" | |
vault "github.com/hashicorp/vault/api" | |
) | |
func main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/\ | |
_ / | `--. .-. .-. / | |
( / | .. .-. \/ `-' .-.---/---. .-. | |
`/.__|_.' )/ ) /\ / ./.-'_ / ) / | |
.:' / | '/ (.-' `-._.(__.(__.' / (_.' | |
(__.' `-' `- .-. ..-._) | |
.-. / -' / .-. | |
`-' . -/--) ( .-. /-. `-'. .-. .-. | |
/ / \ / ( )( / ) / )/ ) ( ) | |
_.(__./ ._) `.' `--': `---'_/ \_.(__. '/ ( `-/-' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
truncate -s 0 $(docker inspect --format='{{.LogPath}}' $(docker ps -q)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh ec2-user@[IP OF AN OLD CLUSTER INSTANCE] consul kv export | ssh ec2-user@[IP OF AN NEW CLUSTER INSTANCE] consul kv import - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Query the GitHub GraphQL API for all of the terraform-provider names and URLs | |
# https://developer.github.com/v4/explorer/ | |
query { | |
organization(login: "terraform-providers") { | |
name | |
repositories(first: 100) { | |
totalCount | |
nodes { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
month=07 | |
for i in {1..31} | |
do | |
day=$(printf "%02d" $i) | |
curl -XDELETE "https://[CLUSTER_ENDPOINT]/logstash-2017.$month.$day" | |
done |
NewerOlder