Skip to content

Instantly share code, notes, and snippets.

@0x4C4A
0x4C4A / install_mt7601.sh
Last active March 5, 2023 17:20
mt7601 driver quick install
#!/bin/sh
sudo add-apt-repository ppa:thopiekar/mt7601
sudo apt-get update
sudo apt-get install build-essential # Without build-essential failed to compile on fresh Linux Mint installation
sudo apt-get install mt7601-sta-dkms
@0x4C4A
0x4C4A / git-settings.sh
Last active April 18, 2017 05:14 — forked from anonymous/git-settings.sh
My preferred git settings
#!/bin/sh
# My favourite flavour of git lg
git config --global alias.lga "log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) -%C(bold yellow)%d%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset) %C(bold green)(%ar)%C(reset)' --all --date-order"
git config --global alias.lg "log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) -%C(bold yellow)%d%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset) %C(bold green)(%ar)%C(reset)' --date-order"
# Rebase by default for all new branches
git config branch.autosetuprebase always
# Remember login details
git config --global credential.helper "store"