Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

ozzbetto ozzbetto

🏠
Working from home
View GitHub Profile
@ozzbetto
ozzbetto / git-alias.md
Created Sep 20, 2021 — forked from Klerith/git-alias.md
Useful Git Alias
View git-alias.md

Log

git config --global alias.lg "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"

Status

git config --global alias.s status --short

Alternativa útil de status

git config --global alias.s status -sb

@ozzbetto
ozzbetto / mysql-gui.sh
Created Jun 5, 2021
Exclude mysql from dark mode in MacOs Catalina
View mysql-gui.sh
#!/bin/bash
defaults write com.oracle.workbench.MySQLWorkbench NSRequiresAquaSystemAppearance -bool yes
echo "OK - You have to restart the GUI now"
@ozzbetto
ozzbetto / scroll-refresh.sh
Last active May 16, 2021
Mouse scroll does no work in linux after suspend
View scroll-refresh.sh
Run commands automatically after suspend:
1) Create script with commands (open Terminal and type)
sudo touch yourscriptname.sh
This will create the file in your home folder.
2) Edit script
sudo nano yourscriptname.sh