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
{ | |
"stack": { | |
"capabilities": [], | |
"creation_time": "2014-02-19T16:04:56Z", | |
"description": "AWS CloudFormation Sample Template WordPress_Single_Instance: WordPress is web software you can use to create a beautiful website or blog. This template installs a single-instance WordPress deployment using a local MySQL database to store the data.", | |
"disable_rollback": true, | |
"id": "None", | |
"links": [ | |
{ | |
"href": "http://10.0.2.15:8004/v1/2e327e5e7fa94b25a44be66fd9d1ec4d/stacks/foobar1/None", |
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
class Runner(threading.Thread): | |
def __init__(self, in_queue, out_queue): | |
super(Runner, self).__init__() | |
self.in_queue = in_queue | |
self.out_queue = out_queue | |
self._keep_running = True | |
def run(self): | |
while self._keep_running or not self.in_queue.empty(): |
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 remove_extict = function() { | |
var line = null; | |
var dot = null; | |
var num_extinct = 0; | |
do { | |
try { | |
line = $('[marker-end]'); | |
dot = $('#'+line.id.replace('__line', '__dot')); | |
line.remove(); | |
// dot.remove() |
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
import mock | |
from heat.common import exception | |
from heat.common import template_format | |
from heat.engine import resource | |
from heat.engine import scheduler | |
from heat.tests import utils | |
from heat.tests.common import HeatTestCase | |
from ..resources import secret # noqa |
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
for i in 1 2 3 4 5 6 7 8 9 0; | |
do | |
echo $RANDOM | |
done |
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
def no_none(props): | |
''' returns a dict with no None values''' | |
return {key: value | |
for key, value in props.iteritems() | |
if value is not None} | |
def handle_create(self): | |
properties = { | |
self.rs.nodes: self.nodes(), |
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
[user] | |
name = Anderson Mesquita | |
email = find@out.com | |
[color] | |
ui = true | |
pager = true | |
[alias] | |
ci = commit | |
co = checkout | |
cp = cherry-pick |
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
@APP.task(base=ErrorHandler) | |
def calc_mrr(): | |
mrr_chord = chord( | |
chain(get_resources.s(key), calc_revenue.s()) | |
for key in mrr_stacks | |
) | |
return mrr_chord(mrr_total.s()) # mrr_total receives a list of AsyncResult | |
# but I need the actual results (the output of calc_revenue, | |
# which is the values returned by _sum_revenues) |
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 ruby | |
HOME = Dir.home | |
OPENSTACK = File.join(HOME, 'development', 'openstack') | |
def openstack | |
session_name = 'openstack' | |
windows = { | |
screen: "cd #{OPENSTACK}; vagrant up && vagrant ssh", | |
vagrant: "cd #{OPENSTACK}; sleep 10 ; vagrant ssh", |
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
#!/bin/bash | |
VPN_DEVICE=utun0 | |
VPN_NETWORK=10 | |
DEFAULT_GATEWAY=192.168.1.1 # home | |
host_exceptions=( | |
xxx.xxx.xxx.xxx # Some public service that needs to be accessed from the VPN | |
) |
OlderNewer