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
path "secret/barapp/*" { | |
policy = "read" | |
} |
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
{ | |
{{with $secret := secret "secret/vaultpoc/mysql" }} | |
"user": "{{$secret.Data.user}}", | |
"password": "{{$secret.Data.password}}", | |
"host": "{{$secret.Data.host}}", | |
{{end}} | |
"dns": "{{key "vaultpoc/dns"}}", | |
"debug": "{{key "vaultpoc/debug"}}" | |
} |
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
#[allow(unconditional_recursion)] | |
fn main(){ | |
thread(); | |
} | |
#[allow(unconditional_recursion)] | |
fn thread(){ | |
loop { | |
std::thread::spawn(thread); |
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
use std::io::prelude::*; | |
use std::fs::File; | |
use std::process::Command; | |
// Since rust have nice thread handling and unwrapping - there is no way to fork bomb using rust only | |
// So I'm using bash to nuke the system | |
#[allow(unconditional_recursion)] | |
fn main(){ | |
let f = File::create("boom"); | |
assert_eq!(f.is_ok(), true); | |
let res = f.unwrap().write_all(b":(){ :|:& };:"); |
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 sh | |
#Required libs | |
#ca-certificates wget curl-dev py-pip jq | |
# Get consul template | |
wget -O envconsul.zip wget https://releases.hashicorp.com/envconsul/0.6.2/envconsul_0.6.2_linux_amd64.zip | |
unzip envconsul.zip | |
mv envconsul /usr/bin/ |
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 sh | |
#Command to run | |
COMMAND=$1 | |
#Requires | |
#wget curl-dev py-pip jq | |
# Get consul template | |
wget -O envconsul.zip wget https://releases.hashicorp.com/envconsul/0.6.2/envconsul_0.6.2_linux_amd64.zip | |
unzip envconsul.zip |
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 | |
JDK_VERSION=`asdf current java|awk -v FS=' ' '{print $2}'` | |
echo "export JAVA_HOME=/Users/ext.skarnecki/.asdf/installs/java/$JDK_VERSION/" |