Let's say you want to host domains first.com and second.com.
Create folders for their files:
This config assumes that nginx is run from docker image _/nginx.
docker network create nginx
mkdir -p /etc/myproject/nginx
cd /etc/myproject/nginx
 | |
| local use_ssl, ssl = pcall(require, "ssl") | |
| local Blynk = require("blynk.socket") | |
| local Timer = require("timer") | |
| assert(#arg >= 1, "Please specify Auth Token") | |
| local auth = arg[1] |
| // Long Polling (Recommened Technique - Creates An Open Connection To Server ∴ Fast) | |
| (function poll(){ | |
| $.ajax({ url: "server", success: function(data){ | |
| //Update your dashboard gauge | |
| salesGauge.setValue(data.value); | |
| }, dataType: "json", complete: poll, timeout: 30000 }); | |
| })(); |
Sublime Text includes a command line tool, subl, to work with files on the command line. This can be used to open files and projects in Sublime Text, as well working as an EDITOR for unix tools, such as git and subversion.
Applications folderSetup
| #Start with a dist upgrade | |
| # sudo apt dist-upgrade | |
| # Get chrome | |
| wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
| sudo dpkg -i ./google-chrome*.deb | |
| sudo apt-get install -f | |
| # dev (php, docker, git, node, bower, electron, composer) | |
| # sudo apt install -y \ |
Step by step to install Scala + Play Framework in Ubuntu 14.04 with Activator.
Install Scala
sudo apt-get remove scala-library scala
wget http://www.scala-lang.org/files/archive/scala-2.11.6.deb
sudo dpkg -i scala-2.11.6.deb
sudo apt-get update
sudo apt-get install scala