Skip to content

Instantly share code, notes, and snippets.

import modal
def download_boltz2():
from mosaic.models.boltz2 import Boltz2
Boltz2()
### Build modal image: install mosaic + deps and download boltz2 model.
image = (
modal.Image.debian_slim(python_version="3.12")
@Khemmie-Ray
Khemmie-Ray / template.md Secret
Created November 9, 2026 15:36
AI Usage Log Template

Name: Cohort: Web3Bridge Cohort XV

# Date Tool Project name/Link What I was trying to do Prompt (short) What AI gave Accepted / Changed / Rejected Why How I verified Linked PR or issue
1
<?php
declare(strict_types=1);
namespace Infrastructure\Messaging;
use Doctrine\Persistence\ManagerRegistry;
use Psr\Log\LoggerInterface;
use Symfony\Component\Messenger\Envelope;
use Symfony\Component\Messenger\Middleware\MiddlewareInterface;
@zek
zek / turkiye-origin-iptv.m3u
Created July 19, 2026 18:49
Turkiye origin IPTV — iptv-org/iptv tr.m3u filtered (TRT/DAION/ercdn/mncdn, 56 ch)
#EXTM3U
#EXTINF:-1 tvg-id="24TV.tr@SD" tvg-logo="https://i.imgur.com/8FO41es.png" http-user-agent="Mozilla/5.0 Macintosh; Intel Mac OS X 10_14_5 AppleWebKit/537.36 KHTML, like Gecko Chrome/76.0.3809.25 Safari/537.36" group-title="News",24 TV (1080p)
#EXTVLCOPT:http-user-agent=Mozilla/5.0 Macintosh; Intel Mac OS X 10_14_5 AppleWebKit/537.36 KHTML, like Gecko Chrome/76.0.3809.25 Safari/537.36
https://mn-nl.mncdn.com/kanal24/smil:kanal24.smil/playlist.m3u8
#EXTINF:-1 tvg-id="360.tr@SD" tvg-logo="https://i.imgur.com/agn47sQ.png" group-title="News",360 TV (720p) [Not 24/7]
https://turkmedya-live.ercdn.net/tv360/tv360.m3u8
#EXTINF:-1 tvg-id="A2TV.tr@SD" tvg-logo="https://iatv.tmgrup.com.tr/site/v2/a2tv/i/a2tv-logo.png" group-title="General",A2TV (1080p)
https://rnttwmjcin.turknet.ercdn.net/lcpmvefbyo/a2tv/a2tv.m3u8
#EXTINF:-1 tvg-id="AHaber.tr@SD" tvg-logo="https://upload.wikimedia.org/wikipedia/commons/7/7c/Ahaber_Logo.png" group-title="News",A Haber (1080p)
https://rnttwmjcin.turknet.ercdn.net/lcpmvefbyo/ahaber/a
@larionov-dv
larionov-dv / png2ico.js
Created November 2, 2024 20:25
A small node.js script for converting PNG to ICO.
const error = message => {
console.error(`ERROR: ${message}.`);
process.exit(1);
};
if (process.argv.length < 3) {
error('input file is not specified');
}
const inputFilename = process.argv[2];
@mbafford
mbafford / README.md
Last active November 9, 2026 20:05
Compare two PDFs using ImageMagick - provides a visual comaprison and a perceptual hash comparison (numerical)

PDF tools for comparing PDFs visually (overlaying two PDFs to see changed areas) and using a perceptual hash (numerical value indicating visual difference between the two files).

Useful for command line review of PDFs and de-duplication. Configure git to use these tools for better PDF history / comparison in git.

These scripts require imagemagick and poppler. Both installed from homebrew.


Setup git to use a custom diff using:

@arianvp
arianvp / SSH_MACOS_SECURE_ENCLAVES.md
Last active November 9, 2026 20:04
Native Secure Enclaved backed ssh keys on MacOS

Native Secure Enclave backed ssh keys on MacOS

It turns out that MacOS Tahoe can generate and use secure-enclave backed SSH keys! This replaces projects like https://github.com/maxgoedjen/secretive

There is a shared library /usr/lib/ssh-keychain.dylib that traditionally has been used to add smartcard support to ssh by implementing PKCS11Provider interface. However since recently it also implements SecurityKeyProivder which supports loading keys directly from the secure enclave! SecurityKeyProvider is what is normally used to talk to FIDO2 devices (e.g. libfido2 can be used to talk to your Yubikey). However you can now use it to talk to your Secure Enclave instead!

@0xBakeer
0xBakeer / voxel-pagoda-city-prompt.md
Last active November 9, 2026 20:03
Voxel Pagoda City: the build prompt

Build "Voxel Pagoda City": a huge, living, procedurally generated Japanese city of pagodas, as ONE self-contained file named index.html in the current working directory.

GROUND RULES (read first)

  • Work only inside the current working directory. Create exactly one file: ./index.html. Do not read, list, move, upload or change any other file on this computer, and do not assume any username, home folder, operating system or installed app.
  • No build step, no bundler, no npm install, no local assets, no image textures, no external models. Inline CSS plus ONE inline <script type="module">. Third-party code only through an importmap pointing at a public CDN.
  • The page must work in two ways: double-click to open from disk (file://), and through any static server (python3 -m http.server, npx serve). It must open in a current Chrome, Edge, Firefox or Safari with ZERO console errors.
  • Everything is generated from code and a seed. Same seed, same city, on every machine.

STACK (exactly)

  • three@0.186.1 thro
@0x8008
0x8008 / honor.md
Created August 25, 2026 14:26
Honor firmware links

Honor firmware links

Decrypted from firmware_links_cache.json. Entries: 16752.

Model name Version Download
PCManager-ARM64 18.0.1.59 Download
ABR-L03 9.0.0.253 Download
ABR-L03 9.0.0.254 Download
ABR-L03 9.0.0.261 Download