Skip to content

Instantly share code, notes, and snippets.

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 Mar 13, 2017
UUID v1, v2, and v4
View uuid_generation.go
package main
import (
"fmt"
"github.com/satori/go.uuid"
)
func main() {
// Creating UUID Version 1
uuid1 := uuid.NewV1()
@Adron
Adron / uuid_generation.go
Created Mar 13, 2017
UUID v1, v2, v3, v4 and v5
View uuid_generation.go
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
Set Atom to Git Editor
View git-editor-atom.sh
git config --global core.editor "atom --wait"
View gist:296050d3f6dde3e6f7245aa56324230a
git config --global core.editor "subl -n -w"
@Adron
Adron / gist:b650ef841453ca676d247105eb684a3b
Created May 3, 2017
A ~/.gitconfig Merge/Diff Tool Snippet
View gist:b650ef841453ca676d247105eb684a3b
[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")
View gist:5fb1e87e7dd18cf3330ba24671d522f3
source `brew --prefix git`/etc/bash_completion.d/git-completion.bash
@Adron
Adron / gist:30d8555ad25c12049e05d899aaea364e
Created May 3, 2017
Git Enable Autocomplete ~/.zshrc
View gist:30d8555ad25c12049e05d899aaea364e
autoload bashcompinit
bashcompinit
source `brew prefix`/etc/git-completion.d
@Adron
Adron / gist:c2ccc9b27e165c7d282e4d776a03422f
Created May 3, 2017
Git Enable Autocomplete Extra Steps ~/.bashrc ~/.zshrc
View gist:c2ccc9b27e165c7d282e4d776a03422f
complete -o default -o nospace -F _git g
View Longform-git-branch-tracking-commands.sh
git branch --set-upstream-to=upstream/localfoo
git branch --set-upstream-to=upstream/localfoo localfoo
@Adron
Adron / BranchXtrackRemote
Created May 17, 2017
Branch X & Remote Upstream w & w/o Current Branch.
View BranchXtrackRemote
git branch -u upstream/localfoo
git branch -u upstream/localfoo localfoo