build your Docker image first
docker build -t tmp-image:latest
#!/usr/bin/env python | |
"""Download conversations, customers, and attachments from a Help Scout mailbox | |
Written by Jonathan Kamens (jik@kamens.us). | |
V2 API modified by Diego Borges. | |
Released into the public domain. | |
Email me patches if you have enhancements you'd like me to incorporate. Don't |
#!/usr/bin/env python | |
"""Download conversations, customers, and attachments from a Help Scout mailbox - using v1 API | |
Written by Jonathan Kamens (jik@kamens.us). | |
Released into the public domain. | |
Email me patches if you have enhancements you'd like me to incorporate. Don't | |
bother emailing me bug reports or suggestions; this script does exactly what I |
#!/bin/bash | |
ACCOUNT_ID="xxxxxxxx" && \ | |
REGION="us-west-2" && \ | |
REPO="go-http-server" | |
# Login to ecr | |
$(aws ecr get-login --no-include-email --region ${REGION}) |
#!/bin/sh | |
RED='\033[0;31m' | |
NC='\033[0m' # No Color | |
test_results=$(script -q /dev/null pipenv run python -m pytest ./test -v --tb=no) | |
if [ $? -eq 1 ]; then | |
printf "${RED}CANNOT COMMIT, PYTEST FAILED\n\nPYTEST RESULTS:\n" | |
echo "$test_results" | |
exit 1 | |
fi |
# delete local tag '12345' | |
git tag -d 12345 | |
# delete remote tag '12345' (eg, GitHub version too) | |
git push origin :refs/tags/12345 | |
# alternative approach | |
git push --delete origin tagName | |
git tag -d tagName |
//Script #1 sobre Automação Web usando CasperJS | |
//Primeiramente, é criada uma variável do tipo array (pense em uma planilha do excel) que conterá links | |
var links = []; | |
// Aqui é feita a definição do módulo do casperJS | |
// Quando for utilizado o módulo do CasperJS sem a suite de testes, a definicação deverá ser desta forma | |
var casper = require('casper').create(); | |
// Neste momento é criada uma função que será chamada mais a frente para retornar os links | |
function getLinks() { |