Instantly share code, notes, and snippets.

Mike Caspar MikeCaspar

View GitHub Profile
@MikeCaspar
MikeCaspar / digital_ocean_create_droplet_v2.yml
Created Jan 25, 2016
Sample to Create a Digital Ocean Droplet using Version 2 of ansible and the version 2 api at Digital Ocean)
View digital_ocean_create_droplet_v2.yml
# digital_ocean_create_droplet_v2.yml
# Create a new Droplet (version 2 of ansible, version 2 Digital Ocean API)
#
# Will return the droplet details including the droplet id (used for idempotence)
- hosts: localhost
connection: local
gather_facts: false
@MikeCaspar
MikeCaspar / dockerizePhantomOnJenkins.sh
Last active Jan 7, 2016
Create and start a Docker Container running phantomJS webdriver on a Jenkins Host
View dockerizePhantomOnJenkins.sh
docker run -d -t -p 4444:4444 --name phantom servebox/phantomjs phantomjs --webdriver=127.0.0.1:4444