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 | |
# Usage | |
# $ chmod +x ./wait_for_http_200.sh | |
# $ sh wait_for_http_200.sh http://<host>:<port>/<path> | |
echo "Trying to reach ${1}" | |
i=0 | |
while [[ "$(curl -s -o /dev/null -w '%{http_code}' ${1})" != "200" ]]; do | |
sleep 5 |
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
#encoding: utf-8 | |
module T3L4R0L1 | |
def me_ajuda?(dinheiro) | |
if dinheiro > 500 | |
"SIM" | |
else | |
"NÃO" | |
end | |
end | |
end |