Skip to content

Instantly share code, notes, and snippets.

@didip
didip / gist:959988
Created May 6, 2011 23:18
Contrib face
/*
As of version 1.1.2, Propane will load and execute the contents of
~Library/Application Support/Propane/unsupported/caveatPatchor.js
immediately following the execution of its own enhancer.js file.
You can use this mechanism to add your own customizations to Campfire
in Propane.
Below you'll find two customization examples.
@didip
didip / contrib.js
Created May 6, 2011 23:19
Contrib faces
/*
As of version 1.1.2, Propane will load and execute the contents of
~Library/Application Support/Propane/unsupported/caveatPatchor.js
immediately following the execution of its own enhancer.js file.
You can use this mechanism to add your own customizations to Campfire
in Propane.
Below you'll find two customization examples.
undefined method `specifications' for "/www/goldstar/tmp/isolate/ruby-1.8":String (NoMethodError)
/Users/didip/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems.rb:425:in `each_load_path'
/Users/didip/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems.rb:423:in `each'
/Users/didip/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems.rb:423:in `each_load_path'
/Users/didip/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems.rb:587:in `_deprecated_latest_load_paths'
/Users/didip/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems.rb:586:in `each'
/Users/didip/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems.rb:586:in `_deprecated_latest_load_paths'
/Users/didip/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/deprecate.rb:62:in `send'
/Users/didip/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/deprecate.rb:62:in `latest_load_paths'
/www/goldstar/tmp/isolate/ruby-1.8/gems/spork-0.8.5/bin/../lib/spork.rb:112:in `other_spo
@didip
didip / faster-ruby-192.sh
Created July 9, 2011 07:59
Faster Ruby 1.9.2
curl https://raw.github.com/gist/1008945/7532898172cd9f03b4c0d0db145bc2440dcbb2f6/load.patch > /tmp/load.patch
rvm get head # always good to make sure you're up to date with RVM
rvm reload
rvm install ruby-1.9.2-p180 --patch /tmp/load.patch -n patched
rvm use ruby-1.9.2-p180-patched
@didip
didip / Folder Preferences
Created July 9, 2011 16:16 — forked from chrisyour/Folder Preferences
Show hidden files and hidden folders (except .git) in your TextMate project drawer
# Want to show hidden files and folders in your TextMate project drawer? Simple, just modify the file and folder patterns in TextMate's preferences.
# Instructions:
# Go to TextMate > Preferences...
# Click Advanced
# Select Folder References
# Replace the following:
# File Pattern
@didip
didip / tornado-pypy-env-setup.sh
Created August 1, 2011 21:20
Downloading and Configuring PyPy under virtualenv
#!/bin/bash
#
# Convenience script for downloading and configuring pypy under virtualenv
#
# Dependencies:
# * pip install virtualenv
# Configure these variables to your liking...
project_name="my_tornado_project"
@didip
didip / tornado.database-error.pypy.txt
Created August 2, 2011 15:29
tornado.database error when running inside PyPy
Traceback (most recent call last):
File "app_main.py", line 53, in run_toplevel
File "./app.py", line 5, in <module>
import tornado.database
File "/path/to/app/pypy/pypy-env/site-packages/tornado/database.py", line 183, in <module>
CONVERSIONS = copy.deepcopy(MySQLdb.converters.conversions)
File "/path/to/app/pypy/pypy-c-jit-43780-b590cf6de419-osx64/lib-python/2.7/copy.py", line 163, in deepcopy
y = copier(x, memo)
File "/path/to/app/pypy/pypy-c-jit-43780-b590cf6de419-osx64/lib-python/2.7/copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
@didip
didip / pypy-mysqldb-segfault.txt
Created August 2, 2011 18:55
PyPy MySQLdb segmentation fault report
Process: pypy [87651]
Path: /path/to/app/pypy/pypy-env/bin/pypy
Identifier: pypy
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: bash [83336]
Date/Time: 2011-08-02 11:57:14.213 -0700
OS Version: Mac OS X 10.6.8 (10K540)
Report Version: 6
# PyPy version: 1.6
# OSX Snow Leopard
# Virtualenv: 1.6.4
# Problem: os.py is actually located under pypy-env/lib-python/modified-2.7
Running virtualenv with interpreter /path/to/pypy/pypy-1.6/bin/pypy
Traceback (most recent call last):
File "app_main.py", line 53, in run_toplevel
File "/Library/Python/2.6/site-packages/virtualenv.py", line 1952, in <module>
/usr/bin/easy_install-2.6:7: UserWarning: Module pkg_resources was already imported from /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.pyc, but /Library/Python/2.6/site-packages is being added to sys.path
from pkg_resources import load_entry_point