Skip to content

Instantly share code, notes, and snippets.

View naunga's full-sized avatar
🎷
Beboppin'

Ærin Vo naunga

🎷
Beboppin'
  • Atlanta, GA
  • 18:58 (UTC -04:00)
View GitHub Profile
@naunga
naunga / index.html
Last active February 5, 2016 21:24
foo
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.node circle {
fill: #fff;
stroke: steelblue;
stroke-width: 1.5px;
}
.node {
font: 10px sans-serif;
@naunga
naunga / server_url.sh
Created August 31, 2015 14:29
Output the URL for a Vault server based on the configuration file.
#!/bin/bash
proto="https://"
while read line; do
if [[ $line =~ listener ]]; then
listener_section=1
elif [[ $listener_section == 1 ]] && [[ $line != "}" ]]; then
key=$( echo $line | cut -d'=' -f 1 | sed 's/\s*//g' | sed 's/\"//g')
val=$( echo $line | cut -d'=' -f 2 | sed 's/\s*//g' | sed 's/\"//g')