Skip to content

Instantly share code, notes, and snippets.

View rabindranathfv's full-sized avatar

Rabindranath Ferreira rabindranathfv

View GitHub Profile
@rabindranathfv
rabindranathfv / preparations.md
Created May 20, 2023 22:24 — forked from wholroyd/preparations.md
Getting Minikube on WSL2 Ubuntu working

Windows Preparation

  1. Ensure hypervisor functionality is enabled in BIOS.

    • I know it sounds stupid, but if you already have it enabled, disable it, restart the machine, and enable it again.
    • Otherwise you will hit microsoft/WSL#5363
  2. Launch a PowerShell prompt in Administrator mode [Win+X > Windows PowerShell (Admin)]

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
@rabindranathfv
rabindranathfv / promiseAll.js
Created February 3, 2023 10:49
Promise.all solution like pollyfills
const p1 = new Promise((resolve, reject) => {
setTimeout(resolve, 1000, 'one');
});
const p2 = new Promise((resolve, reject) => {
setTimeout(resolve, 2000, 'two');
});
const p3 = new Promise((resolve, reject) => {
setTimeout(resolve, 3000, 'three');
});
const p4 = new Promise((resolve, reject) => {
@rabindranathfv
rabindranathfv / ts-boilerplate.md
Last active May 10, 2025 22:07 — forked from silver-xu/ts-boilerplate.md
Setup a Node.js project with Typescript, ESLint, Prettier and Husky (pre-commits)

How to Setup/Configure a Node.js project with Typescript, ESLint, Prettier and Husky

1_D8Wwwce8wS3auLAiM3BQKA

Starting a personal node project could be easy; starting a team node project could be challenging.

I Forked from https://gist.github.com/silver-xu/1dcceaa14c4f0253d9637d4811948437 and customize for myself.

In my experience, common mistakes developer make when starting a projects are:

  • No Linting
@rabindranathfv
rabindranathfv / README.md
Created January 21, 2020 22:23 — forked from greyscaled/README.md
Sequelize + Express + Migrations + Seed Starter
@rabindranathfv
rabindranathfv / postgres-cheatsheet.md
Last active November 1, 2022 22:42 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

or

sudo -u postgres psql
@rabindranathfv
rabindranathfv / repo-reset.md
Created August 2, 2019 16:25 — forked from heiswayi/repo-reset.md
GitHub - Delete commits history with git commands

First Method

Deleting the .git folder may cause problems in our git repository. If we want to delete all of our commits history, but keep the code in its current state, try this:

# Check out to a temporary branch:
git checkout --orphan TEMP_BRANCH

# Add all the files:
git add -A