Skip to content

Instantly share code, notes, and snippets.

@mohanpedala
mohanpedala / bash_strict_mode.md
Last active July 26, 2024 08:00
set -e, -u, -o, -x pipefail explanation
@wholroyd
wholroyd / preparations.md
Last active July 27, 2024 10:13
Getting Minikube on WSL2 Ubuntu working

Windows Preparation

  1. Ensure hypervisor functionality is enabled in BIOS.

    • I know it sounds stupid, but if you already have it enabled, disable it, restart the machine, and enable it again.
    • Otherwise you will hit microsoft/WSL#5363
  2. Launch a PowerShell prompt in Administrator mode [Win+X > Windows PowerShell (Admin)]

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
@sigma-andex
sigma-andex / Main.js
Created October 30, 2021 16:58
TS Enum representation
"use strict"
exports.x = 15
exports.y = 16
const numberSyntax = 15
exports.numberSyntax = numberSyntax
const stringSyntax = 16
exports.stringSyntax = stringSyntax