Skip to content

Instantly share code, notes, and snippets.

View shafiqsaaidin's full-sized avatar

Shafiq Saaidin shafiqsaaidin

View GitHub Profile
Title: Mysql with nodejs
Date: 30/10/2017
Author: Musha
Youtube: https://youtu.be/EN6Dx22cPRI
Reference: https://github.com/mysqljs/mysql
1) Install
$ npm install mysql --save
Title : Npm Crash Course
Author : Musha
Date : 14/10/2017
Youtube : https://youtu.be/jHDhaSSKmB0
## Check version
npm -v / npm --version
@shafiqsaaidin
shafiqsaaidin / Heroku - intro.txt
Last active November 4, 2017 23:27
Heroku Quick Note
Title : "Getting Started on Heroku with Node.js"
Date : "4/11/2017"
Author : "Musha"
Reference : "https://devcenter.heroku.com/articles/getting-started-with-nodejs"
#) Login to heroku
$ heroku login
#) Deploy the app

Update the system

sudo apt update
sudo apt upgrade -y

Install LAMP

sudo apt-get install apache2 libapache2-mod-php7.0 mariadb-server php7.0 php7.0-mysql php7.0-curl php7.0-gd
php7.0-json php7.0-opcache php7.0-xml mcrypt php7.0-mcrypt php7.0-cgi php7.0-json php7-0-zip

Download Open Source Social Network(OSSN)

wget https://www.opensource-socialnetwork.org/download_ossn/latest/build.zip

Title : "Vyos basic configuration"
Date : "25/07/2018"
Author : "Musha"
Reference : "http://soucy.org/vyos/UsingVyOSasaFirewall.pdf"
1) Configure network Interface eth0 (internet)
set interfaces ethernet eth0 address dhcp
set interfaces ethernet eth0 description 'OUTSIDE'
2) Configure network interface eth1 (dmz)
###Install Dns server
- apt install dnsmasq
- sudo nano /etc/dnsmasq.conf
domain-needed
bogus-priv
no-resolv
no-poll
server=192.168.2.1
server=8.8.8.8
server=8.8.4.4
@shafiqsaaidin
shafiqsaaidin / stunnel.txt
Created September 3, 2020 03:58
SSH over Stunnel basic setup for debian
Title : SSH over Stunnel basic setup for debian
Date : 03/09/2020
Author : musha
Reference : https://medium.com/@jayden.chua/stunnel-openvpn-server-on-ubuntu-18-04-1837eaf2077d
: https://hamy.io/post/0012/how-to-install-and-configure-stunnel-on-ubuntu/#gsc.tab=0
$ apt install stunnel4
$ cd /etc/stunnel
$ openssl genrsa -out key.pem 2048