# w: /tmp/gogradle-232
gradle clean build
> Configure project :
Found go 1.10.3 in /Users/andres/.gimme/versions/go1.10.3.darwin.amd64/bin/go, use it.
> Task :prepare
Use project GOPATH: /private/tmp/gogradle-232/.gogradle/project_gopath
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
terragrunt { | |
terraform { | |
source = "git::https://gist.github.com/e193045664d62fbf8b1b93fd21e5914c.git//?ref=master" | |
} | |
remote_state { | |
backend = "s3" | |
config { | |
bucket = "t-villa-tg-0162" | |
dynamodb_table = "t-villa-tg-0162" | |
encrypt = true |
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
vagrant up --provision | |
# variables que afectan la ejecución | |
# http_proxy = | |
# virtualbox_ram = 4096 | |
# libvirt_ram = 4096 | |
# inicializando módulos | |
# actualizando módulos | |
Bringing machine 'default' up with 'virtualbox' provider... | |
==> default: Box 'centos/7' could not be found. Attempting to find and install... | |
default: Box Provider: virtualbox |
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
build: | |
construyendo_1: | |
image: golang | |
commands: | |
- go get ./... | |
- go test ./... | |
- go build -o miprograma | |
publish: | |
publicando_1: |
Situation:
Your VPN does not automatically set split tunnel for your connection to some host, maybe the ipaddress of the host changes over time, like an AWS ELB, and network admins can't set split tunnel rules on changing addresses.
Requirements:
User must be able to run:
sudo route add -host "$dst" "$tunnel"
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 | |
set -e -u | |
echo "i'm not root right? whoami $(whoami)" | |
echo right | |
sudo su << 'EOF' | |
echo "i'm root right? whoami = $(whoami)" | |
EOF |
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 | |
set -e -u | |
echo -n "read a var: " | |
read -r a_var | |
echo "you typed ${a_var}" |