Skip to content

Instantly share code, notes, and snippets.

View thomasuebel's full-sized avatar
🤘
Working from home

Thomas Uebel thomasuebel

🤘
Working from home
View GitHub Profile
@thomasuebel
thomasuebel / .profile.sh
Created September 9, 2021 19:30
Launch into a new or attach to an existing tmux session when connecting via ssh
# Put into .profile
if [ -z "$TMUX" ] && [ -n "$SSH_TTY" ] && [[ $- =~ i ]]; then
tmux attach-session -t ssh_tmux || tmux new-session -s ssh_tmux
exit
fi
# Find occurences of TEST in *.js files, replacing the word TEST with BOB
for line in $(grep "TEST" . -THIRs --include=\*.js | awk '{print $1}'); do sed -i 's/TEST/BOB/' $line; done
git diff --cached --name-status | grep -E "yarn.lock|package.json"
@thomasuebel
thomasuebel / scx-3405-ubuntu1804.md
Created May 4, 2018 21:36
Getting Samsung SCX-3405 scanner and printer working with Ubuntu 18.04

Keybase proof

I hereby claim:

  • I am thomasuebel on github.
  • I am thomasuebel (https://keybase.io/thomasuebel) on keybase.
  • I have a public key whose fingerprint is 8750 5794 55E8 F6A4 F2F4 752A C166 72B5 F114 4178

To claim this, I am signing this object: