Skip to content

Instantly share code, notes, and snippets.

View sabeelijaz's full-sized avatar
🙂
Available

Sabeel Ijaz sabeelijaz

🙂
Available
View GitHub Profile
@sabeelijaz
sabeelijaz / git_and_github_instructions.md
Created June 7, 2021 10:36 — forked from mindplace/git_and_github_instructions.md
Pushing your first project to github

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
@sabeelijaz
sabeelijaz / gist:bc731f3f6f76b4996604bdb297f85090
Created March 3, 2021 13:26 — forked from ivan-loh/gist:ee0d96c3795e59244063
Node.JS ( & pm2 ) Process Memory Limit
# 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
sabeelijaz / profiles.json
Last active September 30, 2020 09:58 — forked from bradwilson/settings.json
Ubuntu color scheme for Windows Terminal
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{2c4de342-38b7-51cf-b940-2309a097f518}",
"initialCols": 160,
"initialRows": 50,
"profiles": [
{
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"name": "PowerShell",
"hidden": false,
@sabeelijaz
sabeelijaz / LanguageDropdown.js
Last active September 24, 2020 04:15
NodeBB language dropdown menu in navbar
$(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');
});