Skip to content

Instantly share code, notes, and snippets.

"""
Flux.1 Kontext Official image editing engine.
Uses the official Black Forest Labs implementation.
"""
import sys
import time
import traceback
from typing import List, Optional
import numpy as np
"""
DreamOmni2 image editing/generation engine.
DreamOmni2: Multimodal Instruction-based Editing and Generation.
Based on FLUX.1-Kontext-dev with VLM enhancement.
Reference: https://arxiv.org/html/2510.06679v1
"""
import os
import sys
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JiangGua
JiangGua / neohosts.sh
Last active February 13, 2018 06:46
Yet another neoHosts updater for Openwrt/LEDE routers
wget --no-check-certificate https://raw.githubusercontent.com/neko-dev/neohosts/gh-pages/basic/hosts -O /tmp/neohosts
awk '$1 ~ /^[0-9]/ {printf("address=/%s/%s\n", $2,$1)}' /tmp/neohosts | sed -e '/Xiao/d' -e '/^$/d' > /etc/dnsmasq.d/neohosts.conf
rm /tmp/neohosts