Skip to content

Instantly share code, notes, and snippets.

View austin-millan's full-sized avatar

Austin Millan austin-millan

View GitHub Profile
@austin-millan
austin-millan / MergeSort.java
Created March 14, 2017 20:33
SortingAlgorithmsTermProject
package main;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Random;
/**
* Created by Austin on 2/24/17.
*/
public class MergeSort extends SortAlgorithm {
@austin-millan
austin-millan / terraform.log
Created May 8, 2018 20:41
Terraform - vSphere - Debug - Trace
2018/05/08 13:35:10 [INFO] Terraform version: 0.11.7 41e50bd32a8825a84535e353c3674af8ce799161
2018/05/08 13:35:10 [INFO] Go runtime version: go1.10.1
2018/05/08 13:35:10 [INFO] CLI args: []string{"/usr/local/bin/terraform", "init"}
2018/05/08 13:35:10 [DEBUG] Attempting to open CLI config file: /root/.terraformrc
2018/05/08 13:35:10 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2018/05/08 13:35:10 [INFO] CLI command args: []string{"init"}
2018/05/08 13:35:10 [DEBUG] command: loading backend config file: /usr/local/src/terraform/vsphere_terrascript/src
2018/05/08 13:35:10 [INFO] command: empty terraform config, returning nil
2018/05/08 13:35:10 [DEBUG] command: no data state file found for backend config
2018/05/08 13:35:10 [DEBUG] New state was assigned lineage "ac7d8a5c-9b8e-ac26-b5ad-a6d01a7a05df"
@austin-millan
austin-millan / configure_box.sh
Created April 4, 2019 23:39
Configures a dev environment on a Debian system
#! /bin/bash
# Debian Dev Environment Configuration
sudo apt-get -y update
sudo apt-get -y upgrade
res=$(sudo apt-get install -y git vim build-essential default-jre default-jdk apt-transport-https)
if [[ "$res" -ne 0 ]] ; then
echo "Unable to install git, vim, build-essential, default-jre, default-jdk, apt-transport-https)"
fi
package main
import (
"encoding/json"
"fmt"
)
type A struct {
ValA int `json:"valA"`
ValB int `json:"valB"`
package main
import (
"encoding/json"
"fmt"
)
type A struct {
ValA int `json:"valA"`
ValB int`json:"valB"`
package main
import (
"encoding/json"
"fmt"
)
type A struct {
ValA int `json:"valA"`
ValB int`json:"valB"`
package main
import (
"fmt"
)
type A struct {
ValA int `json:"valA"`
ValB int `json:"valB"`
}
{"valA":99,"valB":1}
==================
WARNING: DATA RACE
Write at 0x00000066b9d0 by goroutine 8:
reflect.Value.SetInt()
/usr/local/go/src/reflect/value.go:1642 +0xfd
encoding/json.(*decodeState).literalStore()
/usr/local/go/src/encoding/json/decode.go:1002 +0x266e
encoding/json.(*decodeState).value()
/usr/local/go/src/encoding/json/decode.go:384 +0x307
package main
import (
"database/sql"
"encoding/json"
"fmt"
"strings"
"github.com/jmoiron/sqlx"
)
{"valA":0,"valB":1}