I've been trying to understand how to setup systems from
the ground up on Ubuntu. I just installed redis onto
the box and here's how I did it and some things to look
out for.
To install:
| var parser = document.createElement('a'); | |
| parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
| parser.protocol; // => "http:" | |
| parser.hostname; // => "example.com" | |
| parser.port; // => "3000" | |
| parser.pathname; // => "/pathname/" | |
| parser.search; // => "?search=test" | |
| parser.hash; // => "#hash" | |
| parser.host; // => "example.com:3000" |
| # This module intentionally minimizes dependencies to mitigate breakage risk. | |
| # Subset of Syslog's numerical severity codes (RFC 3164, Table 2) | |
| SEVERITY = | |
| ERROR: 3 | |
| WARN: 4 | |
| INFO: 6 | |
| DEBUG: 7 | |
| # Configuration |
| document._write = document.write; | |
| document.write = function(str){ | |
| if (str.indexOf('<div id=\"gist-') != 0) { | |
| if(str.indexOf('https://gist.github.com/stylesheets/gist/embed.css') == -1) { | |
| // if you got this far it's not a github document.write call | |
| document._write(str); | |
| } | |
| return; | |
| } |
| var Person = function(name) { | |
| this.name = name | |
| } | |
| var GreeterMixin = function() { | |
| this.greet = function(name) { | |
| return "Hello " + name + ", I am " + this.name | |
| } | |
| } |
| DEV_PROVISIONING_UUID = 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX' | |
| DEV_SIGN = 'Your Signing Name' | |
| ADHOC_PROVISIONING_UUID = 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX' | |
| ADHOC_SIGN = 'Your Signing Name' | |
| DEV_APP_DEVICE = 'ipad' # or iphone, universal | |
| IPHONE_SDK_VERSION = '5.0' |
| // | |
| // TransitionController.h | |
| // | |
| // Created by XJones on 11/25/11. | |
| // | |
| #import <UIKit/UIKit.h> | |
| @interface TransitionController : UIViewController |
| #!upstart | |
| description "clipboard.com app server" | |
| author "Ken Perkins & Mark Dawson (c) 2011" | |
| env NAME=clipboard-app | |
| env APP=clipboard-app.js | |
| env LOGFILE=/home/clipboard/clipboard-app.log | |
| env ERRORFILE=/home/clipboard/clipboard-app-error.log | |
| env HOME="/home/clipboard/node/apps" |
| function consumer() { | |
| return new oauth.OAuth( | |
| "https://twitter.com/oauth/request_token", | |
| "https://twitter.com/oauth/access_token", | |
| keys.twitterConsumerKey, | |
| keys.twitterConsumerSecret, | |
| "1.0A", | |
| "http://localhost:3000/sessions/callback", | |
| "HMAC-SHA1" | |
| ); |
| # MySQL. Versions 4.1 and 5.0 are recommended. | |
| # | |
| # Install the MySQL driver: | |
| # gem install mysql2 | |
| # | |
| # And be sure to use new-style password hashing: | |
| # http://dev.mysql.com/doc/refman/5.0/en/old-client.html | |
| development: | |
| adapter: mysql2 | |
| encoding: utf8 |