Skip to content

Instantly share code, notes, and snippets.

View renomureza's full-sized avatar

Renova M. R renomureza

View GitHub Profile
@renomureza
renomureza / nginx.conf
Last active November 4, 2023 04:13
Nginx Config for Serving "out" Folder Nextjs (next export)
# /etc/nginx/sites-available/example.com
server {
listen 80;
listen [::]:80;
# path to out folder
root /var/www/out;
index index.html index.htm index.nginx-debian.html;
# server_name www.example.com example.com
@renomureza
renomureza / list-online-gaming-ports-for-mikrotik.txt
Created April 21, 2021 17:01
List of online gaming ports that can be used to optimize the RouterOS Mikrotik router connection
Mobile Legend (ML)
tcp: 5000-5221,5224-5227,5229-5241,5243-5508,5551-5559,5601-5700,9001,9443
tcp: 10003,30000-30300
udp: 4001-4009,5000-5221,5224-5241,5243-5508,5551-5559,5601-5700
udp: 2702,3702,8001,9000-9010,9992,10003,30190,30000-30300
Free Fire (FF)
tcp: 6006,6674,7006,7889,8001-8012,9006,10000-10012,11000-11019,120006,12008,13006
tcp: 39003,39006,39698,39779,39800
udp: 6006,6008,7008,8008,9008,10000-10013,10100,11000-11019,12008,13008
@renomureza
renomureza / nginx.conf
Created April 8, 2021 11:33
Nginx default config nginx.conf Ubuntu 20.04 (LTS) x64
user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 768;
# multi_accept on;
}
@renomureza
renomureza / javascript-random-string-generator.js
Last active December 14, 2020 11:25
Javascript random string generator with dynamic length and characters type.
/**
* @link https://stackoverflow.com/a/1349426/11340631
*/
const makeRandomString = (length = 5, typeCharacter = "lowerUpperNumber") => {
if (length < 5) return "Length must be more than 5.";
if (
typeCharacter !== "lower" &&
typeCharacter !== "upper" &&
typeCharacter !== "number" &&