Skip to content

Instantly share code, notes, and snippets.

@DanielHauschildt
DanielHauschildt / README.md
Last active August 15, 2026 11:13
LTX-2.5 text-to-video locally on Apple Silicon in one command — with audio, no ComfyUI/CUDA. 16x faster than PyTorch-on-MPS (53s vs 853s) via macOS 26 watchdog + eval-guard fixes.

LTX-2.5 on Apple Silicon, one command

Generate video — with audio — locally on your Mac. No ComfyUI, no CUDA. The first run bootstraps everything itself: the MLX runtime, the Python env, and a one-time ~36 GiB weight download.

curl -fsSL https://gist.githubusercontent.com/DanielHauschildt/9ad1d7cef482ed508a121881280b74dd/raw/generate -o generate
chmod +x generate
./generate "A wide shot frames a rainy city intersection at dusk, neon signs reflecting on wet asphalt. A young woman in a yellow raincoat walks toward camera, gripping a folded newspaper, while cars hiss past behind her. Soft synth music and distant traffic fill the air. A hard cut transitions to a medium close-up of her face under the hood, raindrops catching the neon as she looks off-screen left; the synth score continues across the cut, traffic muffled. She whispers, “He's late.” Another hard cut jumps to a low-angle shot of a man's scuffed boots stepping into a puddle at the curb; the music drops to a low drone. He lifts his head
@froelen
froelen / vencord-quick.css
Last active August 15, 2026 11:13
Hide the Nitro, Shop, and Quests tabs in Discord's DMs list with this Vencord QuickCSS!
/* Hides Nitro, Shop, and Quests tabs above the Direct Messages list */
#app-mount > div.appAsidePanelWrapper_a3002d > div > div.app_a3002d > div > div.layers__960e4.layers__160d8 > div > div > div > div.content__5e434 > div.sidebar__5e434.theme-dark.theme-darker.images-dark > div.sidebarList__5e434 > nav > div.scroller__99e7c.thin_d125d2.scrollerBase_d125d2.fade_d125d2 > ul > div:nth-child(3),
#app-mount > div.appAsidePanelWrapper_a3002d > div > div.app_a3002d > div > div.layers__960e4.layers__160d8 > div > div > div > div.content__5e434 > div.sidebar__5e434.theme-dark.theme-darker.images-dark > div.sidebarList__5e434 > nav > div.scroller__99e7c.thin_d125d2.scrollerBase_d125d2.fade_d125d2 > ul > li:nth-child(4),
#app-mount > div.appAsidePanelWrapper_a3002d > div > div.app_a3002d > div > div.layers__960e4.layers__160d8 > div > div > div > div.content__5e434 > div.sidebar__5e434.theme-dark.theme-darker.images-dark > div.sidebarList__5e434 > nav > div.scroller__99e7c.thin_d125d2.scrollerBase_d125d2.fade_d125d2
@jdhitsolutions
jdhitsolutions / PSStyleFileInfoTools.ps1
Created January 21, 2022 18:47
A set of functions for exporting and importing FileInfo settings from $PSStyle in PowerShell 7.2.
#requires -version 7.2
<#
These commands can be used to export FileInfo settings from $PSStyle and
then import them in another session. You might use the import command in
your PowerShell profile script. The file must be a json file.
#>
Function Export-PSStyleFileInfo {
[cmdletbinding(SupportsShouldProcess)]
Param(
@Nsarkar-XLR8
Nsarkar-XLR8 / .github_workflows_deploy.yml
Created August 15, 2026 11:07
CI/CD Pipeline in Locally
name: Deploy to VPS
# Triggers a deploy whenever main is pushed to.
# Manual trigger also available via the Actions tab (workflow_dispatch).
on:
push:
branches: [main]
workflow_dispatch:
jobs:
@jdhitsolutions
jdhitsolutions / ProcessManager.ps1
Created June 24, 2022 17:18
This is a revised version of an AnyBox example.
#requires -version 5.1
#requires -RunasAdministrator
#requires -module AnyBox
# https://www.fresh2.dev/doc/anybox/
# this is a revised version of the example at https://github.com/fresh2dev/AnyBox/blob/main/Examples/Process-Mgr.ps1
Param([string]$Computername = $env:Computername)
$anybox = New-Object AnyBox.AnyBox
@satwikkansal
satwikkansal / cheatsheet.cpp
Last active August 15, 2026 11:06
C++ STL cheatsheet for competitive progrmming
/*
This a header file that includes every standard library.
You can use it to save time.
NOTE: This header file may not be recognized by compilers
other than gcc.
*/
#include <bits/stdc++.h>
/*
//Use this if the above header file doesn't work.
@jinjier
jinjier / javdb-top250.md
Last active August 15, 2026 11:05
JavDB top 250 movies list. [Updated on 2026/01]
@jdhitsolutions
jdhitsolutions / Show-Domain.ps1
Created February 15, 2021 15:06
A PowerShell script to display an Active Directory domain in colorized and tree form.
# requires -versoin 5.1
# requires -module ActiveDirectory
Function Show-DomainTree {
[cmdletbinding()]
[OutputType("String")]
[alias("dt")]
Param(
[Parameter(Position = 0, HelpMessage = "Specify the domain name. The default is the user domain.")]
[ValidateNotNullOrEmpty()]
[string]$Name = $env:USERDOMAIN,
@rebane2001
rebane2001 / evil-tailwind.html
Last active August 15, 2026 11:01
Monkey-patch Tailwind CSS to also support attributes (outside of classes)
<script>
const original_querySelectorAll = document.querySelectorAll;
document.querySelectorAll = function () {
if (arguments?.[0] == "[class]" && (new Error().stack).split("\n").filter(e=>e!="Error")?.[1]?.includes?.("tailwindcss/browser"))
return [...original_querySelectorAll.apply(document,["*"])].map(e=>({classList:[...e.classList,...[...e.attributes].map(x=>x.name.replace(/⁄/g,'/'))]}));
return original_querySelectorAll.apply(document,arguments);
}
const original_push = Array.prototype.push;
Array.prototype.push = function () {
if ((s=(new Error().stack).split("\n").filter(e=>e!="Error")?.[1],s)?.includes?.("enter")

Roblox Performance FFlags

Infinite FPS

{
    "DFIntTaskSchedulerTargetFps": "2147483647",
    "FFlagTaskSchedulerLimitTargetFpsTo2402": "False"
}

MSAA Override