A real quick GNU screen crash course with the key features I use.
man screen
- Emulates terminals in a full-screen window manager
- Detachable, so shell sessions aren't attached to a login process
| #!/bin/bash | |
| set -e | |
| if [ -z "$DIGITALOCEAN_ACCESS_TOKEN" ]; then | |
| echo >&2 "ERROR: You must export DIGITALOCEAN_ACCESS_TOKEN" | |
| exit 1 | |
| fi | |
| docker pull swarm > /dev/null |
| # Add to nginx.conf http section | |
| map $http_upgrade $connection_upgrade { | |
| default upgrade; | |
| '' close; | |
| } |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font: 13px Helvetica, Arial; | |
| } |