Last active
April 22, 2024 10:28
-
-
Save QNimbus/1ed39f8b928c4eba284e2cc07c1df90d to your computer and use it in GitHub Desktop.
Usefull commands
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
# Recursively append newline to files that do not yet end with '\n' | |
# Excludes .git/ folder | |
find . -type f -not -path "./.git/*" -exec sed -i -e '$a\' {} \; | |
# Quick port forward to remote host (e.g. for webmin) | |
ssh -l user -L 8080:localhost:10000 # Then browse to http://localhost:8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment