This file contains hidden or 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/bash | |
# To run do: | |
# wget https://gist.github.com/raw/850359/ea02e22f021b7ebf2f602811461677ab4a3f2a9e/bootstrap.sh && chmod +x bootstrap.sh && ./bootstrap.sh && source ~/.profile | |
# | |
# Based on Amazon EC2 AMI ID ami-ccf405a5 Ubuntu Server 10.10 | |
# This script will: | |
# * install/config apache2 | |
# * install mod_wsgi | |
# * install/config nginx |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd"> | |
<Configure id="Server" class="org.mortbay.jetty.Server"> | |
<!-- =========================================================== --> | |
<!-- Server Thread Pool --> | |
<!-- =========================================================== --> | |
<Set name="ThreadPool"> | |
<New class="org.mortbay.thread.BoundedThreadPool"> |
This file contains hidden or 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
[alias] | |
st = status | |
ci = commit | |
co = checkout | |
br = branch | |
ls = branch | |
s = status | |
a = add | |
b = branch | |
d = diff |
This file contains hidden or 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
function random_alnum($len = 8) | |
{ | |
$pool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; | |
$str = ''; | |
for ($i=0; $i < $len; $i++) | |
{ | |
$str .= substr($pool, mt_rand(0, strlen($pool) -1), 1); | |
} | |
This file contains hidden or 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
[INFO] Compiling JavaScript...one moment | |
[INFO] No JavaScript errors detected. | |
[INFO] One moment, building ... | |
[DEBUG] Detecting modules in /Users/jpadilla/Desktop/testing/modules | |
[DEBUG] Detecting modules in /Library/Application Support/Titanium/modules | |
[INFO] Titanium SDK version: 1.6.1 | |
[INFO] iPhone Device family: iphone | |
[INFO] iPhone SDK version: 4.3 | |
[INFO] iPhone simulated device: iphone | |
[DEBUG] executing command: /usr/bin/killall iPhone Simulator |
This file contains hidden or 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
<style type="text/css" media="screen"> | |
iframe { vertical-align: top; } | |
</style> | |
<!-- Facebook's Like Button --> | |
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script> | |
<fb:like href="#" layout="button_count" show_faces="false" width="90"></fb:like></span> | |
<!-- Twitter's Tweet Button --> | |
<a href="http://twitter.com/share" class="twitter-share-button" data-text="Testing..." data-count="horizontal" >Tweet</a> |
This file contains hidden or 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 file addNumbers.asm | |
# Description: This program puts the number 2 and 3 into registers | |
# $8 and $9. It adds these numbers and puts the result | |
# into register $10 | |
########################################################################## | |
.text | |
.globl main |
This file contains hidden or 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
(barrandiando)orion:barrandiando jpadilla$ pip install mysql-python | |
Downloading/unpacking mysql-python | |
Running setup.py egg_info for package mysql-python | |
warning: no files found matching 'MANIFEST' | |
warning: no files found matching 'ChangeLog' | |
warning: no files found matching 'GPL' | |
Installing collected packages: mysql-python | |
Running setup.py install for mysql-python | |
building '_mysql' extension | |
gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -I/Users/jpadilla/Developer/include -I/Users/jpadilla/Developer/include -arch i386 -arch ppc -arch x86_64 -pipe -Dversion_info=(1,2,3,'final',0) -D__version__=1.2.3 -I/Users/jpadilla/Developer/Cellar/mysql/5.1.49/include/mysql -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c _mysql.c -o build/temp.macosx-10.6-universal-2.6/_mysql.o -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL |
This file contains hidden or 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
def register(self, request, **kwargs): | |
""" | |
Create and immediately log in a new user. | |
""" | |
username, email, password, first_name, last_name = kwargs['username'], kwargs['email'], \ | |
kwargs['password1'], kwargs['first_name'], kwargs['last_name'] | |
create_user = User.objects.create_user(username, email, password) | |
create_user.first_name = first_name |
This file contains hidden or 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
node.js:134 | |
throw e; // process.nextTick error, or 'error' event on first tick | |
^ | |
Error: Uncaught, unspecified 'error' event. | |
at RedisClient.emit (events.js:47:15) | |
at Object.callback (/home/dotcloud/9f039f4/node_modules/brain/node_modules/redis/index.js:204:29) | |
at RedisClient.return_error (/home/dotcloud/9f039f4/node_modules/brain/node_modules/redis/index.js:345:25) | |
at RedisReplyParser.<anonymous> (/home/dotcloud/9f039f4/node_modules/brain/node_modules/redis/index.js:75:14) | |
at RedisReplyParser.emit (events.js:64:17) | |
at RedisReplyParser.send_error (/home/dotcloud/9f039f4/node_modules/brain/node_modules/redis/lib/parser/javascript.js:251:14) |