Skip to content

Instantly share code, notes, and snippets.

View biFebriansyah's full-sized avatar

MuhFebriansyah biFebriansyah

  • Teman Data
  • Jakarta
View GitHub Profile
  1. SEBELUM TEST TPA (8:40)
Selamat datang di Test Potential Fazztrack! 🔥

1. Durasi untuk menyelesaikan seluruh soal 50 Menit dimulai dari **09.00 WIB - 09.50 WIB**
2. Bacalah dengan teliti aturan dan tata cara menjawab setiap soal yang disediakan
3. Tidak diperkenankan menggunakan alat hitung (kalkulator) dan alat komunikasi dalam segala bentuk
@biFebriansyah
biFebriansyah / Bucardo_Mirroring_PostgresDB.md
Created February 2, 2022 04:41
database mirrorng with bucardo

Postgres replication with bucardo

base on our experience when use bucardo, you must copy the schema that you will mirroring before you start setup, DON'T TRY WITH PRODUCTION DATABASE OR YOU WILL LOSE THE DATA

Preparation for main database

  1. backup database
# backup schema only

Requirment

  • aws instance (at least t2.micor)
  • open port 80 for nginx on aws security group
  • database (make sure database already running local/online)
  • project in production mode (backend/forntend)
  • nginx (for sarving FE and BE)
  • pm2 (depend on BE, pm2 for nodejs)

deploy backend

@biFebriansyah
biFebriansyah / node_nginx_ssl.md
Created December 4, 2020 06:54 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

@biFebriansyah
biFebriansyah / cloudSettings
Last active March 8, 2020 08:14 — forked from bradtraversy/eslint_prettier_airbnb.md
ESLint, Prettier & Airbnb Setup
{"lastUpload":"2020-03-08T01:14:07.750Z","extensionVersion":"v3.4.3"}