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
var screenshotUrl = 'http://example.com/' | |
var casper = require("casper").create({ | |
viewportSize: { | |
width: 1280, | |
height: 1280 | |
} | |
}); | |
if (casper.cli.args.length < 1) { |
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
prox="http://proxy.com:8080" | |
alias proxyon="export http_proxy=$prox && export https_proxy=$prox" | |
alias proxyoff='unset http_proxy && unset https_proxy' | |
echo "Turning http(s) proxies on" | |
proxyon | |
# investigate function is repeated here for portability but, we | |
# only define it if investigate isn't already a defined function | |
if ! type -t investigate &> /dev/null; then | |
function investigate { |
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 python | |
# -*- coding: utf-8 -*- | |
## Versao 0.22 | |
""" | |
Script de Backup MYSQL (backup_mysq.py) | |
Copyrighted by Nilton OS <jniltinho at gmail.com> | |
License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html) | |