Skip to content

Instantly share code, notes, and snippets.

@madebyollin
madebyollin / notes_on_sd_vae.md
Last active November 13, 2025 09:09
notes_on_sd_vae

Notes / Links about Stable Diffusion VAE

Stable Diffusion's VAE is a neural network that encodes images into a compressed "latent" format and decodes them back. The encoder performs 48x lossy compression, and the decoder generates new detail to fill in the gaps.

(Calling this model a "VAE" is sort of a misnomer - it's an encoder with some very slight KL regularization, and a conditional GAN decoder)

This document is a big pile of various links with more info.

@kinnala
kinnala / gist:7c12a384f2bad41f77cc1976e155d9ad
Created December 16, 2020 12:48
Compiling UxPlay and ludimus on NixOS

Following environment allows compiling both:

nix-shell -p cmake openssl pkgconfig gst_all_1.gstreamer gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good gst_all_1.gst-plugins-ugly gst_all_1.gst-plugins-bad pcre.dev avahi-compat gst_all_1.gst-libav libplist libunwind

However, I'm unable to connect with iPad or iPhone even after opening all ports on NixOS. WIP

@BrennanBarker
BrennanBarker / shovelpass.py
Created November 19, 2020 19:38
look for an environment variable before using get pass
"""First check environment variables for a password, if not then use `getpass`.
You might set the environment variable ahead of time with (from a shell)::
read -s secret
export secret
"""
import os, getpass
@Warchant
Warchant / sonarqube-docker-compose.yml
Last active June 30, 2025 15:13
docker-compose file to setup production-ready sonarqube
version: "3"
services:
sonarqube:
image: sonarqube
expose:
- 9000
ports:
- "127.0.0.1:9000:9000"
networks: