You should install VirtualBox and Vagrant before you start.
You should create a Vagrantfile in an empty directory with the following content:
You should install VirtualBox and Vagrant before you start.
You should create a Vagrantfile in an empty directory with the following content:
| # this script expects $DOTOKEN variable with your digital ocean token | |
| # this script gets or creates smallest DO droplet and remotely executes script on it | |
| # afterwards, droplet is destroyed | |
| DROPLETNAME=example.com | |
| DOHOME="https://api.digitalocean.com/v2" | |
| cat <<EOF > .curlargs | |
| -s | |
| -H "Authorization: Bearer $DOTOKEN" |
| 30 April 2013 | |
| https://gist.github.com/anonymous/5491171 | |
| DevOps Days |
Best talks day 1:
| #!/bin/bash | |
| set -e | |
| SECRETFILE=~/.digitalocean | |
| if [[ -z $DIGOCEAN_ID ]] || [[ -z $DIGOCEAN_KEY ]]; then | |
| if [ -e $SECRETFILE ]; then | |
| . $SECRETFILE | |
| fi | |
| fi |
| # To install the Python client library: | |
| # pip install -U selenium | |
| # Import the Selenium 2 namespace (aka "webdriver") | |
| from selenium import webdriver | |
| # iPhone | |
| driver = webdriver.Remote(browser_name="iphone", command_executor='http://172.24.101.36:3001/hub') | |
| # Android |