This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rsync -v -e ssh -r --progress rene@remote:~/Music . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Empty DNS cache, so it is newly filled | |
ipconfig /flushdns | |
# Completely renew IP configuration | |
ipconfig /renew | |
# Check a route | |
tracert <host/IP> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Identity | |
git config --global user.name "Max Mustermann" | |
git config --global user.email "[email protected]" | |
git config --global user.signingkey 12345678 | |
# Line break handling | |
# See https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration | |
git config --global core.autocrlf input | |
# KDiff3 as diff and merge tool |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Remove e.g. large files | |
git filter-branch prune-empty -index-filter "git rm -cached -f -ignore-unmatch TWUndDieWeihnachtsmaenner.mpg" -all | |
# Edit commit message of the last commit | |
git commit --amend | |
# Modify last or one of the last 3 commits or only their commit messages | |
git rebase -i HEAD~3 | |
# Merge current staging area content with last commit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Only search | |
grep -rIUl --exclude-dir=modules $(printf '\r') * | |
# Search and fix | |
grep -rIUl --exclude-dir=modules $(printf '\r') * | xargs dos2unix |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Simple | |
powershell -c '(New-Object Media.SoundPlayer "C:\Windows\Media\alarm01.wav").PlaySync();' | |
# As alias: | |
alias play_sound='powershell -c "(New-Object Media.SoundPlayer \"C:\Windows\Media\alarm01.wav\").PlaySync();"' | |
play_sound |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmd://"C:\Program Files (x86)\Mobatek\MobaXterm\MobaXterm.exe" -newtab "ssh {USERNAME}@{URL:RMVSCM}" |
NewerOlder