Skip to content

Instantly share code, notes, and snippets.

View Craftzman7's full-sized avatar
🚀
Off on new adventures

Craftzman7 Craftzman7

🚀
Off on new adventures
View GitHub Profile
@jhx0
jhx0 / docker-compose.yml
Created May 30, 2024 13:50
Soulseek/VPN Docker compose config
version: "2.1"
services:
soulseek:
image: realies/soulseek
container_name: soulseek
network_mode: "service:vpn"
restart: unless-stopped
volumes:
- .soulseek/appdata:/data/.SoulseekQt
- .soulseek/downloads:/data/Soulseek Downloads
@sindresorhus
sindresorhus / esm-package.md
Last active January 7, 2026 02:06
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
/*
* m1racle-poc: a basic proof of concept for the M1RACLES vulnerability in the Apple M1.
*
* This program allows you to read and write the state of the s3_5_c15_c10_1 CPU register.
*
* Please visit m1racles.com for more information.
*
* Licensed under the MIT license.
*/
@573
573 / readme.md
Last active January 20, 2024 21:02
nix complains "error: cannot auto-call a function that has an argument without a default value ('stdenv')"?

Add on top of default.nix: with import {}; or simply run as nix-build '' (i. e. for nix-build complaining) or rather nix-build -E 'with import {}; callPackage ./default.nix {}' (or even import)