Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
| # Clone rbenv into ~/.rbenv | |
| git clone git@github.com:sstephenson/rbenv.git ~/.rbenv | |
| # Add rbenv to your PATH | |
| # NOTE: rbenv is *NOT* compatible with rvm, so you'll need to | |
| # remove rvm from your profile if it's present. (This is because | |
| # rvm overrides the `gem` command.) | |
| echo 'export PATH="$HOME/.rbenv/bin:$HOME/.rbenv/shims:$PATH"' >> ~/.bash_profile | |
| exec $SHELL |
| #!/bin/bash | |
| # | |
| # This script installs and configures couchdb on a fresh Amazon Linux AMI instance. | |
| # | |
| # Must be run with root privileges | |
| # Tested with Amazon Linux AMI release 2011.02.1.1 (ami-8c1fece5) | |
| # | |
| export BUILD_DIR="$PWD" |
Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project name="${projectName}" basedir="." default="build:main"> | |
| <!-- Properties --> | |
| <property name="dir.app" value="${project.basedir}/app" /> | |
| <property name="dir.src" value="${project.basedir}/src" /> | |
| <property name="dir.build" value="${project.basedir}/app/build" /> | |
| <property name="dir.docs" value="${dir.build}/docs" /> | |
| <property name="dir.docs.phpdoc" value="${dir.docs}/phpdoc" /> | |
| <property name="dir.docs.docblox" value="${dir.docs}/docblox" /> | |
| <property name="dir.reports" value="${dir.build}/logs" /> |
| #!/bin/bash | |
| # | |
| # initd-example Node init.d | |
| # | |
| # chkconfig: 345 80 20 | |
| # description: Node init.d example | |
| # processname: node | |
| # pidfile: /var/run/initd-example.pid | |
| # logfile: /var/log/initd-example.log | |
| # |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 @louis_remi <http://louisremi.com> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
| ### Testing if the client is a mobile or a desktop. | |
| ### The selection is based on the usual UA strings for desktop browsers. | |
| ## Testing a user agent using a method that reverts the logic of the | |
| ## UA detection. Inspired by notnotmobile.appspot.com. | |
| map $http_user_agent $is_desktop { | |
| default 0; | |
| ~*linux.*android|windows\s+(?:ce|phone) 0; # exceptions to the rule | |
| ~*spider|crawl|slurp|bot 1; # bots | |
| ~*windows|linux|os\s+x\s*[\d\._]+|solaris|bsd 1; # OSes |
| Have you ever left your terminal logged in, only to find when you came | |
| back to it that a (supposed) friend had typed "rm -rf ~/*" and was | |
| hovering over the keyboard with threats along the lines of "lend me a | |
| fiver 'til Thursday, or I hit return"? Undoubtedly the person in | |
| question would not have had the nerve to inflict such a trauma upon | |
| you, and was doing it in jest. So you've probably never experienced the | |
| worst of such disasters.... | |
| It was a quiet Wednesday afternoon. Wednesday, 1st October, 15:15 | |
| BST, to be precise, when Peter, an office-mate of mine, leaned away |
| # JS files | |
| JS_FINAL = js/project-name-all.js | |
| JS_TARGETS = js/file1.js \ | |
| js/file2.js \ | |
| js/file3.js | |
| # CSS files | |
| CSS_FINAL = css/project-name-all.css | |
| STYLUS_TARGETS = css/file1.styl \ |
| # Update, upgrade and install development tools: | |
| apt-get update | |
| apt-get -y upgrade | |
| apt-get -y install build-essential git-core curl libssl-dev \ | |
| libreadline5 libreadline5-dev \ | |
| zlib1g zlib1g-dev \ | |
| libmysqlclient-dev \ | |
| libcurl4-openssl-dev \ | |
| libxslt-dev libxml2-dev |