As configured in my dotfiles.
start new:
tmux
start new with session name:
| var CryptoJS = require('crypto-js') | |
| var request = require('request-promise') | |
| /* | |
| * npm install crypto-js request-promise request | |
| * node wx_t1t_hack.js | |
| */ | |
| // export function testEncription(msg, fullKey) { | |
| // var fullKey = fullKey.slice(0, 16) |
| #!/bin/bash | |
| # server install | |
| export IP_ADDRESS=$(hostname -i) | |
| echo $IP_ADDRESS | |
| apt-get update | |
| apt-get install -y unzip dnsmasq wget | |
| # install Nomad | |
| wget https://releases.hashicorp.com/nomad/0.8.4/nomad_0.8.4_linux_amd64.zip | |
| unzip nomad_0.8.4_linux_amd64.zip -d /usr/local/bin/ |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| /* | |
| * derivative work of Matheus de Oliveira's json_manipulator.sql | |
| * https://gist.github.com/matheusoliveira/9488951 | |
| * | |
| * adapted to support postgresql 9.4 jsonb type | |
| * no warranties or guarantees of any kind are implied or offered | |
| * | |
| * license is as Matheus conferred it on 4/9/2015: | |
| * matheusoliveira commented on Apr 9 | |
| * @hannes-landeholm, I'd like to take credit if you share them |
| # How to use "acme.sh" to set up Lets Encrypt without root permissions | |
| # See https://github.com/Neilpang/acme.sh for more | |
| # This assumes that your website has a webroot at "/var/www/<domain>" | |
| # I'll use the domain "EXAMPLE.com" as an example | |
| # When this is done, there will be an "acme" user that handles issuing, | |
| # updating, and installing certificates. This account will have the following | |
| # (fairly minimal) permissions: | |
| # - Host files at http://EXAMPLE.com/.well-known/acme-challenge |