Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
# pip and virtualenv are installed upto here | |
# cd to python one directory before project folder | |
virtualenv ENV | |
source envnmnt/bin/activate | |
cd project | |
pip install -r requirements.txt | |
./manage.py syncdb | |
./manage.py migrate | |
./manage.py runserver |
# Only for Mac OS X, where .bashrc is otherwise ignored | |
if [ -f ~/.bashrc ]; then | |
source ~/.bashrc | |
fi | |
# MacPorts | |
export PATH=/opt/local/bin:/opt/local/sbin:$PATH | |
export MANPATH=/opt/local/share/man:$MANPATH |
Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
You need to create a CORS configuration manifest, for the bucket you wish to grant access to. Amongst other things, the manifest indicates:
# .irbrc to log goodies like SQL/Mongo queries to $stdout if in Rails 3 console | |
if defined?(Rails) && Rails.respond_to?(:logger) | |
require 'logger' | |
Rails.logger = Logger.new($stdout) | |
if defined?(Mongoid) | |
Mongoid.logger = Rails.logger | |
end | |
end |
class String | |
def black; "\033[30m#{self}\033[0m" end | |
def red; "\033[31m#{self}\033[0m" end | |
def green; "\033[32m#{self}\033[0m" end | |
def brown; "\033[33m#{self}\033[0m" end | |
def blue; "\033[34m#{self}\033[0m" end | |
def magenta; "\033[35m#{self}\033[0m" end | |
def cyan; "\033[36m#{self}\033[0m" end | |
def gray; "\033[37m#{self}\033[0m" end | |
def bg_black; "\033[40m#{self}\0330m" end |
User.where(["active = 1 AND id NOT IN (?)", [3,9]]) |
edit the /usr/local/Cellar/mysql/5.6.12/bin/mysql_config | |
The original: | |
cflags="-I$pkgincludedir -Wall -Wno-null-conversion -Wno-unused-private-field -Os -g -fno-strict-aliasing -DDBUG_OFF -arch x86_64 " #note: end space! | |
cxxflags="-I$pkgincludedir -Wall -Wno-null-conversion -Wno-unused-private-field -Os -g -fno-strict-aliasing -DDBUG_OFF -arch x86_64 " #note: end space! | |
the changed version: | |
cflags="-I$pkgincludedir -Wall -Os -g -fno-strict-aliasing -DDBUG_OFF -arch x86_64 " #note: end space! | |
cxxflags="-I$pkgincludedir -Wall -Os -g -fno-strict-aliasing -DDBUG_OFF -arch x86_64 " #note: end space! |
.pagination a, .pagination span.current, .pagination span.gap { | |
float: left; | |
padding: 0 14px; | |
line-height: 38px; | |
text-decoration: none; | |
background-color: white; | |
border: 1px solid #DDD; | |
border-left-width: 0; | |
} |