ssh -nN -R <remote-port>:localhost:<local-port> <username>@<server-ip-or-hostname><remote-port>Any free port on your remote server, e.g.9999- `` The port your local webserver is listening to, e.g.
8080
| #!/bin/sh | |
| # USAGE: execute with e.g.: BAZ=hello ./script.sh 5 1 | |
| # | |
| ## Variables | |
| # | |
| FOO=foo | |
| ${BAR:-bar} # default value "bar" for BAR, can be set from outside the script | |
| echo $FOO $BAR # prints: foo bar |
a bash-like fake shell
all aws regions as JSON file including us-gov regions.
Have fun!
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html
| const period = 30; | |
| const epoch = Math.floor(Date.now() / 1000.0); | |
| const expires = (Math.ceil(epoch / period) * period) - epoch; | |
| console.log(expires); |