##pull wnameless/oracle-xe-11g
$ sudo docker pull wnameless/oracle-xe-11g
##start the wnameless/oracle-xe-11g
$ sudo docker run -d -p 49160:22 -p 49161:1521 wnameless/oracle-xe-11g
##pull wnameless/oracle-xe-11g
$ sudo docker pull wnameless/oracle-xe-11g
##start the wnameless/oracle-xe-11g
$ sudo docker run -d -p 49160:22 -p 49161:1521 wnameless/oracle-xe-11g
To set it up:
gulp-config.json.example
to gulp-config.json
To deploy:
Liquid Fill Gauge v1.1 - 7/14/2015
Changes:
Configurable features include:
netstat -lnt | grep LISTEN | awk '{ print ( $4 ) }' | awk 'BEGIN{FS=":"} { print $(NF) }' | sort -n | uniq |
/* | |
The online documents were not very clear. | |
http://pm2.keymetrics.io/docs/usage/pm2-api/#send-message-to-process | |
https://stackoverflow.com/a/35504369/3386260 | |
https://github.com/pm2-hive/pm2-hive.github.io/pull/117 | |
*/ | |
// Sender | |
// The sender can run inside or outside of pm2 | |
var pm2 = require('pm2'); |
Let's say you have a SysV Init Script
named foo
Copy the file to /etc/init.d/foo
Enable the SysV service: chkconfig --add foo
Enable the SysV service: chkconfig foo on
Start the service: service foo start
. After this, systemd-sysv-generator will generate this file /run/systemd/generator.late/foo.service
, copy this file to /etc/systemd/system
by running: cp /run/systemd/generator.late/foo.service /etc/systemd/system/foo.service
Edit /etc/systemd/system/foo.service
by running systemctl edit foo.service
, add in the following line to foo.servie
(this makes the service installable)
[Install]
Copyright (c) 2014 Ross Kirsling | |
Permission is hereby granted, free of charge, to any person obtaining | |
a copy of this software and associated documentation files (the | |
"Software"), to deal in the Software without restriction, including | |
without limitation the rights to use, copy, modify, merge, publish, | |
distribute, sublicense, and/or sell copies of the Software, and to | |
permit persons to whom the Software is furnished to do so, subject to | |
the following conditions: |
# Use sudo before each command if not logged in as root | |
# | |
# Install nginx https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-16-04 | |
apt-get update | |
apt-get install nginx | |
# Check that HTTP port 80 and HTTPS port 443 are open | |
ufw app status | |
# Make sure nginx starts on boot |
# https://github.com/salsita/node-pg-migrate | |
npm install node-pg-migrate |
/* | |
* config/bootstrap.js | |
* Example of how to redirect all http request to https | |
* See http://jsbot.io/node/http-and-https-handle-with-sailsjs | |
* | |
*/ | |
module.exports.bootstrap = function(cb) { | |
var express = require("express") | |
var app = express(); |