Skip to content

Instantly share code, notes, and snippets.

View SeanOC's full-sized avatar

Sean O'Connor SeanOC

View GitHub Profile
=============================================================
Installing Multicore Solr 1.3.0 / Tomcat 6.0.X on Ubuntu 8.10
=============================================================
Install OpenJDK (comes from universe)::
aptitude install openjdk-6-jre
Download Tomcat 6.X and move it in place::
#!/usr/bin/env python
import twilio
import time
# Setup twilio info
API_VERSION = '2008-08-01'
ACCOUNT_SID = 'REPLACE_ME'
ACCOUNT_TOKEN = 'REPLACE_ME'
account = twilio.Account(ACCOUNT_SID, ACCOUNT_TOKEN)
@SeanOC
SeanOC / chef-fabfile.py
Created December 17, 2010 17:55
A fab script for easily running "chef-client" across a cluster of servers
'''
Fabfile for running chef-client across a cluster of servers.
EC2 credentials are automatically read from the knife config file and servers
are discovered via the ec2 API.
Put this file in the root of your chef repo and tehn run ``fab ec2_instances run_chef`` to run "chef-client" on all of your EC2
servers or run ``fab ec2_instances:group_id=web run_chef`` to run
"chef-client" on just the servers in a given security group.
/* Clear Floated Elements
----------------------------------------------------------------------------------------------------*/
.clear {
clear: both;
display: block;
overflow: hidden;
visibility: hidden;
width: 0;
Your OS X is ripe for brewing.
Any troubles you may be experiencing are likely purely psychosomatic.
~ » which perl ~
/usr/bin/perl
~ » perl -v ~
This is perl, v5.10.0 built for darwin-thread-multi-2level
(with 2 registered patches, see perl -V for more detail)
Copyright 1987-2007, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
ohai do
action = :reload
end
@SeanOC
SeanOC / gist:991963
Created May 25, 2011 20:59
CG Delete All error
SharpyClient: DEBUG: Requesting: https://cheddargetter.com/xml/plans/get/productCode/TEST-SONGTRUST/code/BASIC_MONTHLY
SharpyClient: DEBUG: Request Method: GET
SharpyClient: DEBUG: Request Body(Data): None
SharpyClient: DEBUG: Request Body(Raw): None
SharpyClient: DEBUG: Response Status: 200
SharpyClient: DEBUG: Response Content: <?xml version="1.0" encoding="UTF-8"?>
<plans>
<plan id="6a1642de-7146-102e-b098-40402145ee8b" code="BASIC_MONTHLY">
<name>Standard Monthly</name>
<displayName>Standard Monthly • 10.00 / Month</displayName>
LOGGING = {
'version': 1,
'formatters': {
'simple': {
'format': "%(levelname)s %(message)s",
},
},
'handlers': {
'console': {
'level': 'DEBUG',
[program:focuslab_worker]
command=/srv/charlotte/current/env/bin/python /srv/charlotte/current/src/manage.py celeryd -Q core,focuslab -E --settings=focuslab_settings
directory=/srv/charlotte/current/src
autostart=true
autorestart=true
redirect_stderr=true
stdout_logfile=/var/log/celery/supervisord-celeryd-focuslab.log
user=www-data
stopwaitsecs=10