npm install forever -g
forever --help
forever start app.js
| I use the first | |
| —– BEGIN LICENSE —– | |
| Michael Barnes | |
| Single User License | |
| EA7E-821385 | |
| 8A353C41 872A0D5C DF9B2950 AFF6F667 | |
| C458EA6D 8EA3C286 98D1D650 131A97AB | |
| AA919AEC EF20E143 B361B1E7 4C8B7F04 |
| # memcached requires libevent | |
| cd /usr/local/src | |
| curl -L -O http://cloud.github.com/downloads/libevent/libevent/libevent-2.0.17-stable.tar.gz | |
| tar -xvzf libevent-2.0.17-stable.tar.gz | |
| cd libevent-2.0.17-stable* | |
| ./configure | |
| make | |
| sudo make install | |
| # Compile memcached utility |
| #!/bin/bash | |
| # Thanks to: https://gist.github.com/DavidFrahm/4409d6b74e46377e7be7 | |
| # Usage: ./create_ipa.sh <Scheme Name> <Provisioning Profile> | |
| echo "Building Ionic iOS release..." | |
| ionic build --release ios | |
| pushd platforms/ios/ | |
| echo "Building archive file..." | |
| xcodebuild -scheme "$1" -configuration Release clean archive -archivePath "build/$1.xcarchive" |
| #/bin/bash | |
| set -e | |
| wget http://archive.apache.org/dist/thrift/0.8.0/thrift-0.8.0.tar.gz | |
| tar zxf thrift-0.8.0.tar.gz | |
| pushd thrift-0.8.0 | |
| wget https://issues.apache.org/jira/secure/attachment/12511532/thrift-1465_1.patch | |
| patch -p0 < thrift-1465_1.patch | |
| wget https://issues.apache.org/jira/secure/attachment/12537024/THRIFT-1474-read-exceptions-first.patch |
| <?php | |
| $m = new MongoClient(); | |
| // select a database | |
| $db = $m->seq; | |
| // select a collection (analogous to a relational database's table) | |
| $collection = $db->counters; | |
| $user_collection = $db->user; | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" | |
| "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Label</key> | |
| <string>mongodb</string> | |
| <key>ProgramArguments</key> | |
| <array> | |
| <string>/usr/local/mongodb/bin/mongod</string> |
| #!/bin/sh | |
| # | |
| # nginx Startup script for nginx | |
| # | |
| # chkconfig: - 85 15 | |
| # processname: nginx | |
| # config: /etc/nginx/nginx.conf | |
| # config: /etc/sysconfig/nginx | |
| # pidfile: /var/run/nginx.pid | |
| # description: nginx is an HTTP and reverse proxy server |
| cmake_minimum_required(VERSION 2.8) | |
| project( DisplayImage ) | |
| find_package( OpenCV REQUIRED ) | |
| add_executable( DisplayImage opencv-test-c.cpp ) | |
| target_link_libraries( DisplayImage ${OpenCV_LIBS} ) |
| #include <stdio.h> | |
| #include <opencv2/opencv.hpp> | |
| using namespace cv; | |
| int main(int argc, char** argv ) | |
| { | |
| if ( argc != 2 ) | |
| { | |
| printf("usage: DisplayImage.out <Image_Path>\n"); |