Skip to content

Instantly share code, notes, and snippets.

@maartenba
maartenba / PasskeySubmit.razor.js
Last active March 11, 2026 18:44
.NET 10 Blazor Passkey Support - Include support for 1Password
const browserSupportsPasskeys =
typeof navigator.credentials !== 'undefined' &&
typeof window.PublicKeyCredential !== 'undefined' &&
typeof window.PublicKeyCredential.parseCreationOptionsFromJSON === 'function' &&
typeof window.PublicKeyCredential.parseRequestOptionsFromJSON === 'function';
async function fetchWithErrorHandling(url, options = {}) {
const response = await fetch(url, {
credentials: 'include',
...options
@dfahlander
dfahlander / 1.include-dexie-export-import.js
Last active March 11, 2026 18:43
Export-IndexedDB-using-devtools-console
// On any web page that stores things in IndexedDB,
// open devtools and in the console, write the following:
script1 = document.createElement('script');
script1.src = 'https://unpkg.com/dexie@3.2.2';
document.body.appendChild(script1);
script2 = document.createElement('script');
script2.src = 'https://unpkg.com/dexie-export-import@1.0.3';
document.body.appendChild(script2);
@artandmath
artandmath / copypaste_with_input_tracking.py
Last active March 11, 2026 18:40
Copy/paste utilities for Nuke that preserve and restore node input connections.
"""
"SideFX Houdini-Style" copy/paste.
https://gist.github.com/artandmath/22d9bf83128c7a73cca3136506c4d559
Copy/paste tools for Nuke that preserve and restore node input connections.
How it works
------------
When copying with input restore, input connection metadata is written to a
temporary ``.nk`` file alongside the standard node data. The system clipboard
@101arrowz
101arrowz / README.md
Last active March 11, 2026 18:39
Download a McGraw Hill Education eTextbook

Download a McGraw Hill Education eTextbook

If you purchase a textbook from McGraw Hill, the website to view it is clunky and only works on some devices. You can't go to specific page numbers, the search is super slow, etc. That's why I wrote this script to download the textbook as an ePub file for your own viewing.

Using this script is 100% legal. McGraw Hill publicly hosts their ebooks online in order for their web client to download it. Moreover, to use it, you must already have purchased the book you would like to download, so it is legally yours to use as you please. However, it IS illegal to use this for piracy purposes. DO NOT DISTRIBUTE ANY TEXTBOOKS YOU DOWNLOAD USING THIS SCRIPT.

@executeautomation
executeautomation / openclaw.json
Created February 2, 2026 16:56
OpenClaw + Ollama + gpt-oss:20b configuration
{
"meta": {
"lastTouchedVersion": "2026.1.30",
"lastTouchedAt": "2026-02-01T16:48:36.938Z"
},
"wizard": {
"lastRunAt": "2026-02-01T16:48:36.935Z",
"lastRunVersion": "2026.1.30",
"lastRunCommand": "onboard",
"lastRunMode": "local"
@oidebrett
oidebrett / setting_up_crowdsec_pangolin_middleware_manager
Last active March 11, 2026 18:34
Detailed Steps for Setting Up Crowdsec with Pangolin and Middleware Manager
Detailed Steps
1) First obtain your enrolment key from Crowdsec. Enrollment refers to connecting your CrowdSec Security Engine to the CrowdSec Console
To Get CrowdSec Enrollment Key
- Visit https://www.crowdsec.net/
- Log in to your account
- Obtain the enrollment key from your dashboard
- Copy this key for later use
@Pulimet
Pulimet / AdbCommands
Last active March 11, 2026 18:34
Adb useful commands list
Hi All!
I've recently launched a tool that wraps many of the commands here with a user interface. This desktop application is currently available for macOS. There's a roadmap outlining planned features for the near future.
Feel free to request any features you'd like to see, and I'll prioritize them accordingly.
One of the most important aspects of this application is that every command executed behind the scenes is displayed in a special log section. This allows you to see exactly what’s happening and learn from it.
Here's the link to the repository: https://github.com/Pulimet/ADBugger
App Description:
ADBugger is a desktop tool designed for debugging and QA of Android devices and emulators. It simplifies testing, debugging, and performance analysis by offering device management, automated testing, log analysis, and remote control capabilities. This ensures smooth app performance across various setups.
@hepto
hepto / tvheadend-freesat-setup.md
Last active March 11, 2026 18:30
How to set up TVHeadend for Freesat with a SAT>IP server. Creates a channel list with all and only those from the Freesat bouquets. Based on the Digibit Twin but should work for any SAT>IP server. Additionally, configure Channels DVR to use this channel list.

Once you have TVH going, go to its web interface on http://x.x.x.x:9981. Then these are the steps:

  1. Enable the Advanced or Expert UI in Configuration > General > Base

    This enables some menu items that are needed for future steps.

  2. Go to Configuration > Channels / EPG > EPG Grabber Modules and ensure that ONLY Freesat and Freesat EIT are enabled.

    This setting does grab the EPG that is embedded in the streams, but it's not actually used in the end. It is required later to get the Freesat bouquets which are the sets of regional Freesat only channels, which are important later.