Skip to content

Instantly share code, notes, and snippets.

View Jamelle-Boose's full-sized avatar
💼
Let's get to work.

Jamelle Boose Jamelle-Boose

💼
Let's get to work.
View GitHub Profile
@Jamelle-Boose
Jamelle-Boose / process_memory.js
Created August 2, 2022 16:53
Get process memory usage
const fs = require('fs');
const allFileContents = fs.readFileSync('broadband.sql', 'utf-8');
allFileContents.split(/\r?\n/).forEach(line => {
console.log(`Line from file: ${line}`);
});
const used = process.memoryUsage().heapUsed / 1024 / 1024;
console.log(`The script uses approximately ${Math.round(used * 100) / 100} MB`);
@Jamelle-Boose
Jamelle-Boose / pr_template.md
Created August 1, 2022 02:28
pr_template.md

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
    • Some docs updates need to be made in the ionic-docs repo, in a separate PR. See the contributing guide for details.
  • Build (npm run build) was run locally and any changes were pushed
  • Lint (npm run lint) has passed locally and any fixes were made for failures
@Jamelle-Boose
Jamelle-Boose / consoleColors.js
Created June 23, 2022 11:01 — forked from abritinthebay/consoleColors.js
The various escape codes you can use to color output to StdOut from Node JS
// Colors reference
// You can use the following as so:
// console.log(colorCode, data);
// console.log(`${colorCode}some colorful text string${resetCode} rest of string in normal color`);
//
// ... and so on.
export const reset = "\x1b[0m"
export const bright = "\x1b[1m"
export const dim = "\x1b[2m"
@Jamelle-Boose
Jamelle-Boose / Colorize Man Pages
Last active April 10, 2020 03:23
Colorize Man Pages #bash #bashrc
export LESS_TERMCAP_mb=$(printf '\e[01;31m')
export LESS_TERMCAP_md=$(printf '\e[01;35m')
export LESS_TERMCAP_me=$(printf '\e[0m')
export LESS_TERMCAP_se=$(printf '\e[0m')
export LESS_TERMCAP_so=$(printf '\e[01;33m')
export LESS_TERMCAP_ue=$(printf '\e[0m')
export LESS_TERMCAP_us=$(printf '\e[04;36m')