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 | |
set -euo pipefail | |
# Create a VPC | |
AWS_VPC=$(aws ec2 create-vpc \ | |
--cidr-block 10.0.0.0/16 \ | |
--query 'Vpc.{VpcId:VpcId}' \ | |
--output text) |
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/bash | |
# Setup new server with microk8s, kubectl, and helm | |
set -euo pipefail | |
# Get current user | |
USER=$(who | awk '{ print $1}') | |
# Get current OS, script currently uses snap which should be available | |
# by default on Ubuntu |
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/python3 | |
import json | |
s = """{ | |
"_id": "61410596ba0c39a1fae2f47f", | |
"index": 0, | |
"guid": "fe1102ba-b5f9-4783-a62c-13adb3c2c293", | |
"isActive": false, | |
"balance": "$1,500.31", | |
"picture": "http://placehold.it/32x32", |
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 ( | |
"encoding/json" | |
"fmt" | |
"strings" | |
) | |
func main() { | |
m := deserialize(jsonBlob) |