Skip to content

Instantly share code, notes, and snippets.

@tylerflint
tylerflint / gist:1141201
Created August 12, 2011 00:50
bad .box
server: wangchung
php_version: 20.39
@tylerflint
tylerflint / gist:1141192
Created August 12, 2011 00:42
sample custom .box file
server: nginx
php_version: 5.2.13
@tylerflint
tylerflint / gist:1141190
Created August 12, 2011 00:41
sample boxfile
web: # defaults to web
container: php # defaults to php
server: apache # defaults to apache
php_version: 5.3.6 # defaults to latest
@tylerflint
tylerflint / gist:1107058
Created July 26, 2011 15:43
creating a dummy deploy point
SimpleConfig.create(:key => 'app_uid_increment', :value => 3000)
user = User.where(:username => 'username').first
app = App.where(:name => 'app-name').first
deploy = app.deploys.create(:state => 'COMPLETE', :commit => '123', :user => user)
deploy_event = app.deploy_events.create(:deploy_id => deploy.id)
@tylerflint
tylerflint / gist:1103230
Created July 24, 2011 23:21
transaction view json
{
"id":"4e2ca7bf8065016118000062",
"state":"incomplete",
"status":"paused",
"description":"launching new app",
"percent_complete":66,
"progress":[
{
"description":"one",
"state":"complete",
@tylerflint
tylerflint / gist:1079138
Created July 12, 2011 22:26
yum groups
Available Groups:
Administration Tools
Authoring and Publishing
Base
Beagle
Cluster Storage
Clustering
DNS Name Server
Development Libraries
Development Tools
@tylerflint
tylerflint / gist:1049968
Created June 27, 2011 22:03
symphony-cms .box rewrites
permissions:
"^manifest/(.*)$":
- all: deny
"^workspace/utilities/(.*).xsl$":
- all: deny
"^workspace/pages/(.*).xsl$":
- all: deny
"^(.*).sql$"
- all: deny
"(^|/)\."
@tylerflint
tylerflint / .htaccess
Created June 27, 2011 21:52
symphony-cms .htaccess
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /symphony-cms/
### SECURITY - Protect crucial files
RewriteRule ^manifest/(.*)$ - [F]
RewriteRule ^workspace/utilities/(.*).xsl$ - [F]
RewriteRule ^workspace/pages/(.*).xsl$ - [F]
RewriteRule ^(.*).sql$ - [F]
@tylerflint
tylerflint / gist:1049874
Created June 27, 2011 21:25
simple rewrite
# simple
url_rewrites:
### URL Correction
- "^/(symphony/)?index.php(/.*/?) /$1$2"
### SIMPLE ADMIN REWRITE
- "^/symphony\/?$ /?mode=administration&$query_string last"
@tylerflint
tylerflint / gist:1015347
Created June 8, 2011 20:38
gemcutter authentication
require 'rubygems/remote_fetcher'
module Gem::GemcutterUtilities
OptionParser.accept Symbol do |value|
value.to_sym
end
##
# Add the --key option