This sheet goes along with this SSH YouTube tutorial
$ ssh [email protected]
$ mkdir test
$ cd test
$ ssh [email protected]
$ mkdir test
$ cd test
| #!/usr/bin/env bash | |
| alias knshandler="/usr/lib/x86_64-linux-gnu/libexec/kf5/kpackagehandlers/knshandler" | |
| # Folder for storing global npm packages | |
| mkdir "${HOME}/.npm-global" | |
| echo " ✔️ Folder ~/.npm-packages created!" | |
| offer_driver_installation(){ | |
| echo "Do you want me to install Nvidia/AMD drivers? y/N" |
| # Make PATH easier to read by printing each directory on a new line | |
| easypath() { | |
| echo '\n'; echo $PATH | tr ':' '\0' | xargs -I _ -0 echo _ | ccat | |
| } | |
| help-tools-cli-mgmt() { | |
| echo " | |
| # 'tldr' | |
| # Abbreviated man pages. |
#Routing plex traffic through an SSH tunnel
This guide creates a reverse SSH tunnel to route all Plex server traffic through it.
Step 2 is done on the tunnel, all other steps are done on the plex server.
#1. Setup SSH keys (if you already have key based authenthication setup skip to step 2)
On plex server:
| // XPath CheatSheet | |
| // To test XPath in your Chrome Debugger: $x('/html/body') | |
| // http://www.jittuu.com/2012/2/14/Testing-XPath-In-Chrome/ | |
| // 0. XPath Examples. | |
| // More: http://xpath.alephzarro.com/content/cheatsheet.html | |
| '//hr[@class="edge" and position()=1]' // every first hr of 'edge' class |