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
@Adron
Adron / uuid_generation.go
Last active March 13, 2017 22:43
UUID v1, v2, and v4
package main
import (
"fmt"
"github.com/satori/go.uuid"
)
func main() {
// Creating UUID Version 1
uuid1 := uuid.NewV1()
@Adron
Adron / uuid_generation.go
Created March 13, 2017 22:45
UUID v1, v2, v3, v4 and v5
package main
import (
"fmt"
"github.com/satori/go.uuid"
)
func main() {
// Creating UUID Version 1
uuid1 := uuid.NewV1()
@Adron
Adron / git-editor-atom.sh
Created May 3, 2017 18:24
Set Atom to Git Editor
git config --global core.editor "atom --wait"
git config --global core.editor "subl -n -w"
@Adron
Adron / gist:b650ef841453ca676d247105eb684a3b
Created May 3, 2017 19:04
A ~/.gitconfig Merge/Diff Tool Snippet
[merge]
tool = intellij
[mergetool "intellij"]
cmd = /Applications/IntelliJ\ IDEA.app/Contents/MacOS/idea merge $(cd $(dirname "$LOCAL") && pwd)/$(basename "$LOCAL") $(cd $(dirname "$REMOTE") && pwd)/$(basename "$REMOTE") $(cd $(dirname "$BASE") && pwd)/$(basename "$BASE") $(cd $(dirname "$MERGED") && pwd)/$(basename "$MERGED")
trustExitCode = true
[diff]
tool = intellij
[difftool "intellij"]
cmd = /Applications/IntelliJ\ IDEA.app/Contents/MacOS/idea diff $(cd $(dirname "$LOCAL") && pwd)/$(basename "$LOCAL") $(cd $(dirname "$REMOTE") && pwd)/$(basename "$REMOTE")
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