Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View audioscavenger's full-sized avatar

Eric audioscavenger

View GitHub Profile
@audioscavenger
audioscavenger / api_comfyui-img2img.py
Last active February 29, 2024 15:51
ComfyUI for stable diffusion: API call script to run automated workflows
# https://gist.github.com/audioscavenger/0471b389b88ce3a3998d510832affed9
# 1. install ComfyUI-Custom-Scripts: cd E:\GPT\ComfyUI\custom_nodes\ && git clone https://github.com/pythongosssss/ComfyUI-Custom-Scripts
# 2. enable dev mode options
# 3. save workflow in API format
# 4. python api_comfyui-img2img.py -w E:\GPT\ComfyUI\output\ComfyUI-workflow-recolor-api.json -i E:\GPT\ComfyUI\output\image-grey.jpg -o outputPrefix
# NOTE: Saving image outside the output folder is not allowed.
import getopt, sys, os
import json, urllib, random
from urllib import request, parse
@audioscavenger
audioscavenger / Securing-SWAG.md
Created December 30, 2021 05:37 — forked from quietsy/Securing-SWAG.md
Securing SWAG

Securing SWAG

SWAG - Secure Web Application Gateway (formerly known as linuxserver/letsencrypt) is a full fledged web server and reverse proxy with Nginx, PHP7, Certbot (Let's Encrypt™ client) and Fail2Ban built in. SWAG allows you to expose applications to the internet, doing so comes with a risk and there are security measures that help reduce that risk. This article details how to configure SWAG and enhance it's security.

This article assumes that you already have a functional SWAG setup. Following is the compose yaml used to create the SWAG container referenced in this article. Keep in mind your local mount paths will be different so adjust accordingly.

---
version: "2.1"
services:
  swag:
@audioscavenger
audioscavenger / owncloud client 2.5.4 logs + nginx
Created June 23, 2019 21:08
owncloud client 2.5.4 logs + nginx / owncloud 10.2.0
server side nginx logs when client 2.5.4 tries to connect:
172.17.0.1 - - [23/Jun/2019:16:59:43 -0400] "GET /status.php HTTP/1.0" 200 154 "-" "Mozilla/5.0 (Windows) mirall/2.5.4 (build 11415)"
172.17.0.1 - - [23/Jun/2019:16:59:44 -0400] "GET /remote.php/webdav/ HTTP/1.0" 401 412 "-" "Mozilla/5.0 (Windows) mirall/2.5.4 (build 11415)"
172.17.0.1 - - [23/Jun/2019:16:59:45 -0400] "PROPFIND /remote.php/webdav/ HTTP/1.0" 401 412 "-" "Mozilla/5.0 (Windows) mirall/2.5.4 (build 11415)"
=> then password window pops up
172.17.0.1 - username [23/Jun/2019:17:05:32 -0400] "GET /status.php HTTP/1.0" 200 154 "-" "Mozilla/5.0 (Windows) mirall/2.5.4 (build 11415)"
172.17.0.1 - username [23/Jun/2019:17:05:32 -0400] "PROPFIND /remote.php/webdav/ HTTP/1.0" 207 342 "-" "Mozilla/5.0 (Windows) mirall/2.5.4 (build 11415)"
172.17.0.1 - username [23/Jun/2019:17:05:32 -0400] "GET /ocs/v1.php/cloud/capabilities?format=json HTTP/1.0" 200 1471 "-" "Mozilla/5.0 (Windows) mirall/2.5.4 (build 11415)"
@audioscavenger
audioscavenger / gist:96bf138a4d6a703dc3a7844e7a0d8fe6
Created June 5, 2019 21:53
owncloud testpilotcloud.exe 2.6.0alpha1 client log cannot connect to owncloud server 10.0.10
06-05 14:38:52:123 [ info gui.application ]: "################## testpilotcloud locale:[en_US] ui_lang:[] version:[2.6.0alpha1 (build 11574)] os:[Windows 10 (10.0)]"
06-05 14:38:52:124 [ info gui.application ]: Using "en_US" translation
06-05 14:38:52:125 [ info gui.application ]: Adding extra plugin search path: "C:/CraftMaster/windows-msvc2017_32-cl/lib/testpilotcloud/plugins"
06-05 14:38:52:125 [ warning plugins ]: Plugin failed to load: "Cannot load library C:\\Program Files (x86)\\testpilotcloud\\testpilotcloudsync_vfs_win.dll: The specified module could not be found."
06-05 14:38:52:125 [ warning plugins ]: Plugin failed to load: "Cannot load library C:\\Program Files (x86)\\testpilotcloud\\testpilotcloudsync_vfs_win.dll: The specified module could not be found."
06-05 14:38:52:125 [ info gui.application ]: VFS suffix plugin is available
06-05 14:38:52:125 [ info gui.socketapi ]: server started, listening at "\\\\.\\pipe\\testpilotcloud-windowsAccountName"
06-05 14:38:52:125 [ info gui.folder.manager ]
@audioscavenger
audioscavenger / how to install entware on ARM.md
Created March 23, 2018 22:41 — forked from dreamcat4/how to install entware on ARM.md
Install entware on ARM based router eg tomato / ddwrt / asus-merlin cfw
@audioscavenger
audioscavenger / .vimrc
Last active February 25, 2018 22:18 — forked from simonista/.vimrc
A basic .vimrc file that will serve as a good template on which to build.
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
" TODO: Load plugins here (pathogen or vundle)
" Turn on syntax highlighting
syntax on