Skip to content

Instantly share code, notes, and snippets.

Proxmox

So if you're using Proxmox you need to open up ssh and run the following commands:

  1. Setup a root password
sudo passwd root
@runtimevic
runtimevic / Service KMS
Created June 11, 2024 12:02 — forked from judero01col/Service KMS
Volume License Activation Key Service - KMS
## Find Available Target Editions
DISM.exe /Online /Get-TargetEditions
## Convert Server Standard 2019 Evaluation to Server Standard 2019
DISM /online /Set-Edition:ServerStandard /ProductKey:N69G4-B89J2-4G8F4-WWYCC-J464C /AcceptEula
## How To Activate
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
slmgr /skms [server]:[port]
slmgr /ato
@runtimevic
runtimevic / web-servers.md
Created April 15, 2024 09:55 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@runtimevic
runtimevic / nvmCommands.js
Created April 10, 2024 14:52 — forked from chranderson/nvmCommands.js
Useful NVM commands
// check version
node -v || node --version
// list locally installed versions of node
nvm ls
// list remove available versions of node
nvm ls-remote
// install specific version of node
@runtimevic
runtimevic / Install nodejs as service
Created March 5, 2024 09:19 — forked from miebach/Install nodejs as service
Install nodejs as a service on windows
1) Download nssm from http://nssm.cc/download/?page=download and extract nssm.exe, for example to %windir%\system32\
2) Install your service:
nssm.exe install my-node-service c:\programs\nodejes\node.exe c:\my\server.js
3) Start it using net start:
net start my-node-service
@runtimevic
runtimevic / configurar-node-ts.md
Created March 2, 2024 23:15 — forked from Klerith/configurar-node-ts.md
Node con TypeScript - TS-Node-dev simplificado

Node con TypeScript - TS-Node-dev (preferido)

  1. Instalar TypeScript y demás dependencias
npm i -D typescript @types/node ts-node-dev rimraf
  1. Inicializar el archivo de configuración de TypeScript ( Se puede configurar al gusto)
npx tsc --init --outDir dist/ --rootDir src
@runtimevic
runtimevic / pasos-node-ts-jest.md
Created February 25, 2024 13:20 — forked from Klerith/pasos-node-ts-jest.md
Note + TypeScript + Jest = Testing

Pasos para configurar Jest con TypeScript, en Node

Documentación oficial sobre Jest

  1. Instalaciones de desarrollo (super test es útil para probar Express)
npm install -D jest @types/jest ts-jest supertest
@runtimevic
runtimevic / instalaciones-node.md
Created February 23, 2024 08:12 — forked from Klerith/instalaciones-node.md
Instalaciones recomendadas - Curso de Node de cero a experto
@runtimevic
runtimevic / pasos-node-typescript.md
Created January 3, 2024 10:12 — forked from Klerith/pasos-node-typescript.md
Configurar proyecto de Node con TypeScript

Pasos para usar Node con TypeScript con Nodemon

Más información - Docs Oficiales

  1. Instalar TypeScript y tipos de Node, como dependencia de desarrollo
npm i -D typescript @types/node
  1. Inicializar el archivo de configuración de TypeScript ( Se puede configurar al gusto)
@runtimevic
runtimevic / machine.js
Created November 21, 2021 18:31
Generated by XState Viz: https://xstate.js.org/viz
const handWashMachine2 = Machine({
id: 'handwash',
initial: 'unwashed',
states: {
unwashed: {
on: {
START_WASH: 'washing'
}
},
washing: {