Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am sopel on github.
  • I am sopel (https://keybase.io/sopel) on keybase.
  • I have a public key ASBPeo5teJKZ2cA5ekObC8HV7sPxVYoc7v7q4A0XXG3qGwo

To claim this, I am signing this object:

@sopel
sopel / gist:c437fa2b5f6e4d6582ca
Created March 23, 2015 10:10
Traildash ECS task definition
{
"containerDefinitions": [
{
"name": "traildash",
"image": "appliedtrust/traildash",
"cpu": 1024,
"memory": 1024,
"environment": [
{
"name": "AWS_REGION",
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "Launches a Docker Registry",
"Parameters" : {
"InstanceType" : {
"Description" : "EC2 instance type",
"Type" : "String",
"Default" : "m1.small",
#chat-box.ubuntu.hidden-xs
.closed
.pull-right
= link_to_function content_tag(:i, nil, class: 'glyphicon glyphicon-chevron-up').html_safe, 'chat.show()'
.m-l-small
= link_to_function 'Chat with us', 'chat.show()'
.opened{style: 'display: none'}
.header
.pull-right
= link_to_function content_tag(:i, nil, class: 'glyphicon glyphicon-plus-sign').html_safe, 'chat.maximize()', class: 'maximize', style: 'display: none'
@sopel
sopel / coin_flip.lua
Created August 14, 2013 00:58
# airscript
-- Sample script to make an HTTP request with query parameters
local response = http.request {
url = 'http://www.random.org/integers/',
params = {
num=1, min=0, max=1, format='plain',
rnd='new', col=1, base=10
}
}
if tonumber(response.content) == 0 then
return 'heads'