Skip to content

Instantly share code, notes, and snippets.

View dannyh79's full-sized avatar

Cheng-Hsuan "Danny" Han dannyh79

View GitHub Profile
@dannyh79
dannyh79 / node-typescript-esm.md
Created November 24, 2023 02:50 — forked from khalidx/node-typescript-esm.md
A Node + TypeScript + ts-node + ESM experience that works.

The experience of using Node.JS with TypeScript, ts-node, and ESM is horrible.

There are countless guides of how to integrate them, but none of them seem to work.

Here's what worked for me.

Just add the following files and run npm run dev. You'll be good to go!

package.json

@dannyh79
dannyh79 / fstab-generate-arch.md
Created June 5, 2022 01:16 — forked from Brainiarc7/fstab-generate-arch.md
Generate fstab in Arch Linux

First, install arch-install-scripts:

sudo pacman -S --needed arch-install-scripts

Secondly, mount your partitions in all the internal hard drives.

Thirdly, generate and validate your config by piping it out to stdout: