- Get JDK for OS X from official site: http://www.oracle.com/technetwork/java/javase/downloads
- install it
- launch prefencess
/Applications/Utilities/Java\ Preferences.app/Contents/MacOS/Java\ Preferences
enable checkbox Java SE 7
map $ssl_client_s_dn $ssl_client_s_dn_cn { | |
default ""; | |
~/CN=(?<CN>[^/]+) $CN; | |
} | |
server { | |
listen 80; | |
listen [::]:80; | |
listen 443 ssl; |
/Applications/Utilities/Java\ Preferences.app/Contents/MacOS/Java\ Preferences
enable checkbox Java SE 7
#aptitude install $(< file.txt) | |
python-virtualenv | |
virtualenvwrapper | |
python-dev | |
libevent-dev | |
tmux | |
lsof | |
vim | |
git-core | |
htop |
#!/bin/bash | |
# WARNING: Don't use this in production since all passwords are kept at their default. | |
# mongodb | |
apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 | |
echo -e "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen\n" > /etc/apt/sources.list.d/mongodb-10gen.list | |
apt-get update | |
apt-get install -y mongodb-10gen |
import subprocess | |
import myproject | |
from flaskext.script import Manager | |
manager = Manager(app) | |
@manager.command | |
def dbshell(): | |
db = myproject.get_db() |
# -*- coding: utf-8 -*- | |
import os | |
from flask import Flask | |
from flask_heroku import Heroku | |
from flask_sslify import SSLify | |
from raven.contrib.flask import Sentry | |
from flask.ext.celery import Celery |
# remove unnecessary | |
#------------------- | |
sudo /etc/init.d/apparmor stop | |
sudo update-rc.d -f apparmor remove | |
sudo mv /etc/motd /etc/motd_orig | |
# upgrade packets | |
sudo aptitude update && aptitude upgrade |
# @see /usr/include/asm-generic/errno-base.h | |
#ifndef _ASM_GENERIC_ERRNO_BASE_H | |
#define _ASM_GENERIC_ERRNO_BASE_H | |
#define EPERM 1 /* Operation not permitted */ | |
#define ENOENT 2 /* No such file or directory */ | |
#define ESRCH 3 /* No such process */ | |
#define EINTR 4 /* Interrupted system call */ | |
#define EIO 5 /* I/O error */ |
# remove apparmor | |
sudo /etc/init.d/apparmor kill | |
sudo update-rc.d -f apparmor remove | |
# add aptitude and upgrade packets | |
sudo apt-get install aptitude | |
sudo aptitude update; aptitude upgrade | |
sudo aptitude install openssh-server |
#---------------------- | |
# Ubuntu 8.04 LTS/hardy | |
#---------------------- | |
# to build python from source | |
# apt-get install zlib1g-dev | |
# to build extensions | |
apt-get install build-essential | |
apt-get install python-dev |