Skip to content

Instantly share code, notes, and snippets.

View Limbicnation's full-sized avatar
🎨
Art

Gero Doll Limbicnation

🎨
Art
View GitHub Profile
@Limbicnation
Limbicnation / gist:efa034c62e1e47bb82570c221c8385a4
Created February 26, 2025 11:31
cleanup_cache.sh A specialized cache cleanup utility for Ubuntu 24.04 that targets development and application caches. This script efficiently removes cache files from various sources including pip, npm, yarn, Conda, Docker, CMake build directories, Hugging Face, PyTorch, TensorFlow, and browser caches. Features parallel processing, backup capab…
#!/bin/bash
# Enhanced cleanup_cache.sh for Ubuntu 24.04
# Security and efficiency improvements
# Enable error handling and safety features
set -e # Exit on error
set -u # Exit on undefined variables
set -o pipefail # Exit on pipe failures
@tado
tado / animation.py
Last active February 21, 2025 05:37
Simple animation sketch for p5 python
from p5 import *
import random
width = 1280
height = 720
circle_count = 400
circles = []
def setup():
size(width, height)
@Limbicnation
Limbicnation / run_cumfyui.sh
Last active February 26, 2025 17:20
Run ComfyUI on Ubuntu 22.04
#!/bin/bash
# Define the directory where ComfyUI is located
COMFYUI_DIR="$HOME/GitHub/ComfyUI"
# Check if Conda is installed
if ! command -v conda &> /dev/null; then
echo "Error: Conda is not installed. Please install Conda and try again."
exit 1
fi
@Limbicnation
Limbicnation / run_comfyui_wsl.sh
Created October 7, 2024 20:46
The run_comfyui_wsl.sh script is a bash script designed for automating the process of updating and running the ComfyUI project in a WSL (Windows Subsystem for Linux) environment.
#!/bin/bash
# Source Conda environment script to make 'conda' available in WSL
if [ -f "/home/username/anaconda3/etc/profile.d/conda.sh" ]; then
source "/home/username/anaconda3/etc/profile.d/conda.sh"
else
echo "Conda initialization script not found. Please check your Conda installation."
exit 1
fi
@cubiq
cubiq / FLUX_Latent_Detailer.json
Last active March 3, 2025 09:44
FLUX dev Latent Space Detailer
{
"last_node_id": 469,
"last_link_id": 1401,
"nodes": [
{
"id": 16,
"type": "KSamplerSelect",
"pos": [
-280,
20
@Limbicnation
Limbicnation / ubuntu_cleanup.sh
Last active October 15, 2025 07:34
ubuntu_cleanup.sh A comprehensive system cleanup script for Ubuntu 24.04 that safely removes unnecessary files to free up disk space. This script includes system maintenance tasks like package cleanup, log rotation, cache removal, and system optimization. Features include progress tracking, disk space reporting, resource limiting, and extensive …
#!/usr/bin/env bash
# Security-Hardened Ubuntu Cleanup Script
# This script performs comprehensive system cleanup with enterprise-grade security
# EXCLUDES: hy3dgen folder from any deletion operations
#
# Security improvements:
# - Comprehensive error handling with trap handlers
# - Safe configuration loading without arbitrary code execution
# - APT and script-level locking mechanisms
@arcanite24
arcanite24 / gist:fa69b647552fe6f067c888dfc31737a8
Created July 21, 2023 15:11
SDXL Pixel Art ComfyUI Workflow
{
"last_node_id": 47,
"last_link_id": 63,
"nodes": [
{
"id": 7,
"type": "CLIPTextEncode",
"pos": [
317,
352
@indyfromoz
indyfromoz / VNC_Server_On_Ubuntu_22.04LTS.md
Last active July 23, 2025 12:55
VNC Server setup on Ubuntu 22.04 LTS

Setup

Install TigerVNC -

$ sudo apt install tigervnc-standalone-server

Configure VNC Server by running

@robgon-art
robgon-art / create_gradient_image_with_clip.py
Last active July 16, 2022 04:20
create a gradient image with CLIP
# Copyright © 2022 Robert A. Gonsalves
# Released under CC BY-SA 4.0
# https://creativecommons.org/licenses/by-sa/4.0/
import torchvision.transforms as T
import torch
prompt = "penguins skiing down a snowy mountain"
num_steps = 100
init_rand_amount = 0.25
@Navaneethsen
Navaneethsen / gist:c737e4a8343e82e0dbc466829277a139
Created August 12, 2021 21:13
Install NVIDIA DOCKER in Ubuntu 20.04 with CUDA 11.1
sudo apt-get update
sudo apt-get upgrade
sudo apt-get --purge remove "*cublas*" "*cufft*" "*curand*" "*cusolver*" "*cusparse*" "*npp*" "*nvjpeg*" "cuda*" "nsight*"
sudo apt-get --purge remove "*nvidia*"
sudo apt-get autoremove
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget https://developer.download.nvidia.com/compute/cuda/11.1.1/local_installers/cuda-repo-ubuntu2004-11-1-local_11.1.1-455.32.00-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu2004-11-1-local_11.1.1-455.32.00-1_amd64.deb