This file contains 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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
This file contains 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
{ | |
"requests": { | |
"g0": { | |
"resource": "template.full.update", | |
"operation": "update", | |
"params": { | |
"id": 280620 | |
}, | |
"body": { | |
"ID": 280620, |
This file contains 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 apt-get install apt-transport-https | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
sudo apt-get update | |
sudo apt-get install -y docker-ce | |
sudo curl -o /usr/local/bin/docker-compose -L "https://github.com/docker/compose/releases/download/1.17.0/docker-compose-$(uname -s)-$(uname -m)" | |
sudo chmod +x /usr/local/bin/docker-compose | |
# docker without sudo |
This file contains 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
{{ range $host, $containers := groupBy $ "Env.VIRTUAL_HOST" }} | |
upstream {{ $host }} { | |
{{ range $index, $value := $containers }} | |
{{ with $address := index $value.Addresses 0 }} | |
server {{ $address.IP }}:{{ $address.Port }}; | |
{{ end }} | |
{{ end }} | |
} |
This file contains 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
#!/usr/bin/env bash | |
install_elasticsearch() { | |
echo " * -- Elasticsaerch -- *" | |
echo " * Update" | |
sudo apt-get -qq -y update | |
echo " * Install JDK" | |
sudo apt-get -qq -y install openjdk-7-jre-headless | |
echo " * Download deb (V1.4.2)" |