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 / 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


@Luxcium
Luxcium / install-cuda.sh
Created July 26, 2020 07:42
Trying to summarize the cuda install process (Cuda-v11.02 on 5.7.9-200.fc32.x86_64)
#!/bin/sh
#† LUXCIUM LICENSE *NO* PERMISSION GRANTED - PROVIDED "AS IS" - WITHOUT WARRANTY
#+ PROVIDED "AS IS" - WITHOUT WARRANTY - *DO NOT* RUN THIS FILE ON ANY MACHINE
#+ THIS FILE IS *NOT* FIT FOR ANY PARTICULAR PURPOSE IN IT'S CURRENT FORM
#† Copyright © 2020 - LUXCIUM† (Benjamin Vincent Kasapoglu) <luxcium@neb401.com>
#+ THIS FILE HAVE NOT BEEN TESTET OR RUN YET! *DO NOT* RUN THIS FILE UNLESS
#+ YOU HAVE REVIEWED THE FULL CONTENT AND TAKE FULL RESPOSABILITY OF ANY
#+ PROBLEME IT MAY CAUSE TO YOU (or anyone) OR YOUR MACHINE (or any machine)
#† Scientia es lux principium✨ ™
@Luxcium
Luxcium / liste-de-mots-vide-de-sens.ts
Created June 17, 2020 02:31
Tentative de remue-méninge dans le but de trouver des mots semblables à «BIDULE» cette liste doit être réduite
/** Tentative de remue-méninge dans le but de trouver des mots semblables à «BIDULE» cette liste doit être réduite */
// abandon
// abandonné
// abasourdissement
// abattu
// abîme
// aboli
// abrogé
// absence
// absurde
@Luxcium
Luxcium / code-snippets.jsonc
Last active April 8, 2020 16:27
My main VSCode Snippets file
// =====2020=====Luxcium=====Author==Benjamin=Vincent=(Luxcium)=License==MIT====
{
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
"template_delimiters": {
"scope": "javascript,typescript",
@Luxcium
Luxcium / settings.jsonc
Last active April 8, 2020 15:45
My main VSCode Settings
// =====2020=====Luxcium=====Author==Benjamin=Vincent=(Luxcium)=License==MIT====
{
"window.zoomLevel": 0,
"editor.fontSize": 18,
"terminal.integrated.fontSize": 16,
"editor.suggestFontSize": 12,
"debug.console.fontSize": 12,
"errorLens.fontWeight": "bold",
"editor.fontLigatures": true,
"editor.fontFamily": "Victor Mono, Fira Code, Fira Code iScript",
@Luxcium
Luxcium / keybindings.jsonc
Last active April 8, 2020 15:44
My main VSCode Key Bindings
// =====2020=====Luxcium=====Author==Benjamin=Vincent=(Luxcium)=License==MIT====
[
// $ $ $ $ $ $ =============================================================
// #region !! SNIPPETS
/*
* "text": "`" "alt+m",
* "template_placeholder" "alt+n",
* "TRY_THROW" "alt+t",
* "add_export_const" "cmd+i cmd+e",
* "export_const_arrow" "cmd+i cmd+c",
//##############################################################################
//# #
//# !!! PLEASE USE CAUTION WHEN USING THIS FILE !!! #
//# #
//# THIS FILE CANNOT BE USED AS IS YOU MAY HAVE TO CUSTOMISE IT TO USE IT. #
//# Even if this file is shared with the public it has not been designed with #
//# public use in mind. I put them in the public space anyway so anyone #
//# can download them and edit them. #
//# #
//#+ Copyright (c) 2019-present Benjamin Vincent Kasapoglu #
@Luxcium
Luxcium / Async_IIFE.js
Created February 16, 2020 18:14
Async IIFE template
;(async () => {
//
/* code goese here */
return void 0;
})().catch(error =>console.log('error message:', error.message));
@Luxcium
Luxcium / !!!_how-to-install-luxcium-vscode-portable.md
Last active January 25, 2024 20:35
Generate a folder with VSCode for macOS portable edition when run in an empty folder with internet connection

How to Install Luxcium's Vscode Portable (macOS)

I have made a quick VSCODE-Portable installer just execute the script inside a macOS empty folder to have a working copy of visual studio code portable that is self contained inside that folder (not messing with your main VSCode profile easy to throw away or to keep on a USB stick)

TL;DR

Run this script in an empty folder to install Luxcium's Vscode Portable:

bash <(curl -s   https://gist.githubusercontent.com/Luxcium/7357d34622c148f6041842321f315d7a/raw/a758b82e6818b9b9b664b210228ea93f9314c1b4/luxcium-vscode-portable.sh)
@Luxcium
Luxcium / proto-scriptX.sh
Last active September 22, 2019 22:07
Generate a folder with VSCode for macOS portable edition when run in an empty folder with internet connection
#!/usr/bin/env /bin/sh
rm -f .DS_Store
this_file="$(basename "$(test -L "$0" && readlink "$0" || echo "$0")")"
in_this_folder="$(ls -A ./)"
if [ -z "$in_this_folder" ] || [ "$this_file" = "$in_this_folder" ]; then
echo ""
echo "🧞‍♀️"
echo 'please wait:'
else