This file contains hidden or 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
function vencrypt() { | |
INPUTFILE=$1 | |
vault write -format=json transit/encrypt/my-key plaintext=@<(base64 -i $INPUTFILE) | jq -r '.data|.ciphertext' | |
} | |
function vdecrypt() { | |
INPUTFILE=$1 | |
vault write -format=json transit/decrypt/my-key ciphertext=$(cat $INPUTFILE ) | jq -r '.data|.plaintext' | base64 -i -d | |
} |
This file contains hidden or 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
ecommerce_servers = "1" | |
demoami = "ami-05349ec17a04c40fb" | |
subdomain = "sean" | |
key_name = "epsilontraining" |
This file contains hidden or 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
job "java" { | |
datacenters = ["dc1"] | |
type = "service" | |
# This is broken for some reason. | |
# constraint { | |
# attribute = "$attr.kernel.name" | |
# value = "linux" | |
# } |
This file contains hidden or 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
Nymphs blitz quick vex dwarf jog. (27 letters) | |
DJs flock by when MTV ax quiz prog. (27 letters) (2 acronyms and a US spelling) | |
Big fjords vex quick waltz nymph. (27 letters) | |
Bawds jog, flick quartz, vex nymph. (27 letters) | |
Junk MTV quiz graced by fox whelps. (28 letters) (Includes proper noun) | |
Bawds jog, flick quartz, vex nymphs. (28 letters) | |
Waltz, bad nymph, for quick jigs vex! (28 letters) | |
Fox nymphs grab quick-jived waltz. (28 letters) | |
Brick quiz whangs jumpy veldt fox. (28 letters) | |
Glib jocks quiz nymph to vex dwarf. (28 letters) |
This file contains hidden or 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
# Log into your vault instance if you haven't already | |
vault login root | |
# Enable the transit secret engine | |
vault secrets enable transit | |
# Create a key | |
vault write -f transit/keys/my-key | |
# Read the key, nothing up my sleeves | |
vault read transit/keys/my-key | |
# Write some base64 encrypted data to the transit endpoint | |
vault write transit/encrypt/my-key plaintext=$(base64 <<< "my secret data") |
This file contains hidden or 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
# First enable the userpass auth engine | |
# | |
# vault auth enable userpass | |
# vault write auth/userpass/users/alice password=alice policies="default,dev" | |
# vault write auth/userpass/users/bob password=bob policies="default,prod" | |
# Then create these policies | |
# dev | |
path "sys/mounts" { |
This file contains hidden or 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
variable "access_key" {} | |
variable "secret_key" {} | |
variable "region" {} | |
variable ami {} | |
variable subnet_id {} | |
variable instance_type { | |
default = "t2.micro" | |
} | |
variable vpc_security_group_id {} | |
variable identity {} |
This file contains hidden or 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
# My first Terraform | |
variable "access_key" {} | |
variable "secret_key" {} | |
variable "ami" {} | |
variable "subnet_id" {} | |
variable "instance_type" {} | |
variable "vpc_security_group_id" {} | |
variable "identity" {} |
This file contains hidden or 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
#!/bin/sh | |
# Script for rotating passwords on the local machine. | |
# Make sure and store VAULT_TOKEN as an environment variable before running this. | |
USERNAME=$1 | |
PASSLENGTH=$2 | |
VAULTURL=$3 | |
NEWPASS=$(openssl rand -base64 $PASSLENGTH) | |
JSON="{ \"data\": { \"root\": \"$NEWPASS\" } }" |
This file contains hidden or 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
{ | |
"emojis": [ | |
{"emoji": "π©βπ©βπ§βπ§", "name": "family_mothers_two_girls", "shortname": "", "unicode": "", "html": "👩‍👩‍👧‍👧", "category": "p", "order": ""}, | |
{"emoji": "π©βπ©βπ§βπ¦", "name": "family_mothers_children", "shortname": "", "unicode": "", "html": "👩‍👩‍👧‍👦", "category": "p", "order": ""}, | |
{"emoji": "π©βπ©βπ¦βπ¦", "name": "family_mothers_two_boys", "shortname": "", "unicode": "", "html": "👩‍👩‍👦‍👦", "category": "p", "order": ""}, | |
{"emoji": "π¨βπ©βπ§βπ§", "name": "family_two_girls", "shortname": "", "unicode": "", "html": "👨‍👩‍👧‍👧", "category": "p", "order": ""}, | |
{"emoji": "π¨βπ©βπ§βπ¦", "name": "family_children", "shortname": "", "unicode": "", "html": "👨‍👩‍👧‍👦", "category": "p", "order": ""}, | |
{"emoji": "π¨βπ©βπ¦βπ¦", "name": "family_two_boys", "shortname": "", "unicode": "", "html": "👨&zw |