Skip to content

Instantly share code, notes, and snippets.

View eizenberg's full-sized avatar

Elik Eizenberg eizenberg

View GitHub Profile
@eizenberg
eizenberg / bigpanda-deploy.sh
Created July 24, 2013 17:07
BigPanda deployments via shell script
#!/bin/sh
component='application1'
version='1.3.8'
host='ny-serv18'
owner='phil'
# --- Before Deployment
echo { \"component\": \"$component\", \"version\": \"$version\", \"hosts\": [ \"$host\" ], \"owner\": \"$owner\" } > deployment-start.json
curl -i -X POST -H "Authorization: Bearer <api-token>" -H "Content-Type: application/json" -d @deployment-start.json"https://api.bigpanda.io/data/events/deployments/start"
@eizenberg
eizenberg / rxv
Created September 19, 2013 08:45
A reactive svg implementation, based on reactive-coffee by @yang
bind = rx.bind
ObsCell = rx.ObsCell
ObsArray = rx.ObsArray
@rxv = {}
events = ["click", "mousedown", "mouseup"]
specialAttrs = rxv.specialAttrs = {
@eizenberg
eizenberg / deploy.py
Created December 4, 2013 14:46
Python snippet for reporting deployments to BigPanda. Useful for python-based deployment systems like ansible, fabric, etc...
import urllib2
import json
START_URL = 'https://api.bigpanda.io/data/events/deployments/start'
END_URL = 'https://api.bigpanda.io/data/events/deployments/end'
API_TOKEN = '<YOUR API TOKEN>'
HEADERS = {'Content-Type': 'application/json', 'Authorization' : 'Bearer ' + API_TOKEN}