Skip to content

Instantly share code, notes, and snippets.

View nandordudas's full-sized avatar

Nándor Dudás nandordudas

View GitHub Profile
function _createError<E extends Error>(reason: unknown): E {
if (reason instanceof Error)
return reason as E
return new Error(String(reason)) as E
}
/**
* Result type for Railway-Oriented Programming pattern.
RewriteEngine On
RewriteRule ^updates\.json$ updates.php [L]
<?php
declare(strict_types=1);
use Tracy\Debugger;
const ROOT = __DIR__ . '/../';
require ROOT . '/vendor/autoload.php';
HISTFILE=~/.zsh_history
HISTSIZE=50000
SAVEHIST=50000
HIST_STAMPS="mm/dd/yyyy"
setopt HIST_VERIFY
setopt SHARE_HISTORY
setopt APPEND_HISTORY
setopt INC_APPEND_HISTORY
setopt HIST_IGNORE_DUPS
@nandordudas
nandordudas / 00-setup.md
Last active April 13, 2025 16:16
Setup WSL 2 on Windows 11

Windows Development Environment Setup Guide

Warning

This is a work in progress.

TODO: fzf, nvm, delta, exiftool

This guide provides step-by-step instructions for setting up a complete development environment on Windows, including WSL, package managers, and essential tools.

Table of Contents