Skip to content

Instantly share code, notes, and snippets.

View jhollinger's full-sized avatar

Jordan Hollinger jhollinger

View GitHub Profile
@pgroudas
pgroudas / downgrade_libqt.sh
Created August 29, 2012 13:25
Downgrade libqt on ubuntu 12.04
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
cat >>/etc/apt/sources.list <<END
# Needed for older versions of libqt (needed for cucumber and capybara/webkit)
deb http://archive.ubuntu.com/ubuntu oneiric main
END
apt-get update
apt-get remove -y libqtwebkit-dev libqt4-dev
@rkh
rkh / chat.rb
Created December 14, 2011 12:55
Simple Chat Application using the Sinatra Streaming API
# coding: utf-8
require 'sinatra'
set server: 'thin', connections: []
get '/' do
halt erb(:login) unless params[:user]
erb :chat, locals: { user: params[:user].gsub(/\W/, '') }
end
get '/stream', provides: 'text/event-stream' do