Skip to content

Instantly share code, notes, and snippets.

View pongsakt's full-sized avatar
😃

noom pongsakt

😃
View GitHub Profile
@pongsakt
pongsakt / DigitalOcean.md
Created May 4, 2020 05:19 — forked from pilotpirxie/DigitalOcean.md
Node.js + Nginx + Redis + MySQL + PM2 configuration on DigitalOcean

Node.js + Nginx + Redis + MySQL + PM2 configuration on DigitalOcean

Installation

  1. Install LEMP stack
  2. Overwrite /etc/nginx/nginx.conf
# /etc/nginx/nginx.conf

user www-data;
@pongsakt
pongsakt / ubuntu_setup.md
Created May 4, 2020 04:56 — forked from prcongithub/ubuntu_setup.md
Setup Ubuntu with NodeJS, MySQL, Nginx, Postgres, Ruby, Rails etc.

Setup NodeJS

sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup_0.10 | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install -g express
sudo npm install -g express-generator
sudo npm install -g nodemon
express demo_app -e ejs
cd demo_app
@pongsakt
pongsakt / readme.md
Created April 11, 2019 16:15 — forked from falu/readme.md
GeoServer Installation On Ubuntu Server 18.04 LTS

GeoServer Installation On Ubuntu Server 18.04 LTS

Install Tomcat8:

sudo apt-get install default-jre tomcat8 tomcat8-admin

Add a new Tomcat user:

@pongsakt
pongsakt / geoserver-install.sh
Created March 15, 2019 16:05 — forked from iacovlev-pavel/geoserver-install.sh
Install GeoServer on Ubuntu 18.04
#
apt-get install openjdk-8-jre
# PostgreSQL and PostGIS
apt-get install postgresql postgresql-contrib postgis postgresql-10-postgis-2.4
# Create "geoserver" database
sudo -u postgres createuser -P geoserver
sudo -u postgres createdb -O geoserver geoserver
sudo -u postgres psql -c "CREATE EXTENSION postgis; CREATE EXTENSION postgis_topology;" geoserver
@pongsakt
pongsakt / vhost.sh
Created November 11, 2017 01:32 — forked from mattmezza/vhost.sh
bash script to create virtual host vhost with apache httpd and CentOs 7
#!/bin/bash
# This script is used for create virtual hosts on CentOs.
# Created by alexnogard from http://alexnogard.com
# Improved by mattmezza from http://you.canmakethat.com
# Feel free to modify it
# PARAMETERS
#
# $usr - User
# $dir - directory of web files
# $servn - webserver address without www.