This tutorial assumes that you have access to an Ubuntu 16.04 system, configured with a non-root user with sudo privileges as described in Initial Server Setup with Ubuntu 16.04.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Run as root or sudo the commands that need it as you go. | |
| # brew version 0.9.5 | |
| # Mac OS X 10.10.1 | |
| # A little bit changed version of this: | |
| # http://stackoverflow.com/questions/19538118/osx-mavericks-bind-no-longer-installed-how-to-get-local-dns-server-working |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| # | |
| # LICENSE: MIT | |
| # | |
| # Copyright (C) 2014 Samuel Stauffer | |
| # | |
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cjson = require "cjson" | |
| ngx. req. read_body() -- explicitly read the req body | |
| local data = ngx. req. get_body_data() | |
| local jsonBody = cjson. decode(data); | |
| if data then | |
| local reqs = { } | |
| --ngx. say("body data:") | |
| for key, value in pairs(jsonBody) do | |
| --ngx.print(key) |
This article outlines the steps necessary to run a "Hello world" in node.js + express, running on a 64bit Centos 6.4 installation. We will be building the latest version of source (at this moment, v0.10.4) from the upstream provider.
As is written on their homepage, Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. This is a fast, event driven platform and server-side Javascript engine used for building web applications. DigitalOceans' droplets are a cost-effective way to install and start studying server-side Javascript and bulding or deploying web applications with Node.js.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://www.tutorialspoint.com/apache_spark/apache_spark_installation.htm | |
| #dowload file | |
| sudo wget http://d3kbcqa49mib13.cloudfront.net/spark-2.0.0-bin-hadoop2.7.tgz | |
| #move file to local | |
| sudo tar xvf spark-2.0.0-bin-hadoop2.7.tgz | |
| sudo mv spark-2.0.0-bin-hadoop2.7 /usr/local/spark |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| db.setProfilingLevel(0) | |
| db.system.profile.drop() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #http://backtobazics.com/scala/4-steps-to-setup-scala-on-centos/ | |
| #Step 1: Download Tarball OR RPM file of Scala 2.11.6 using below commands | |
| cd /data | |
| sudo wget http://downloads.typesafe.com/scala/2.12.0-M5/scala-2.12.0-M5.tgz | |
| #Step 2: Installation | |
| sudo cp /data/scala-2.12.0-M5.tgz /opt/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| npm install `ls node_modules` --save | |
| npm install `dir node_modules/` --save |