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
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 63 columns, instead of 16. in line 2.
scalerank featurecla labelrank sovereignt sov_a3 adm0_dif level type admin adm0_a3 geou_dif geounit gu_a3 su_dif subunit su_a3 brk_diff name name_long brk_a3 brk_name brk_group abbrev postal formal_en formal_fr note_adm0 note_brk name_sort name_alt mapcolor7 mapcolor8 mapcolor9 mapcolor13 pop_est gdp_md_est pop_year lastcensus gdp_year economy income_grp wikipedia fips_10 iso_a2 iso_a3 iso_n3 un_a3 wb_a2 wb_a3 woe_id adm0_a3_is adm0_a3_us adm0_a3_un adm0_a3_wb continent region_un subregion region_wb name_len long_len abbrev_len tiny homepart
1 Admin-0 country 6 Kosovo KOS 0 2 Sovereign country Kosovo KOS 0 Kosovo KOS 0 Kosovo KOS 1 Kosovo Kosovo B57 Kosovo Kos. KO Republic of Kosovo Self admin.; Claimed by Serbia Kosovo 2 2 3 11 1804838 5352 -99 1981 -99 6. Developing region 4. Lower middle income -99 -99 -99 -99 -099 KV KSV -99 SRB KOS -99 -99 Europe Europe Southern Europe Europe & Central Asia 6 6 4 -99 1
1 Admin-0 country 5 Somaliland SOL 0 2 Indeterminate Somaliland SOL 0 Somaliland SOL 0 Somaliland

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database