The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
# install tinydns (djbdns) & daemontools on ubuntu 14.04 | |
apt-get -y install daemontools | |
apt-get -y install daemontools-run | |
apt-get -y install ucspi-tcp | |
apt-get -y install djbdns | |
mkdir -p /etc/service | |
# NOTE: installing daemontools-run takes care of this, else |
# Load balancer configuration | |
upstream exampleApp { | |
# Directs to the process with least number of connections. | |
least_conn; | |
# One failed response will take a server out of circulation for 20 seconds. | |
server 127.0.0.1:10080 fail_timeout=20s; | |
#server 127.0.0.1:10081 fail_timeout=20s; | |
#server 127.0.0.1:10082 fail_timeout=20s; | |
#server 127.0.0.1:10083 fail_timeout=20s; |
#!/bin/bash | |
# CentOS rbenv system wide installation script | |
# Forked from https://gist.github.com/1237417 | |
# Installs rbenv system wide on CentOS 5/6, also allows single user installs. | |
# Install pre-requirements | |
yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel \ | |
make bzip2 autoconf automake libtool bison iconv-devel git-core |
var App = new Backbone.Marionette.Application(); | |
App.addRegions({ | |
primaryRegion: "#primary-region", | |
}); |
function add_stylesheet_once( url ){ | |
$head = $('head'); | |
if( $head.find('link[rel="stylesheet"][href="'+url+'"]').length < 1 ) | |
$head.append('<link rel="stylesheet" href="'+ url +'" type="text/css" />'); | |
} |
// … find all gist scripts inside the ajax container | |
var $gists = $ajax_container.find('script[src^="https://gist.github.com/"]'); | |
// if gist embeds are found | |
if( $gists.length ){ | |
// update each gist | |
$gists.each(function(){ | |
// we need to store $this for the callback |
// attach to static html at element "#navbar-links" | |
var myview = new MyView( {el: $('#navbar-links')} ); |
# | |
# My common settings for Mac | |
# Currently using Sublime editor, perforce p4merge | |
[user] | |
name = Mike Stapp | |
email = xxx@xxx | |
[core] | |
editor = subl -n -w |