Skip to content

Instantly share code, notes, and snippets.


Sabeel Ijaz sabeelijaz

View GitHub Profile

Make sure git is tracking your project.

  1. Using your terminal/command line, get inside the folder where your project files are kept: cd /path/to/my/codebase.

You cannot do this simply by opening the folder normally, you must do this with the command line/terminal.

Do you need a refresher on using your command line/terminal? I've compiled my favorite resources here.

  1. Check if git is already initialized: git status
View gist:bc731f3f6f76b4996604bdb297f85090
# Plain Ol' Node
node --max-old-space-size=1024 app.js # increase to 1gb
node --max-old-space-size=2048 app.js # increase to 2gb
node --max-old-space-size=3072 app.js # increase to 3gb
node --max-old-space-size=4096 app.js # increase to 4gb
node --max-old-space-size=5120 app.js # increase to 5gb
node --max-old-space-size=6144 app.js # increase to 6gb
# For pm2
pm2 start app.js --node-args="--max-old-space-size=1024" # increase to 1gb
sabeelijaz / profiles.json
Last active Sep 30, 2020 — forked from bradwilson/settings.json
Ubuntu color scheme for Windows Terminal
View profiles.json
"$schema": "",
"defaultProfile": "{2c4de342-38b7-51cf-b940-2309a097f518}",
"initialCols": 160,
"initialRows": 50,
"profiles": [
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"name": "PowerShell",
"hidden": false,
sabeelijaz / LanguageDropdown.js
Last active Sep 24, 2020
NodeBB language dropdown menu in navbar
View LanguageDropdown.js
$(document).ready(function () {
var url = new URL(window.location.href);
//if (!url.searchParams.get('lang')) {
// url.searchParams.set('lang', 'en-US');
// window.location.href = ;
document.getElementById('langOpt').value = url.searchParams.get('lang');