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
@Limbicnation
Limbicnation / run_open-webui.sh
Created October 15, 2024 12:44
Run Open Web UI on Ubuntu 22.04
#!/bin/bash
# Define the directory where Open-WebUI is located
OPEN_WEBUI_DIR="$HOME/GitHub/open-webui"
# Define the port to run Open-WebUI on
WEBUI_PORT=7860 # Replace this with your desired port number
# Navigate to the Open-WebUI directory
if cd "$OPEN_WEBUI_DIR"; then
@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
@Limbicnation
Limbicnation / gitattributes
Last active February 26, 2025 17:20
This .gitattributes file is configured for an Unreal Engine project optimized for use with Git LFS.
# Unreal Engine specific content (optimized for WSL)
*.uasset filter=lfs diff=lfs merge=lfs -text
*.umap filter=lfs diff=lfs merge=lfs -text
# Source code and text files (with explicit line endings)
*.cpp text eol=lf
*.h text eol=lf
*.ini text eol=lf
*.uproject text eol=lf
*.txt text eol=lf
@Limbicnation
Limbicnation / ubuntu_cleanup.sh
Last active May 19, 2025 18:08
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
# Enhanced Ubuntu Cleanup Script
# This script performs comprehensive system cleanup while maintaining security and robustness
# Configuration variables (can be moved to a separate config file)
CONFIG_FILE="${HOME}/.config/ubuntu_cleanup.conf"
LOG_DIR="/var/log/system_cleanup"
LOG_FILE="${LOG_DIR}/cleanup_$(date +%Y%m%d_%H%M%S).log"
DRY_RUN=0
@Limbicnation
Limbicnation / lattice-structure.h
Last active February 27, 2025 16:50
VEX lattice-Structure
// From Algorithmic Design Workbook with Houdini https://app.gumroad.com/d/782fb33b45a3bbc40fdc24d9196cb6ec
// https://www.tokeru.com/cgwiki/index.php?title=HoudiniVex#Attributes_vs_variables
int npnt = nearpoint(1,@P);
vector targetpos = point(1, 'P', npnt);
float dist = distance(@P, targetpos);
@Limbicnation
Limbicnation / download_multiple_images.py
Created August 27, 2019 14:38 — forked from svecon/download_multiple_images.py
Download multiple images using Python
import requests
def DownloadImage(pic_url_prefix, pic_name):
with open(pic_name, 'wb') as handle:
response = requests.get(pic_url_prefix+pic_name, stream=True)
if not response.ok:
print(pic_url_prefix+pic_name, response)
for block in response.iter_content(1024):
@Limbicnation
Limbicnation / download_flickr_image.py
Created August 27, 2019 13:25 — forked from yunjey/download_flickr_image.py
downloading images from flickr using python-flickr
# First, you should install flickrapi
# pip install flickrapi
import flickrapi
import urllib
from PIL import Image
# Flickr api access key
flickr=flickrapi.FlickrAPI('c6a2c45591d4973ff525042472446ca2', '202ffe6f387ce29b', cache=True)