Skip to content

Instantly share code, notes, and snippets.

View Adron's full-sized avatar
🤘
GSD. Just ping me, I'll get back at ya.

Adron Hall Adron

🤘
GSD. Just ping me, I'll get back at ya.
View GitHub Profile
source `brew --prefix git`/etc/bash_completion.d/git-completion.bash
@Adron
Adron / gist:30d8555ad25c12049e05d899aaea364e
Created May 3, 2017 19:06
Git Enable Autocomplete ~/.zshrc
autoload bashcompinit
bashcompinit
source `brew prefix`/etc/git-completion.d
@Adron
Adron / gist:c2ccc9b27e165c7d282e4d776a03422f
Created May 3, 2017 19:07
Git Enable Autocomplete Extra Steps ~/.bashrc ~/.zshrc
complete -o default -o nospace -F _git g
git branch --set-upstream-to=upstream/localfoo
git branch --set-upstream-to=upstream/localfoo localfoo
@Adron
Adron / BranchXtrackRemote
Created May 17, 2017 22:55
Branch X & Remote Upstream w & w/o Current Branch.
git branch -u upstream/localfoo
git branch -u upstream/localfoo localfoo
@Adron
Adron / golang-hello-world-service.go
Created May 29, 2017 22:16
A Hello World Golang Service Example.
package main
import (
"fmt"
"log"
"net/http"
)
func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
@Adron
Adron / JSON-Data-Diluvium-Example.json
Last active May 29, 2017 22:16
Example data diluvium schema JSON. (Early example)
[
{
"schema": "relational",
"database": "postgresql",
"connection": [
{
"connectionData": "stringForConnectionEtc",
"username": "theUser",
"password": "thePassword",
"otherConnectionParam": "TheOtherValue"
@Adron
Adron / Golang-Logger.go
Last active May 29, 2017 22:16
A basic logger for getting started.
package main
import (
"log"
"net/http"
"time"
)
func Logger(inner http.Handler, name string) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
@Adron
Adron / codeship-services.yaml
Created May 29, 2017 22:18
Service file example for Data Diluvium.
datadiluvium:
build:
image: golang
dockerfile_path: Dockerfile
@Adron
Adron / codeship-steps.yaml
Created May 29, 2017 22:18
Codeship steps example for Data Diluvium.
- name: sailing
service: datadiluvium
command: go clean
- name: sailing_tests
service: datadiluvium
command: go test .
- name: sailing_build
service: datadiluvium
command: go build