This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage' | |
STATICFILES_STORAGE = 'path.to.storage.S3StaticStorage' | |
THUMBNAIL_DEFAULT_STORAGE = 'storages.backends.s3boto.S3BotoStorage' | |
AWS_ACCESS_KEY_ID = 'YOUR KEY' | |
AWS_SECRET_ACCESS_KEY = 'YOUR KEY' | |
AWS_STORAGE_BUCKET_NAME = 'media.YOURSITE.com' | |
AWS_STATIC_BUCKET_NAME = 'static.YOURSITE.com' | |
AWS_S3_CUSTOM_DOMAIN = AWS_STORAGE_BUCKET_NAME | |
AWS_STATIC_CUSTOM_DOMAIN = AWS_STATIC_BUCKET_NAME | |
STATIC_URL = 'http://%s/' % AWS_STATIC_BUCKET_NAME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
// set up some references | |
var commentsDiv = $("#comments"); | |
var commentsToggle = $("#comments-toggle"); | |
if(commentsDiv.length && typeof commentsCategoryID !== "undefined" && typeof commentsStreamID !== "undefined") { | |
// comment counter | |
// docs at http://developers.gigya.com/020_Client_API/020_Methods/z_020_Comments/comments.getComments | |
gigya.comments.getComments({ | |
categoryID: commentsCategoryID, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# change the tmux prefix | |
set -g prefix C-j | |
bind C-j send-prefix | |
unbind C-b | |
# lower delay, increase responsiveness | |
set -sg escape-time 1 | |
# start window/pane numbering at 1 | |
set -g base-index 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Users/rleland/.rvm/gems/ruby-1.9.3-p194/gems/librarian-0.1.0/lib/librarian/action/persist_resolution_mixin.rb:11:in `persist_resolution': undefined method `correct?' for nil:NilClass (NoMethodError) | |
from /Users/rleland/.rvm/gems/ruby-1.9.3-p194/gems/librarian-0.1.0/lib/librarian/action/resolve.rb:27:in `run' | |
from /Users/rleland/.rvm/gems/ruby-1.9.3-p194/gems/librarian-0.1.0/lib/librarian/cli.rb:169:in `resolve!' | |
from /Users/rleland/.rvm/gems/ruby-1.9.3-p194/gems/librarian-chef-0.0.1/lib/librarian/chef/cli.rb:41:in `install' | |
from /Users/rleland/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.18.1/lib/thor/command.rb:27:in `run' | |
from /Users/rleland/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command' | |
from /Users/rleland/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.18.1/lib/thor.rb:363:in `dispatch' | |
from /Users/rleland/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.18.1/lib/thor/base.rb:439:in `start' | |
from /Users/rleland/.rvm/gems/ruby-1.9.3-p194/gems/librarian-0.1.0/lib/librarian/cli.rb:26: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from community.opscode.com | |
cookbook "sensu", "0.5.0" | |
# or from github | |
cookbook "sensu", | |
:git => "https://github.com/sensu/sensu-chef.git", | |
:ref => "0.5.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import httplib | |
import urllib2 | |
import ssl | |
import certifi | |
from backports.ssl_match_hostname import match_hostname | |
class CertValidatingHTTPSConnection(httplib.HTTPConnection): | |
default_port = httplib.HTTPS_PORT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export MODULE_PATH="/etc/puppet/modules/common" | |
mkdir -p $MODULE_PATH | |
for mod in apache foreman foreman_proxy passenger puppet tftp xinetd; do | |
mkdir -p $MODULE_PATH/$mod | |
wget http://github.com/theforeman/puppet-$mod/tarball/master -O - | tar xzvf - -C $MODULE_PATH/$mod --strip-components=1 | |
done; | |
echo include puppet, puppet::server, foreman, foreman_proxy | puppet apply --modulepath $MODULE_PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto | |
conn = boto.connect_s3() | |
bucket = conn.get_bucket('some-bucket') | |
bucket.delete_keys(bucket.get_all_keys()) | |
conn.delete_bucket('some-bucket') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
import yaml | |
import sys | |
from boto.ec2.connection import EC2Connection | |
ec2 = EC2Connection() | |
fqdn = sys.argv[1] | |
hostname = fqdn.split('.')[0] | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# set the hostname | |
echo "replace-me" > /etc/hostname | |
grep -q "127.0.0.1 replace-me" /etc/hosts || sed -i '1i127.0.0.1 replace-me' /etc/hosts | |
service hostname restart | |
# install saltstack-minion | |
add-apt-repository ppa:saltstack/salt-daily -y | |
apt-get update -y |
NewerOlder