Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)| /* | |
| var Trait1 = { | |
| method1() {} | |
| }; | |
| var Trait2 = { | |
| method2() {} | |
| }; | |
| var Trait3 = mixin({ |
| import base64 | |
| import hashlib | |
| from Crypto import Random | |
| from Crypto.Cipher import AES | |
| """ | |
| Cryptography helpers, used for cookie encryption by AES(Rijmen-128) encryption algorithm | |
| """ | |
| var nconf = require('nconf'); | |
| var yaml = require('js-yaml'); | |
| var app_config = __dirname + '../config/application.yml'; | |
| // load cmd line args and environment vars | |
| nconf.argv().env(); | |
| // load a yaml file using a custom formatter | |
| nconf.file({ |
| ## Download | |
| Download and install the agent(s). These examples are on a standard 64-bit Amazon EC2 Linux AMI. | |
| *MMS* | |
| ``` | |
| wget [path to mms agent download, specified by 10gen] | |
| sudo tar xvzf 10gen-mms-agent-[CUSTOM_NAME].tar.gz -C /opt | |
| ``` |
| /* | |
| * Oscilloscope | |
| * Gives a visual rendering of analog pin 0 in realtime. | |
| * | |
| * This project is part of Accrochages | |
| * See http://accrochages.drone.ws | |
| * | |
| * (c) 2008 Sofian Audry (info@sofianaudry.com) | |
| * | |
| * This program is free software: you can redistribute it and/or modify |
Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)| // Just do this : (and include backbone.js) | |
| var Kind = function() { | |
| this.initialize && this.initialize.apply(this, arguments); | |
| }; | |
| Kind.extend = Backbone.Model.extend | |
| //Simpler | |
| var Thing = function() {}; | |
| Thing.extend = Backbone.Model.extend |
| set :application, "appname" | |
| set :deploy_to, "/var/www" | |
| set :scm, :git | |
| set :repository, "git@github.com:user/app.git" | |
| default_run_options[:pty] = true | |
| set :user, "www-data" | |
| set :domain, "foo.tld" | |
| set :normalize_asset_timestamps, false |
| =begin | |
| Capistrano deployment email notifier for Rails 3 | |
| Do you need to send email notifications after application deployments? | |
| Christopher Sexton developed a Simple Capistrano email notifier for rails. You can find details at http://www.codeography.com/2010/03/24/simple-capistrano-email-notifier-for-rails.html. | |
| Here is Rails 3 port of the notifier. | |
| The notifier sends an email after application deployment has been completed. |
| #! /bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: supervisord | |
| # Required-Start: $remote_fs | |
| # Required-Stop: $remote_fs | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Example initscript | |
| # Description: This file should be used to construct scripts to be | |
| # placed in /etc/init.d. |