Skip to content

Instantly share code, notes, and snippets.

View foresthoffman's full-sized avatar
🌲

Forest Hoffman foresthoffman

🌲
View GitHub Profile
@foresthoffman
foresthoffman / goi.sh
Last active February 1, 2021 20:59
goi - go install
##
# goi - Go Install
#
# Executable designed to grab local `src/` files and generate a binary from them.
#
# For more Go-semantic libraries, the current directory name is used.
#
# Author: Forest Hoffman <github.com/foresthoffman>
# All rights reserved.
##
@foresthoffman
foresthoffman / .bash_aliases
Created September 19, 2019 15:07
Golang Bash Aliases
alias gob='go build -o main && go vet'
alias got='go test -count=1 ./...'
# for ./src paradigm
alias goi='go build -o $(basename $(dirname $PWD)) && mv ./$(basename $(dirname $PWD)) $GOPATH/bin/'
@foresthoffman
foresthoffman / .gitconfig
Last active May 10, 2019 00:19
Special formatting and alias for git-log
[core]
autocrlf = false
filemode = false
[alias]
lg1=log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2=log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
lg=!git lg1
[user]
name = Forest Hoffman
email = forestjhoffman@gmail.com