Requirements:
If you're on OSX you're probably best off using Homebrew to install this stuff:
$ brew install node mongodb
Usage:
| #! /bin/sh | |
| # On alternate invocations, this script | |
| # saves the path of the source file currently open in Xcode | |
| # and restores the file at that path in Xcode. | |
| # | |
| # By setting Xcode (in Behaviors) to run this script when "Run Starts" | |
| # and when "Run Completes", you can prevent it from switching to main.m | |
| # when a run finishes. | |
| # See http://stackoverflow.com/questions/7682277/xcode-4-2-jumps-to-main-m-every-time-after-stopping-simulator |
| #!/bin/sh | |
| # Create a RAM disk with same perms as mountpoint | |
| # Script based on http://itux.idev.pro/2012/04/iservice-speed-up-your-xcode-%D0%BD%D0%B5%D0%BA%D0%BE%D1%82%D0%BE%D1%80%D1%8B%D0%B5-%D1%81%D0%BF%D0%BE%D1%81%D0%BE%D0%B1%D1%8B/ with some additions | |
| # Usage: sudo ./xcode_ramdisk.sh start | |
| USERNAME=$(logname) | |
| TMP_DIR="/private/tmp" | |
| RUN_DIR="/var/run" | |
| SYS_CACHES_DIR="/Library/Caches" |
| #!/bin/bash | |
| # +----------------------------------------------------------------------+ | |
| # | | | |
| # | Mount the root file system / with the option noatime | | |
| # | | | |
| # | By Philipp Klaus <http://blog.philippklaus.de> | | |
| # | Tip found on <http://blogs.nullvision.com/?p=275> | | |
| # | | | |
| # +----------------------------------------------------------------------+ |
| #include <dispatch/dispatch.h> | |
| typedef void (^MHChannelsBlock)(id sender, NSDictionary *dictionary); | |
| /*! | |
| * A "channel" is like a private NSNotificationCenter between just two objects | |
| * (although more are possible). | |
| * | |
| * Instead of making your objects, such as two view controllers, communicate |
| #! /path/to/node | |
| var haibu = require('/path/to/haibu'); | |
| var client = new haibu.drone.Client(); | |
| process.stdin.resume(); | |
| process.stdin.on('data', function(data){ | |
| var package = JSON.parse(data.toString()); |
| BOOL PSPDFIsUIKitFlatMode(void) { | |
| static BOOL isUIKitFlatMode = NO; | |
| static dispatch_once_t onceToken; | |
| dispatch_once(&onceToken, ^{ | |
| if (kCFCoreFoundationVersionNumber >= kCFCoreFoundationVersionNumber_iOS_7_0) { | |
| PSPDFAssertIfNotMainThread(); | |
| // If your app is running in legacy mode, tintColor will be nil - else it must be set to some color. | |
| if (UIApplication.sharedApplication.keyWindow) { | |
| isUIKitFlatMode = [UIApplication.sharedApplication.keyWindow performSelector:@selector(tintColor)] != nil; |
| # Ubuntu upstart file at /etc/init/mongodb.conf | |
| pre-start script | |
| mkdir -p /var/lib/mongodb/ | |
| mkdir -p /var/log/mongodb/ | |
| end script | |
| start on runlevel [2345] | |
| stop on runlevel [06] |
| MongoDB upstart scripts for Ubuntu. | |
| Run following commands after installing upstart scripts: | |
| ln -s /lib/init/upstart-job /etc/init.d/mongoconf | |
| ln -s /lib/init/upstart-job /etc/init.d/mongodb | |
| ln -s /lib/init/upstart-job /etc/init.d/mongos | |
| To start services use: |
| ##----description "MongoDB Monitoring Service (MMS) Agent" | |
| ##Put that in /etc/init/mms-agent.conf, and you should be able to do normal things like: | |
| ##service mms-agent start | |
| ##service mms-agent stop | |
| ##service mms-agent status | |
| ##maybe you'll need | |
| ##ln -s /lib/init/upstart-job /etc/init.d/mms-agent | |
| ####--------------------------- |