Skip to content

Instantly share code, notes, and snippets.

View GabrielVidal1's full-sized avatar

Gabriel Vidal GabrielVidal1

View GitHub Profile
@GabrielVidal1
GabrielVidal1 / setCorrectDate.sh
Created October 12, 2022 08:22
Set correct date to glanceback downloaded pictures
#!/bin/bash
find . -name '*.png' -type f -exec sh -c '
for file do
touch -t $(echo "${file%.*}0900" | sed -E "s/-//g" | cut -c3-) ${file}
done' sh {} +
import os.path
import modules.scripts as scripts
import gradio as gr
from modules import sd_samplers, shared
from modules.processing import Processed, process_images
class Script(scripts.Script):
# Vars
ROOT=/workspace
SD_DIR=sd
MODEL_DIR=$ROOT/$SD_DIR/models/Stable-diffusion
VENV=env
GRADIO_AUTH=user:password123
SD_REPO=https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
# Install packages
apt update