Skip to content

Instantly share code, notes, and snippets.

View regiellis's full-sized avatar

_its.just.regi_ regiellis

View GitHub Profile
@regiellis
regiellis / nero.py
Last active November 6, 2024 04:07
Simple Script to help with downloading and manging the InvokeAI official installer
#!/usr/bin/env python3
"""
MIT License
Copyright (c) 2024 itsjustregi (Regi E. [email protected])
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
@regiellis
regiellis / invoke-hot-reload.sh
Last active November 4, 2024 11:31
InvokeAI scripts for service and hot reload on Ubuntu
#!/usr/bin/env zsh
# Get the main directory
SCRIPT_DIR="${0:A:h}"
# Set paths relative
WATCH_DIR="$SCRIPT_DIR/nodes/" # Adjust this path as needed
RUN_INVOKEAI_SCRIPT="$SCRIPT_DIR/invoke-web.sh"
PID_FILE="$SCRIPT_DIR/invokeai.pid"
LOG_FILE="$SCRIPT_DIR/invokeai.log"
@regiellis
regiellis / comfy_hot_reload.bat
Last active February 20, 2025 21:45
ComfyUI hot-reload for custom nodes development
@echo off
setlocal enabledelayedexpansion
rem Get the main directory
set "SCRIPT_DIR=%~dp0"
rem Set paths relative
set "WATCH_DIR=%SCRIPT_DIR%ComfyUI\custom_nodes"
set "RUN_COMFY_SCRIPT=%SCRIPT_DIR%comfyui_manager.bat"
set "PID_FILE=%SCRIPT_DIR%comfyui.pid"
@regiellis
regiellis / sdxl_styles_base.json
Created September 19, 2024 17:11
Importable Preset bases
[
{
"name": "base",
"prompt": "{prompt}",
"negative_prompt": ""
}
]
@regiellis
regiellis / Caddyfile
Last active October 11, 2024 17:11
Invoke Service
# The Caddyfile is an easy way to configure your Caddy web server.
#
# Unless the file starts with a global options block, the first
# uncommented line is always the address of your site.
#
# To use your own domain name (with automatic HTTPS), first make
# sure your domain's A/AAAA DNS records are properly pointed to
# this machine's public IP, then replace ":80" below with your
# domain name.
@regiellis
regiellis / iterative_upscale.json
Last active May 1, 2024 12:01
Iterative Upscale Images Workflow
{
"last_node_id": 25,
"last_link_id": 41,
"nodes": [
{
"id": 4,
"type": "Width/Height Literal",
"pos": [
-209,
451
@regiellis
regiellis / wireless.fuse
Created March 26, 2021 14:13
Wireless Fuse
{
Tools = ordered() {
WirelessLink1 = Fuse.Wireless {
CtrlWZoom = false,
ViewInfo = OperatorInfo { Pos = { 32.7218, 477.305 } },
Version = 110
}
},
ActiveTool = "WirelessLink1"
}
@regiellis
regiellis / gist:f57f3766f25fcea0e03e46fbd009d2ab
Created October 23, 2018 19:49
PM2 fix for command not found
export PATH=~/.npm-global/bin:$PATH
# System-wide .bashrc file for interactive bash(1) shells.
# To enable the settings / commands in this file for login shells as well,
# this file has to be sourced in /etc/profile.
# If not running interactively, don't do anything
#[ -z "$PS1" ] && return
<!-- Press Windows Button + R, type “regedit”, and then click OK.
Navigate to the following registry subkey:
HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Windows > CurrentVersion > SideBySide
Right-click, select NEW > DWORD (32 bit) Value
Type PreferExternalManifest, and then press ENTER.
Right-click PreferExternalManifest, and then click Modify.
Enter Value Data 1 and select Decimal.
Click OK. Exit Registry Editor.
For reference, here is a link to a Microsoft support file on the topic: http://support.microsoft.com/kb/912949/en-usi -->
@regiellis
regiellis / ansible.cfg
Last active August 2, 2016 14:09
Ansible Config 2.2
# config file for ansible -- http://ansible.com/
# ==============================================
# nearly all parameters can be overridden in ansible-playbook
# or with command line flags. ansible will read ANSIBLE_CONFIG,
# ansible.cfg in the current working directory, .ansible.cfg in
# the home directory or /etc/ansible/ansible.cfg, whichever it
# finds first
[defaults]