Skip to content

Instantly share code, notes, and snippets.

@orfeomorello
orfeomorello / llms.txt
Created September 5, 2026 06:16
A practical brief for AI agents: how to publish a static app or SPA on Nostr (nsite) — the checklist every app must pass, exact deploy commands, and the failure modes nobody warns you about (MIME repair, ad-blocker false positives, CSP-in-meta traps). Proven on a real WebGPU app deployment.
# Publishing a static app on Nostr (nsite)
> This file is the brief for an agent. If you are about to publish a web app,
> a SPA, or any static site on Nostr, read all of it before you start. It tells
> you what an nsite is, which apps can be published as-is, the checklist every
> app must pass, and the exact commands to get it online. It is written from a
> real deployment: a WebGPU SPA (an AI image upscaler, ~70 MB across 41 files)
> published with nsite-clay and served at
> https://npub1zg0q8fgl8a5j3e9e6c8yyrkmhn7k6ww0t92ga5c39n5ppwwmrlfq8y4xlj.nsite.lol/
@orfeomorello
orfeomorello / Wan22-5B-FLF-A770-320x192-v1.json
Created August 17, 2026 14:16
Tested low-VRAM ComfyUI workflow for Wan 2.2 TI2V 5B first/last-frame animation on Intel Arc A770 16GB.
{
"id": "a770-wan22-5b-flf-320",
"revision": 0,
"last_node_id": 14,
"last_link_id": 14,
"nodes": [
{
"id": 1,
"type": "UNETLoader",
"pos": [
@orfeomorello
orfeomorello / MiniMax-H3-Turbo-A770-Experimental-v1.json
Created August 17, 2026 14:16
Experimental MiniMax-H3 Turbo GGUF text-to-video workflow for Intel Arc A770 16GB with 32GB RAM and offloading.
{"id":"minimax-h3-turbo-gguf-a770-16gb-v2","revision":0,"last_node_id":12,"last_link_id":13,"nodes":[
{"id":1,"type":"UnetLoaderGGUFAdvanced","pos":[520,-420],"size":[410,170],"flags":{},"order":0,"mode":0,"inputs":[],"outputs":[{"name":"MODEL","type":"MODEL","links":[1]}],"title":"Turbo GGUF Q3_K_M — 8.72 GB","properties":{"cnr_id":"comfyui-gguf-loader","ver":"1.0.1","Node name for S&R":"UnetLoaderGGUFAdvanced"},"widgets_values":["minimax_h3_fl2va_turbo_Q3_K_M.gguf","target","float16",true]},
{"id":2,"type":"CCTechClipProjLoader","pos":[20,-420],"size":[430,150],"flags":{},"order":1,"mode":0,"inputs":[],"outputs":[{"name":"CLIP","type":"CLIP","links":[2,3]}],"title":"Qwen3-VL 4B + MiniMax-H3 ClipProj","properties":{"cnr_id":"comfyui-gguf-loader","ver":"1.0.1","Node name for S&R":"CCTechClipProjLoader"},"widgets_values":["qwen3vl_4b_fp8_scaled.safetensors","auto","mmh3-4b-ClipProj-v3-mlp.safetensors"]},
{"id":3,"type":"CCTechDualVAELoader","pos":[980,-420],"size":[430,135],"flags":{},"order":2,"mode":0,"input
@orfeomorello
orfeomorello / MiniMax-H3-Turbo-FLF-A770-Experimental-v1.json
Created August 17, 2026 14:16
Tested MiniMax-H3 Turbo FL2VA first/last-frame workflow for Arc A770 16GB: 600x800, 4 steps, about 3 seconds in 7 minutes.
{
"id": "minimax-h3-turbo-flf-gguf-a770-16gb-v1",
"revision": 0,
"last_node_id": 14,
"last_link_id": 16,
"nodes": [
{
"id": 1,
"type": "UnetLoaderGGUFAdvanced",
"pos": [20, -420],
@orfeomorello
orfeomorello / Calendario2026.html
Created January 3, 2026 13:01
Calendario 2026 personalizzabile con santi e fasi lunari
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<title>Calendario 2026 - Personalizzabile</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700&family=Roboto:wght@400;700;900&display=swap');
:root {
/* Variabili modificabili via JS */
@orfeomorello
orfeomorello / app.py
Created February 8, 2024 15:04
Stable Diffusion Turbo example for Intel Arc A770 running with IPEX (intel extension for pytorch)
from diffusers import AutoPipelineForText2Image, DPMSolverMultistepScheduler, AutoencoderKL
import torch
import intel_extension_for_pytorch as ipex
# Initialize LoRA model and weights
#lora_model_id = "Linaqruf/style-enhancer-xl-lora"
#lora_filename = "style-enhancer-xl.safetensors"
#FOR REAL PHOTO AND ART
@orfeomorello
orfeomorello / how-to-compile-raspberry.txt
Created October 20, 2017 15:35
Best Compilation Flags for Raspberry
If you have Raspberry 2 (V1.1): Broadcom BCM2836 ARMv7 Quad Core 32bit Processor, running at 900MHz.
./configure CFLAGS="-Ofast -mtune=cortex-a7 -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -ffast-math" CXXFLAGS="-Ofast -mtune=cortex-a7 -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -ffast-math"
If you have Raspberry 3
./configure CFLAGS="-Ofast -mtune=cortex-a53 -mcpu=cortex-a53 -mfloat-abi=hard -mfpu=neon-fp-armv8 -mneon-for-64bits -ffast-math" CXXFLAGS="-Ofast -mtune=cortex-a53 -mcpu=cortex-a53 -mfloat-abi=hard -mfpu=neon-fp-armv8 -mneon-for-64bits -ffast-math"
Launch the "make" command to force the code to compile always
@orfeomorello
orfeomorello / functions.php
Last active May 21, 2022 19:06
Customize Wordpress Profile
function remove_personal_options(){
echo '<script type="text/javascript">jQuery(document).ready(function($) {
$(\'form#your-profile > h2:first\').remove(); // remove the "Personal Options" title
$(\'form#your-profile tr.user-rich-editing-wrap\').remove(); // remove the "Visual Editor" field
$(\'form#your-profile tr.user-admin-color-wrap\').remove(); // remove the "Admin Color Scheme" field
$(\'form#your-profile tr.user-comment-shortcuts-wrap\').remove(); // remove the "Keyboard Shortcuts" field
/* How to add additional field in user profile add-edit in wordpress start */
add_action( 'show_user_profile', 'custom_user_fields' );
add_action( 'edit_user_profile', 'custom_user_fields' );
add_action( "user_new_form", "custom_user_fields" );
function custom_user_fields( $user )
{
$user_fb_link = get_the_author_meta( 'user_fb_link', $user->ID);
$user_gender = get_the_author_meta( 'user_gender', $user->ID);
?>
<h3><?php _e("Custom User information", "blank"); ?></h3>
<?php
/*
Plugin Name: Simplify Post Edit List
Description: Show only the author's posts in the edit list
Version: 0.1
License: GPL
Author: Sarah Gooding
*/
function mypo_parse_query_useronly( $wp_query ) {