Skip to content

Instantly share code, notes, and snippets.

View kordless's full-sized avatar
🦥
sloth mode

Коrd Campbell kordless

🦥
sloth mode
View GitHub Profile
{% 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 %}:
@kordless
kordless / splunk.json
Last active August 29, 2015 14:08 — forked from replay/splunk_install.sh
This is the StackMonkey demo script for Splunk. Demos can be found here: https://www.stackmonkey.com/demo/
{
"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": [
""
@kordless
kordless / openbazaar.json
Last active August 29, 2015 14:09 — forked from DoriftoShoes/stackstorm.json
This is the StackMonkey demo script for an OpenBazaar server. Demos can be found here: https://www.stackmonkey.com/demo/
{
"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": [
""
@kordless
kordless / isTheWebsiteDown.js
Last active August 29, 2015 14:09 — forked from Marak/isTheWebsiteDown.js
Checks to see if a website is down
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');
});
@kordless
kordless / file.md
Last active August 29, 2015 14:17 — forked from MarcelMue/file.md

#Using the giantswarm CLI on Windows with boot2docker without a additional VM

####prerequisites:

  • Boot2docker should be running on your system and you should have access to it with boot2docker ssh
  • A filepath of your windows system should be mirrored in boot2docker (eg windows C:\\Users\Username should be boot2docker /c/Users/Username)
  • Have a decent console setup to make the following steps easier ( I use Console 2)

####Setup

  • Switch to your boot2docker with 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
  • run tar xzf swarm-0.15.0-linux-amd64.tar.gzat the same location
@kordless
kordless / named-params.ts
Created October 12, 2012 21:53
Named parameters in typescript
function doSomething(name:string, age?:number, height?:number) {
}
doSomething("James", height:5);
@kordless
kordless / readme.md
Created November 13, 2012 01:28 — forked from johan/readme.md
(Re)fork any gist, including your own

Want to fork your own gists? No fork button? No problem! Install this user script by clicking refork.user.js' "raw" link down below: ⇓

@kordless
kordless / README.md
Created December 13, 2012 01:30 — forked from tinyproberobot/README.md
graph for TinyProbe

Usage

graphit stuff

Output

The output of this command is typicall a graph. Ocassionally it's a simian.

Features

  • awesome graphs
  • moves and updates
  • contains data
@kordless
kordless / README.md
Created December 13, 2012 01:50 — forked from tinyproberobot/README.md
Awesome for TinyProbe

Usage

awesome parameter1 parameter2

Output

A really cool visualization! Visualize

Features

  • awesome visualization
  • moves and updates