Skip to content

Instantly share code, notes, and snippets.

View SeanOC's full-sized avatar

Sean O'Connor SeanOC

View GitHub Profile
LOGGING = {
'version': 1,
'formatters': {
'simple': {
'format': "%(levelname)s %(message)s",
},
},
'handlers': {
'console': {
'level': 'DEBUG',
@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>
ohai do
action = :reload
end
~ » 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
Your OS X is ripe for brewing.
Any troubles you may be experiencing are likely purely psychosomatic.
/* Clear Floated Elements
----------------------------------------------------------------------------------------------------*/
.clear {
clear: both;
display: block;
overflow: hidden;
visibility: hidden;
width: 0;
@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.
#!/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)
=============================================================
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::
### Keybase proof
I hereby claim:
* I am SeanOC on github.
* I am seanoc (https://keybase.io/seanoc) on keybase.
* I have a public key whose fingerprint is BAC9 770C B661 7F4F 4247 2C0B 5EEB EE58 80A1 95F2
To claim this, I am signing this object: