##Links to Great tools I've found Feel free to share
###DevOp Tools
###Libraries
{% macro form_field(field) -%} | |
{% set with_label = kwargs.pop('with_label', False) %} | |
{% set placeholder = '' %} | |
{% if not with_label %} | |
{% set placeholder = field.label.text %} | |
{% endif %} | |
<div class="control-group {% if field.errors %}error{% endif %}"> | |
{% if with_label %} | |
<label for="{{ field.id }}" class="control-label"> | |
{{ field.label.text }}{% if field.flags.required %} *{% endif %}: |
##Links to Great tools I've found Feel free to share
###DevOp Tools
###Libraries
{ | |
"image": { | |
"url": "http://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img", | |
"name": "Ubuntu Trusty", | |
"container_format": "bare", | |
"disk_format": "qcow2" | |
}, | |
"callback_url": "", | |
"ssh_keys": [ | |
"" |
{ | |
"image": { | |
"url": "http://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img", | |
"name": "Ubuntu Trusty", | |
"container_format": "bare", | |
"disk_format": "qcow2" | |
}, | |
"callback_url": "", | |
"ssh_keys": [ | |
"" |
var http = require('http'); | |
module['exports'] = function isTheWebSiteDown (hook) { | |
http.get(hook.params.url, function(res){ | |
hook.debug(hook.params.url + " is up and running.") | |
hook.res.end('false'); | |
}).on('error', function (){ | |
hook.debug(hook.params.url + " is DOWN!") | |
hook.res.end('true'); | |
}); |
#Using the giantswarm CLI on Windows with boot2docker without a additional VM
####prerequisites:
boot2docker ssh
C:\\Users\Username
should be boot2docker /c/Users/Username
)####Setup
boot2docker ssh
and download the swarm cli to a location mirrored by windows (eg your project folder) by executing curl -O http://downloads.giantswarm.io/swarm/clients/0.15.0/swarm-0.15.0-linux-amd64.tar.gz
tar xzf swarm-0.15.0-linux-amd64.tar.gz
at the same locationfunction doSomething(name:string, age?:number, height?:number) { | |
} | |
doSomething("James", height:5); |
Want to fork your own gists? No fork button? No problem! Install this user script by clicking refork.user.js' "raw" link down below: ⇓