Skip to content

Instantly share code, notes, and snippets.

View foresthoffman's full-sized avatar
🌲

Forest Hoffman foresthoffman

🌲
View GitHub Profile
@vitorbritto
vitorbritto / rm_mysql.md
Last active November 5, 2024 05:41
Remove MySQL completely from Mac OSX

Remove MySQL completely

  1. Open the Terminal

  2. Use mysqldump to backup your databases

  3. Check for MySQL processes with: ps -ax | grep mysql

  4. Stop and kill any MySQL processes

  5. Analyze MySQL on HomeBrew:

    brew remove mysql
    
@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 = [email protected]
@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 / 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.
##