Tips
Windows Computer Shuts Off
I run this script once a day, because group policies change my laptop to shut off more frequently.
- Save the code below as a script
change-sleep-settings.sh
and run this once a day.
In addition, modify your "Balance" Power settings to your liking, as this script will use the Balance Power settings.
#!/usr/bin/env bash
## Never sleep/turn off if plugged in.
powercfg /change monitor-timeout-ac 0
## List the Power scheme if it ever changes
powercfg /list
## Set the Power scheme back to Balance
powercfg -setactive 381b4222-f694-41f0-9685-ff5bb260df2e
## List the Power scheme again
powercfg /list
SSH Control Sequences
Knowing the SSH control sequences can be helpful.
For example, if a SSH session is ever in a "stuck" or frozen state, run ~.
to force terminate it.