Skip to content

Instantly share code, notes, and snippets.

@QNimbus
Last active April 22, 2024 10:28
Show Gist options
  • Save QNimbus/1ed39f8b928c4eba284e2cc07c1df90d to your computer and use it in GitHub Desktop.
Save QNimbus/1ed39f8b928c4eba284e2cc07c1df90d to your computer and use it in GitHub Desktop.
Usefull commands
# 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