Skip to content

Instantly share code, notes, and snippets.

View anishkumar127's full-sized avatar
πŸ¦‹
EatπŸ˜‹ | Code πŸ‘¨β€πŸ’»| Sleep 😴 | Repeat ♾️ | Achieve πŸš€

Anish Kumar anishkumar127

πŸ¦‹
EatπŸ˜‹ | Code πŸ‘¨β€πŸ’»| Sleep 😴 | Repeat ♾️ | Achieve πŸš€
View GitHub Profile
@anishkumar127
anishkumar127 / remove_comments.lua
Created July 2, 2025 09:36 — forked from kelvinauta/remove_comments.lua
This function removes all comments from your code using treesitter in nvim.
local RemoveComments = function()
local ts = vim.treesitter
local bufnr = vim.api.nvim_get_current_buf()
local ft = vim.bo[bufnr].filetype
local lang = ts.language.get_lang(ft) or ft
local ok, parser = pcall(ts.get_parser, bufnr, lang)
if not ok then return vim.notify("No parser for " .. ft, vim.log.levels.WARN) end
local tree = parser:parse()[1]

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. Create Free AWS Account

Create free AWS Account at https://aws.amazon.com/

2. Create and Lauch an EC2 instance and SSH into machine

I would be creating a t2.medium ubuntu machine for this demo.