Skip to content

Instantly share code, notes, and snippets.

View Thamjith's full-sized avatar
🏠
Working from home

Thamjith Thaha Thamjith

🏠
Working from home
View GitHub Profile
@Thamjith
Thamjith / node_nginx_ssl.md
Created April 16, 2021 14:23 — 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

@Thamjith
Thamjith / README.md
Created August 16, 2020 08:52 — forked from robyngit/D3 v3 time-series line chart.md
D3 v3 time-series line chart

D3 timeseries chart

  • the D3 chart currently displayed on metacat UI
  • issue: the line and area shapes interpolate across missing data
  • features:
    • mini 'brush' chart shows the context of the data in focus in the main chart
    • x-axis zooming and panning is limited to the range of available data
    • y-axis resizes automatically to match the maximum y-value of the data in focus
    • buttons zoom focus to an interval equal to one year (if sufficient data), one month, or the range of the data
  • text at top changes to indicate the range of data in focus

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database