Skip to content

Instantly share code, notes, and snippets.

View matthiassturm's full-sized avatar

Matthias Sturm matthiassturm

View GitHub Profile
@matthiassturm
matthiassturm / remac.sh
Created December 13, 2018 12:19
Reassign MAC Dddress (MacOS)
#!/bin/sh
function remac {
sudo /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -z
sudo ifconfig en0 ether $(openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//')
sudo networksetup -detectnewhardware
echo $(ifconfig en0 | grep ether)
}

Keybase proof

I hereby claim:

  • I am matthiassturm on github.
  • I am msturm (https://keybase.io/msturm) on keybase.
  • I have a public key ASDY-RKOa_QJp8OvqQMpG_c0YFfRm_0yK521yITBovU7nQo

To claim this, I am signing this object:

@matthiassturm
matthiassturm / .tmux.conf
Created August 18, 2021 11:58
My tmux config
# what this config does:
# 1. beautify the status bar
# 2. rebind prefix to C-a (prevent breaking your fingers)
# 3. rebind window swapping to cursor keys
# 4. bind C-r to reload config
# 5. disable mouse scroll, but bind C-m/C-M to control it
#set -g utf8 on
#set -g default-terminal "screen-256color"
set -g default-terminal "xterm-256color"