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 / dirs-material-icon-theme-PKief-4.5.0.sh
Last active March 12, 2021 13:08
Script to create folders (directories) from the v4.5.0 of pkief.material-icon-theme
#!/bin/sh
# * ------------------------------------------------------------------------- *
# * This file is Copyright © 2021 Benjamin Vincent Kasapoglu (Luxcium).
# * Licensed under the MIT License. (All rights reserved)
# * See license footer at bottom of this file down below for information.
# * ------------------------------------------------------------------------- *
#
# Benjamin Vincent Kasapoglu (Luxcium)
# https://github.com/Luxcium
#

Standalone applications

There are several ways of mounting a Nest application. You can create a web app, a microservice or just a bare Nest standalone application (without any network listeners). The Nest standalone application is a wrapper around the Nest IoC container, which holds all instantiated classes. We can obtain a reference to any existing instance from within any imported module directly using the standalone application object. Thus, you can take advantage of the Nest framework anywhere, including, for example, scripted CRON jobs. You can even build a CLI on top of it.

Getting started

To create a Nest standalone application, use the following construction:

@@filename()
@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) <[email protected]>
#+ 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));