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
$ git log --oneline --decorate | |
63ad740 (HEAD, tag: latest, origin/master, master) Added more stuff. | |
6df881a Added stuff. | |
3d73a7d Initial Commit. | |
$ git commit -am "Added more stuff again." | |
$ git log --oneline --decorate | |
ff61d15 (HEAD, master) Added more stuff again. | |
63ad740 (tag: latest, origin/master) Added more stuff. |
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/sh | |
# Fix NTP/Time | |
# https://github.com/boot2docker/boot2docker/issues/290 | |
boot2docker ssh -- sudo killall -9 ntpd | |
boot2docker ssh -- sudo ntpclient -s -h pool.ntp.org | |
boot2docker ssh -- sudo ntpd -p pool.ntp.org |
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
# --------------------------------------------- | |
# | |
# Example boto config file. | |
# Per user = ~/.boto | |
# Global = /etc/boto.cfg | |
# | |
# See also: | |
# http://code.google.com/p/boto/wiki/BotoConfig | |
# http://boto.cloudhackers.com | |
# --------------------------------------------- |
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 fabric.api import * | |
""" | |
Base configuration | |
""" | |
env.project_name = '$(project)' | |
env.database_password = '$(db_password)' | |
env.site_media_prefix = "site_media" | |
env.admin_media_prefix = "admin_media" | |
env.newsapps_media_prefix = "na_media" |
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
====================================================== | |
Setting up Django using Apache/mod_wsgi on Ubuntu 8.10 | |
====================================================== | |
This article will cover setting up Django using Apache/mod_wsgi on Ubuntu | |
8.10. The article is targeted at a production environment, but keep in mind | |
this is a more generalized environment. You may have different requirements, | |
but this article should at least provide the stepping stones. | |
The article will use distribution packages where nesscary. As of 8.10 the |
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
# | |
# Multi-stage Capistrano Example | |
# | |
# Example calls: cap dev deploy, cap prod deploy | |
# Env specific data defined in deploy/dev, deploy/prod | |
# | |
# Required gems: capistrano, capistrano-ext, rubygems, cloudfiles | |
# | |
require 'capistrano/ext/multistage' |
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
source "http://rubygems.org" | |
gem 'chef', '0.10.4' | |
gem 'capistrano', '2.9.0' | |
gem 'capistrano-ext', '1.2.1' | |
gem 'capistrano-chef' |
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
This only seems to happen if I attempt to override the passenger version in a role or environment while bootstrapping. If I add the overrides after the bootstrap completes successfully, the block gets executed successfully. | |
Block in recipe: | |
gem_package "passenger" do | |
version node[:nginx][:passenger_version] | |
notifies :run, resources(:bash => "compile_nginx_source") | |
end | |
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
cookbook_paths: | |
- ./cookbooks/ | |
recipes: | |
- pivotal_workstation::create_var_chef_cache | |
- pivotal_workstation::java | |
- pivotal_workstation::git_config_global_defaults | |
- pivotal_workstation::gem_no_rdoc_no_ri | |
- pivotal_workstation::bash_profile-better_history | |
- pivotal_workstation::bash_profile-aliases | |
- pivotal_workstation::bash_profile-ps1 |
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 ruby | |
require 'scout_api' | |
#************************************* | |
# Playing around with the Scout API... | |
#************************************* | |
#Create the connection object. | |
scout = Scout::Account.new(ENV['SCOUT_ACCOUNT'], ENV['SCOUT_USER'], ENV['SCOUT_PASSWORD']) |
OlderNewer