This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Host * | |
| ServerAliveInterval 60 | |
| AddKeysToAgent yes | |
| UseKeychain yes | |
| IdentityFile ~/.ssh/id_rsa |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| speedometer -r eth0 -t eth0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/sh | |
| if [ "$1" == "" ]; then | |
| echo "" | |
| echo "SSL Certificate Generator (self-signed, requires openssl)." | |
| echo "" | |
| echo " Usage:" | |
| echo "" | |
| echo " gencert <days> # Produces server.key and server.crt" | |
| echo "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "syscall" | |
| ) | |
| const ( | |
| B = 1 | |
| KB = 1024 * B |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo pmset -a destroyfvkeyonstandby 1 hibernatemode 25 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/bash | |
| # Fetches, encrypts, transfers and rotates Heroku Postgres backups to/on Amazon S3. | |
| # Requirements: | |
| # | |
| # 1. Heroku Toolbelt | |
| # | |
| # $ wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/bash | |
| # Dumps, compresses, encrypts, transfers, and rotates Rancher backups to/on Amazon S3. | |
| # Requirements: | |
| # | |
| # 1. Docker | |
| # | |
| # $ curl -fsSL https://get.docker.com/ | sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/bash | |
| # Generates, encrypts, transfers and rotates Gitlab backups to/on Amazon S3. | |
| # Requirements: | |
| # | |
| # 1. Gitlab | |
| # | |
| # $ apt-get update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| production: | |
| adapter: postgresql | |
| encoding: unicode | |
| sslmode: require | |
| url: postgres://user:password@host:port/db |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export HOSTNAME_A=todo | |
| export PORT_A=todo | |
| export DBNAME_A=todo | |
| export USERNAME_A=todo | |
| export HOSTNAME_B=todo | |
| export PORT_B=todo | |
| export DBNAME_B=todo | |
| export USERNAME_B=todo |