Skip to content

Instantly share code, notes, and snippets.

View WizardlyBump17's full-sized avatar

Davi Henrique Linhares WizardlyBump17

View GitHub Profile
@WizardlyBump17
WizardlyBump17 / Containerfile
Last active September 4, 2025 21:45
ComfyUI + the minimal packages needed to use an Intel Arc GPU under a container + Python 3.11 and pip
#Base image: https://gist.github.com/WizardlyBump17/bd1d8e1d1ad5918dd8dbf126c87d1e01 built with Python 3.11
FROM localhost/intel-gpu-driver-minimal-python3.11
RUN apt update \
&& apt upgrade -y \
&& apt install -y \
git \
libze-intel-gpu1 \
libze-dev \
intel-ocloc
@WizardlyBump17
WizardlyBump17 / Containerfile
Created September 4, 2025 21:41
The minimal packages needed to use an Intel Arc GPU under a container + Python and pip
#Base image: https://gist.github.com/WizardlyBump17/f1dd5d219861779c18cc3dd33f2575a1
FROM localhost/intel-gpu-driver-minimal
#To change the Python version, use `--build-arg PYTHON_VERSION=<version>` when building
ARG PYTHON_VERSION=3.11
RUN apt update \
&& apt upgrade -y \
&& add-apt-repository -y ppa:deadsnakes/ppa \
&& apt install -y \
wget \
@WizardlyBump17
WizardlyBump17 / Containerfile
Last active September 4, 2025 02:37
Containerfile for creating containers with Ollama to run on Intel Arc GPUs
#Base image: hhttps://gist.github.com/WizardlyBump17/f8a36f0197f7d2bdad957a2a0046d023
FROM localhost/intel-gpu-driver-minimal-oneapi
#The libze-intel-gpu1 package is needed for the `export ONEAPI_DEVICE_SELECTOR=level_zero:0`, otherwise nothing will work
RUN apt update \
&& apt upgrade -y \
&& apt install -y libze-intel-gpu1 \
&& add-apt-repository -y ppa:deadsnakes/ppa \
&& apt install -y \
python3.11
@WizardlyBump17
WizardlyBump17 / Containerfile
Created September 2, 2025 22:46
The minimal packages needed to use an Intel Arc GPU under a container + oneAPI. The official driver installation guide can be found at https://dgpu-docs.intel.com/driver/client/overview.html and the installation guide for oneAPI can be found at https://www.intel.com/content/www/us/en/docs/oneapi/installation-guide-linux/2025-2/base-apt.html#BASE…
#base image built from https://gist.github.com/WizardlyBump17/f1dd5d219861779c18cc3dd33f2575a1
FROM localhost/intel-gpu-driver-minimal
RUN apt update \
&& apt upgrade -y \
&& apt install -y \
wget \
build-essential
RUN wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \
@WizardlyBump17
WizardlyBump17 / Containerfile
Last active September 2, 2025 22:50
The minimal packages needed to use an Intel Arc GPU under a container. The official driver installation is from https://dgpu-docs.intel.com/driver/client/overview.html
FROM docker.io/ubuntu:24.04
RUN apt update
RUN apt upgrade -y
RUN apt install -y software-properties-common
RUN add-apt-repository -y ppa:kobuk-team/intel-graphics
#add libze-intel-gpu1 if you want to run stuff like Ollama and use `export ONEAPI_DEVICE_SELECTOR=level_zero:0`
RUN apt install -y \
@WizardlyBump17
WizardlyBump17 / Dockerfile
Last active July 25, 2025 20:04
Dockerfile for kohya_ss on Intel Arc B580
FROM docker.io/intel/intel-extension-for-pytorch:2.7.10-xpu
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update && apt upgrade -y
RUN apt install -y \
libgl1 \
python3-tk
RUN git clone https://github.com/WizardlyBump17/kohya_ss --recurse-submodules
WORKDIR kohya_ss
@WizardlyBump17
WizardlyBump17 / download-paper.sh
Created November 21, 2024 20:11
a script to download software from Paper
help() {
echo "Usage: ./$0 [project] [version] [output]"
exit 0
}
check_command() {
if ! [ -x "$(command -v $1)" ]; then
echo "The $1 command is not available. Install the package related to it and run this script again."
exit 1
fi
@WizardlyBump17
WizardlyBump17 / Coord.java
Created August 9, 2024 21:36
Some methods to compress coordinates
import java.util.Arrays;
public class Coord {
public static void main(String[] args) {
int x = (int) -Math.pow(2, 32);
int y = (int) Math.pow(2, 23) - 1;
int z = (int) Math.pow(2, 32);
int chunkX = x >> 4;
@WizardlyBump17
WizardlyBump17 / Bomba1e2.java
Last active July 16, 2024 02:05
Some bombastic code to apply placeholders, parse strings (input: "test 123" a b, output: [test 123, a, b] and trim strings (input: a b, output: a b)
package com.wizardlybump17.tests.generic;
import lombok.NonNull;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Bomba1e2 {
@WizardlyBump17
WizardlyBump17 / basic.ini
Created May 23, 2024 19:43
Profile for Linux, 2160x1080, mpeg2video, bitrate 150M, pcm_s32le 192Kbps. Works on Davinci Resolve
[General]
Name=Profile name
[Output]
Mode=Advanced
FilenameFormatting=%CCYY-%MM-%DD %hh-%mm-%ss
DelayEnable=false
DelaySec=20
DelayPreserve=true
Reconnect=true