Skip to content

Instantly share code, notes, and snippets.

@e13h
e13h / README.md
Created February 22, 2023 03:59
SSH keys and SSH config

Configure SSH to remember your credentials

Further reading here.

Create an SSH key pair

If you need to create a new SSH key pair, use the ssh-keygen command to create an Ed25519 key (more secure than RSA).

ssh-keygen -t ed25519

Follow the prompts, and give it a custom filename to not override existing key pairs if you have them.

@e13h
e13h / README.md
Created August 25, 2020 23:24
Setting up your Linux computer to not sleep while Plex Media Server is streaming

Prevent Computer From Sleeping While Plex Media Server is Streaming

With the help of Google, I was able to piece together a solution for preventing my Linux computer from sleeping while streaming something via Plex.

My workflow right now is to use an app called Wake Me Up to send a wake-on-lan signal to my Linux computer running Plex Media Server, which allows my Plex client apps to discover the server. The server won't go to sleep while there are any streams running from the server as long as the service defined below is running.

References

@e13h
e13h / .tmux.conf
Created August 20, 2020 20:15
My personal tmux config
# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# Enable mouse mode (tmux 2.1 and above)
@e13h
e13h / .zshrc
Last active August 13, 2021 21:55
Zsh run commands that I use
# See `SIMPLE PROMPT ESCAPES' section in the zshmisc man page for details
# on what these prompt escapes do and to further customize your zsh prompt
export PS1="%n@%m %1~ %# "
# Delete branches that have been merged and have been deleted from remote.
git-remove-untracked() {
git fetch --prune > /dev/null 2>&1 \
&& git branch -r \
| awk '{print $1}' \
| egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) \