most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat| ====================================================== | |
| Setting up Django using Apache/mod_wsgi on Ubuntu 8.10 | |
| ====================================================== | |
| This article will cover setting up Django using Apache/mod_wsgi on Ubuntu | |
| 8.10. The article is targeted at a production environment, but keep in mind | |
| this is a more generalized environment. You may have different requirements, | |
| but this article should at least provide the stepping stones. | |
| The article will use distribution packages where nesscary. As of 8.10 the |
| """ | |
| This fabric file makes setting up and deploying a django application much | |
| easier, but it does make a few assumptions. Namely that you're using Git, | |
| Apache and mod_wsgi and your using Debian or Ubuntu. Also you should have | |
| Django installed on your local machine and SSH installed on both the local | |
| machine and any servers you want to deploy to. | |
| _note that I've used the name project_name throughout this example. Replace | |
| this with whatever your project is called._ |
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |
| SELECT DISTINCT (round(timestamp / 86400000.0 - 0.5) * 86400000.0) as time FROM timeline ORDER BY timestamp ASC | |
| --in AIR, set itemClass to Date | |
| --the returned dates are offset with the computer's timezone, so you need to reverse it: date.time += date.timezoneOffset * 60000; |
| parse_git_branch() { | |
| ref=$(git symbolic-ref -q HEAD 2> /dev/null) || return | |
| printf "${1:-(%s)}" "${ref#refs/heads/}" | |
| } | |
| parse_svn_revision() { | |
| local DIRTY REV=$(svn info 2>/dev/null | grep Revision | sed -e 's/Revision: //') | |
| [ "$REV" ] || return | |
| [ "$(svn st)" ] && DIRTY=' *' | |
| echo "(r$REV$DIRTY)" |
| about | |
| account | |
| add | |
| admin | |
| api | |
| app | |
| apps | |
| archive | |
| archives | |
| auth |
| General | |
| 1. Site uses a cache buster for expiring .js, .css, and images | |
| 2. JavaScript and CSS is minified and concatenated into logical groupings | |
| 3. Images have been optimized by ImageOptim (http://imageoptim.com/) | |
| Markup | |
| 1. Code does not contain inline JavaScript event listeners |