Skip to content

Instantly share code, notes, and snippets.

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

Krishna Pravin KrishnaPravin

🏠
Working from home
View GitHub Profile
@amirilovic
amirilovic / take-memory-snapshot.ts
Created July 15, 2024 20:46
A script that takes a heap snapshot from a nodejs process in debug mode
const { exec, spawn } = require("child_process");
const fs = require("fs");
const { promisify } = require("util");
import { WebSocket } from "ws";
async function getWebSocketDebuggerUrl() {
const res = await fetch("http://localhost:9229/json");
const data = await res.json();
return data[0].webSocketDebuggerUrl;
}
@cecilemuller
cecilemuller / 2019-https-localhost.md
Last active July 4, 2025 06:52
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@psgganesh
psgganesh / custom-vs-code-fonts.md
Last active March 17, 2025 01:28
Custom fonts for vs code!