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]
{
"recommendations": [
"richie5um2.vscode-sort-json",
"usernamehw.errorlens",
"letrieu.expand-region",
"meganrogge.template-string-converter",
"aaron-bond.better-comments",
"akamud.vscode-theme-onedark",
"alefragnani.bookmarks",
"appland.appmap",
@anishkumar127
anishkumar127 / extensions.json
Created July 22, 2024 05:36
vscode setup - extensions
{
"recommendations": [
"richie5um2.vscode-sort-json",
"usernamehw.errorlens",
"letrieu.expand-region",
"meganrogge.template-string-converter",
"aaron-bond.better-comments",
"akamud.vscode-theme-onedark",
"alefragnani.bookmarks",
"appland.appmap",

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.