Skip to content

Instantly share code, notes, and snippets.

View Luxcium's full-sized avatar
:octocat:
Full-time TypeScript worshiper, Node.JS enthusiast and VsCode junkie.

Benjamin Vincent Luxcium

:octocat:
Full-time TypeScript worshiper, Node.JS enthusiast and VsCode junkie.
  • Luxcium
  • Québec, Qc, Canada
  • X @Luxcium
View GitHub Profile
@Luxcium
Luxcium / folder-history.plugin.zsh
Created January 21, 2025 23:41 — forked from wess/folder-history.plugin.zsh
OhMyZsh plugin for local/folder based history
# Enable Zsh options for history
setopt EXTENDED_HISTORY
setopt INC_APPEND_HISTORY
setopt SHARE_HISTORY
setopt HIST_FIND_NO_DUPS
# Clear local history and load a fresh session for the current directory
function load_local_history() {
if [[ -f .zsh_cmd_history ]]; then
# Clear in-memory history and reload only local history
@Luxcium
Luxcium / load-generator.js
Created September 6, 2021 21:22 — forked from tkrueger/load-generator.js
generate and measure CPU load with node.js
#!/usr/bin/env node
require(__dirname+"/processor-usage.js").startWatching();
var shouldRun = true;
var desiredLoadFactor = .5;
function blockCpuFor(ms) {
var now = new Date().getTime();
var result = 0
@Luxcium
Luxcium / ultimate-ut-cheat-sheet.md
Last active September 12, 2020 13:13 — forked from yoavniran/ultimate-ut-cheat-sheet.md
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai and Sinon

The Ultimate Unit Testing Cheat-sheet

For Mocha, Chai and Sinon

using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies