These instructions assume you are using Minishift 1.0.1 or newer as your OpenShift installation.
You'll also need a wsk binary in your $PATH to interact with
OpenWhisk after it's deployed. Download the latest version for your OS
| version: '2' | |
| volumes: | |
| db-data: {} | |
| services: | |
| konga: | |
| image: pantsel/konga | |
| environment: | |
| NODE_ENV: production | |
| stdin_open: true | |
| network_mode: bridge |
These instructions assume you are using Minishift 1.0.1 or newer as your OpenShift installation.
You'll also need a wsk binary in your $PATH to interact with
OpenWhisk after it's deployed. Download the latest version for your OS
| # /etc/monit/conf.d/nginx | |
| check program nginx-http with path "/etc/monit/bin/nginx-check.sh" | |
| group www | |
| group nginx | |
| start program = "/bin/true" # Prevent duplicate service starts. | |
| stop program = "/usr/sbin/service nginx stop" # We don't care if it tries to kill nginx multiple times. :) | |
| if status != 0 then restart # or alert, or whatever | |
| depends on nginx-pid # Don't even try to run until the pidfile is there. | |
| check process nginx-pid with pidfile "/run/nginx.pid" |
| # Node-WebKit CheatSheet | |
| # Download: https://github.com/rogerwang/node-webkit#downloads | |
| # Old Versions: https://github.com/rogerwang/node-webkit/wiki/Downloads-of-old-versions | |
| # Wiki: https://github.com/rogerwang/node-webkit/wiki | |
| # How: https://github.com/rogerwang/node-webkit/wiki/How-node.js-is-integrated-with-chromium | |
| # 1. Run your application. | |
| # https://github.com/rogerwang/node-webkit/wiki/How-to-run-apps |
| /* | |
| Poor Man's Telnet - a tiny Galileo/Arduino sketch to talk to the | |
| Galileo underlying Linux command line. | |
| By Mikal Hart | |
| This library is free software; you can redistribute it and/or | |
| modify it under the terms of the GNU Lesser General Public | |
| License as published by the Free Software Foundation; either | |
| version 2.1 of the License, or (at your option) any later version. |
| #!/usr/bin/perl | |
| use Mysql; | |
| use strict; | |
| use vars qw($school_name); | |
| use vars qw($pass); | |
| require "./cgi-lib.pl"; |
| import urllib | |
| import urlparse | |
| import collections | |
| import httplib | |
| def TestPayment(): | |
| #Set our headers | |
| headers = { | |
| 'X-PAYPAL-SECURITY-USERID': 'jb-us-seller_api1.paypal.com', | |
| 'X-PAYPAL-SECURITY-PASSWORD': 'WX4WTU3S8MY44S7F', |
| - (void)viewDidLoad | |
| { | |
| [super viewDidLoad]; | |
| UIScrollView* sv = nil; | |
| for(UIView* v in self.webView.subviews){ | |
| if([v isKindOfClass:[UIScrollView class] ]){ | |
| sv = (UIScrollView*) v; | |
| sv.bounces = NO; | |
| } | |
| } |
| /* Kosso : March 12th 2011 | |
| This the only way I managed to do this without the app crashing on resume. | |
| Done slightly differently to the KS example, since they unregister the service and | |
| do not use a setInterval timer. | |
| */ | |
| //############ in app.js : | |
| // test for iOS 4+ |