Skip to content

Instantly share code, notes, and snippets.

@codemem
codemem / esm-package.md
Created March 13, 2025 12:25 — forked from sindresorhus/esm-package.md
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.
@cachely
cachely / resxcomparer.ps1
Created March 13, 2025 12:25
This powershell script is made to work with a directory containing two appresources language/culture files.
#This script is made to work with a directory containing two appresources language/culture files.
#This will compare old keys and values and add all new keys and keys of updated values into a text file
#Was used to find updated entries in app to ensure proper ui was being displayed.
$originalFilePrefix = "AppResources"
$fileExt = ".resx"
$dataNodesPath = '//root/@data'
$rootNodePath = '//root'
$resxDirectory = "enter file path containing only old and new resx for comparison"
$resultsFile = "enter destination path for the results text file"
@MATOGUZ
MATOGUZ / Movietest.m3u
Last active March 13, 2025 13:25
Movies test
#EXTINF:-1 tvg-id="0" tvg-name="Venom: The Last Dance" tvg-logo="https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQI1nNs4L2JhWNiQKmiYBYnhoqep5cEJVzp1PqecXhL89aJSmHz" group-title="Movies" on-demand="true",Venom: The Last Dance
https://tmstr4.shadowlandschronicles.com/stream_new/H4sIAAAAAAAAAw3P0UKCMBQA0F9igch6VLjgiiljd8jeHIOUDbLUSr8._.CcxJgltdGQ2APpEjoMcWSXlMSUDj01h.QV9yCNV.s.9ekbgRM2upApc8adI4vXmk.f9370R.X5Vkw8bhxEYlQLk8MFQz23imO7X13q2WZIbNQRf.MZ..1TDbUXOSfHnAfg1em6q3O75oHN.tmmYvRbdCzkDRMmoPtKwqoNxHsNGtXM4g75rgzhhtMfagK.82zD8a_oGlqiI2MlkUjF61axr_ahb5KIqvVQoaN3Gaq4emGjddW3nBazApuWDsjT5tR8LIxTLfd6FArcFheNzC4PPNE7kvP1.d40.PFTFqrUj4D.A6pIFEBBAQAA/master.m3u8
#EXTINF:-1 tvg-id="0" tvg-name="Gladiator 2" tvg-logo="https://upload.wikimedia.org/wikipedia/en/thumb/0/04/Gladiator_II_%282024%29_poster.jpg/220px-Gladiator_II_%282024%29_poster.jpg" group-title="Movies" on-demand="true",Gladiator 2
https://tmstr5.shadowlandschronicles.com/stream_new/H4sIAAAAAAAAAw3OW3KCMBQA0C3lRkDpJ1Wo2OBw8wDyRxI7KJFJpxbQ1bdnBceZL.I2
@jnsereko
jnsereko / gist:233efcad2757a6a5894628b5e64f338e
Created March 13, 2025 12:25
Patient ID Sticker Configuration
{
"printPatientSticker": {
"pageSize": "70mm 50mm",
"header": {
"showBarcode": true,
"showLogo": false
},
"printStickerFields": {
"fields": [
"identifier",
@josh-ferrell
josh-ferrell / tls-cert-manager-example.yaml
Created March 13, 2025 12:24
TLS with cert-manager example using nginx and ubuntu
# Self-signed Issuer for CA Issuer
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: test-app-ns-self-signed-issuer
spec:
selfSigned: {}
---
# Self-signed CA Certificate
apiVersion: cert-manager.io/v1
@chxzqw
chxzqw / openwrt-on-proxmox.md
Created March 13, 2025 12:24 — forked from subrezon/openwrt-on-proxmox.md
How to set up an OpenWRT VM in Proxmox
  1. Go to OpenWRT release page, select the latest release stable release, then targets -> x86 -> 64. Right-click generic-ext4-combined.img.gz (not the "efi"!) and copy the link.

  2. On the Proxmox host, download the archive and unpack it:

wget *paste link here*
gunzip openwrt-*.img.gz
  1. Resize the image to be the size you want your VM's disk to be (example with 8 GiB):
@nuttxpr
nuttxpr / ci-risc-v-04.log
Created March 13, 2025 12:23
[risc-v-04] CI Log for nuttx @ e0b02314e6e28b10ee84837bfe62b1e48700f85a / nuttx-apps @ 3b03636e95f6202b512d8af32629da4c0dc4af2c
fpu.c:57:8: warning: #warning "FPU test not built; Only available in the flat build (CONFIG_BUILD_FLAT)" [-Wcpp]
Script started on 2025-03-13 19:58:31+08:00 [COMMAND="/home/luppy/nuttx-release/run-job.sh risc-v-04 3" TERM="tmux-256color" TTY="/dev/pts/9" COLUMNS="100" LINES="10"]
Now running https://github.com/lupyuen/nuttx-release/blob/main/run-job.sh risc-v-04 3
Called by https://github.com/lupyuen/nuttx-release/blob/main/run-ci.sh
+ job=risc-v-04
+ [[ risc-v-04 == '' ]]
+ instance=3
+ grep TMUX
+ set
+ true
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created March 13, 2025 12:22
dotnet-8.0-desktopruntime v8.0.14 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-1993710684-3149439546-4121954415-1000</user>
<keys>
<key installerType="Msi" displayName="Microsoft .NET Host - 8.0.14 (x64)" displayVersion="64.56.29490">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{04904762-A110-4E46-A728-7EF88DCCA1F1}</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[]]></InstallLocation>
<UninstallString><![CDATA[MsiExec.exe /X{04904762-A110-4E46-A728-7EF88DCCA1F1}]]></UninstallString>
# Name Type 1 Type 2 Total HP Attack Defense Sp. Atk Sp. Def Speed Generation Legendary
1 Bulbasaur Grass Poison 318 45 49 49 65 65 45 1 False
2 Ivysaur Grass Poison 405 60 62 63 80 80 60 1 False
3 Venusaur Grass Poison 525 80 82 83 100 100 80 1 False
3 VenusaurMega Venusaur Grass Poison 625 80 100 123 122 120 80 1 False
4 Charmander Fire 309 39 52 43 60 50 65 1 False
5 Charmeleon Fire 405 58 64 58 80 65 80 1 False
6 Charizard Fire Flying 534 78 84 78 109 85 100 1 False
6 CharizardMega Charizard X Fire Dragon 634 78 130 111 130 85 100 1 False
6 CharizardMega Charizard Y Fire Flying 634 78 104 78 159 115 100 1 False
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html dir="ltr" lang="en">
<head>
<meta charset="utf-8">
<title>Allure Report</title>