I hereby claim:
- I am towanda on github.
- I am towanda (https://keybase.io/towanda) on keybase.
- I have a public key whose fingerprint is DD59 2B58 D022 E129 B942 09ED 8800 14D0 A59C 408C
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# Run via: ruby -rubygems app.rb | |
require 'sinatra' | |
require 'haml' | |
disable :logging | |
get '/' do | |
title = "Drag'n'drop issue reduction" | |
haml :index | |
end |
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
# https://www.varnish-cache.org/docs/2.1/tutorial/vcl.html | |
# https://www.varnish-cache.org/trac/wiki/VCLExamples | |
# Summary | |
# 1. Varnish will poll the backend at /health_check to make sure it is | |
# healthy. If the backend goes down, varnish will server stale content | |
# from the cache for up to 1 hour. | |
# 2. Varnish will pass X-Forwarded-For headers through to the backend | |
# 3. Varnish will remove cookies from urls that match static content file | |
# extensions (jpg, gif, ...) |
These are some of my (Ryan Bates) favorite gems to use for various tasks:
(compilation-start command-args 'ack-mode)) |
(compilation-start (concat command-args " " (rinari-root)) 'ack-mode)) |
#rails template | |
# template.rb | |
run "rm public/index.html" | |
run "mkdir certs" | |
run "cp ../certs/* certs/" | |
generate(:scaffold, "device token:string") | |
generate(:scaffold, "message text:string sound:boolean badge:integer") |
# Author: Pieter Noordhuis | |
# Description: Simple demo to showcase Redis PubSub with EventMachine | |
# | |
# Requirements: | |
# - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby | |
# - a browser with WebSocket support | |
# | |
# Usage: | |
# ruby redis_pubsub_demo.rb | |
# |