https://gist.github.com/1341606
pip install Django
https://gist.github.com/1341606
pip install Django
$ pythonbrew venv use test | |
$ pip freeze | |
Cython==0.15 | |
distribute==0.6.21 | |
lxml==2.3 | |
wsgiref==0.1.2 | |
#!/usr/bin/env ruby | |
require 'open-uri' | |
require 'json' | |
class GitHubRepo | |
attr_reader :user, :repo, :ref | |
def initialize hash | |
@user = hash[:user] | |
@repo = hash[:repo] | |
@ref = hash[:ref] || 'master' |
require 'rubygems' | |
require 'sinatra' | |
require 'net-ldap' | |
require 'digest/sha1' | |
require 'base64' | |
require 'haml' | |
LDAP_HOST = 'localhost' | |
ADMIN_DN = 'cn=admin,dc=company,dc=com' |
curl -kL https://raw.github.com/utahta/pythonbrew/master/pythonbrew-install | bash
alias pyb='pythonbrew'
pyb install --no-test 2.7.2
# Copyright (c) 2011 Konstantin Haase | |
require 'sinatra/base' | |
require 'capture_stdout' | |
require 'escape_utils' | |
require 'slim' | |
require 'sass' | |
require 'coffee-script' | |
require 'eventmachine' |
# 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 |
// ==UserScript== | |
// @name Show Full Domain on Hacker News posts | |
// @description Sets full domain on hacker news posts. | |
// @namespace http://userscripts.org/users/119115 | |
// @include http://news.ycombinator.com/* | |
// @include https://news.ycombinator.com/* | |
// @match https://news.ycombinator.com/* | |
// @match http://news.ycombinator.com/* | |
// ==/UserScript== |
#!/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 | |
# |