Skip to content

Instantly share code, notes, and snippets.

View belst-n's full-sized avatar
🏠
Can't chat, in IRL.

BCE belst-n

🏠
Can't chat, in IRL.
  • AETNET
View GitHub Profile
#!/bin/bash
# This file will be sourced in init.sh
# https://raw.githubusercontent.com/ai-dock/comfyui/main/config/provisioning/flux1-dev.sh
# Packages are installed after nodes so we can fix them...
if [ -z "${HF_TOKEN}" ]; then
echo "HF_TOKEN is not set. Exiting."
@belst-n
belst-n / remove-hidden-civitai-users.js
Created July 16, 2024 05:17
Quick script to iterate over all hidden users on Civitai.com and remove them.
function clickAndWait(index) {
const elements = document.querySelectorAll('.mantine-Group-root.mantine-1u5ck20 button.mantine-UnstyledButton-root.mantine-ActionIcon-root.mantine-1nf78q7');
if (index >= elements.length) return;
elements[index].click();
setTimeout(() => clickAndWait(index + 1), 1000);
}
clickAndWait(0);
@belst-n
belst-n / extract-here.reg
Last active July 5, 2024 07:10
Quick Windows registry change which introduces right-click context menu Extract Here to compressed Zip files. This provides extraction without the needless requirement to click through selecting CWD compressed folder filename as the destination target path. Come on, Windows.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\CompressedFolder\Shell\Extract Here]
@="Extract Here"
"Icon"="shell32.dll,44"
"Position"="Top"
[HKEY_CLASSES_ROOT\CompressedFolder\Shell\Extract Here\Command]
@="powershell.exe -noprofile -command Expand-Archive -Path '%1'"
// @name MITM
// @description MITM Yo Face
// @author Bryon Elston
// @version 1.0
// @match *://*/*
console.log("MITMYF: injected");
alert("MITMYF: injected⁰");
@belst-n
belst-n / cosmetic-annoyances.txt
Last active August 15, 2024 05:11
cosmetic annoyances filter blocklists hugging face
civitai.com###mantine-r8-tab-shop
hf.space##.info
hf.space##.warning
huggingface.co##.toast-wrap
hf.space##.toast-wrap
*##.toast-wrap
huggingface.co##/html/body/section/div/div/a/div
#warning, .toast-icon, .toast, .warn, .warning, .info, #info, .alert { display: none; }

This gist is a notes on systemd which I have noted down while reading a online documnet https://n0where.net/understanding-systemd/ and through man pages.Will keep updating it.

socket-based activation bus-based activation path-based activation device-based activation implicit dependency mapping instances and templates easy security hardening drop-ins and snippets - Override the Vanila units.

@belst-n
belst-n / userctl
Created May 22, 2024 09:16 — forked from bluca/userctl
bash completion for systemctl --user alias, save as '~/.local/share/bash-completion/completions/userctl'
# user(1) completion -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1-or-later
__systemctl() {
local mode=$1; shift 1
systemctl $mode --full --legend=no --no-pager --plain "$@" 2>/dev/null
}
__systemd_properties() {
/usr/lib/systemd/systemd --dump-bus-properties
www.reddit.com##[page-url="/r/AutoModerator/"]+* #main-content
! Blocking subreddit
www.reddit.com##:matches-path(/r/[subredditname]) shreddit-subreddit-header-buttons
www.reddit.com##shreddit-subreddit-header-buttons[prefixed-name="r/AutoModerator"]
www.reddit.com##[data-post-click-location="vote"]
www.reddit.com##[class*="xs:px-0"] > :first-child.mr-sm
www.reddit.com##[slot="vote-button"]
www.reddit.com##:xpath(/html/body/div[1]/div/div[2]/div[2]/div/div/div/div[2]/div[3]/div[1]/div[3]/div[4]/div/div/div/div[1])
reddit.com##:xpath(/html/body/div[1]/div/div[2]/div[2]/div/div/div/div[2]/div[3]/div[1]/div[3]/div[4]/div/div/div/div[1])
||www.reddit.com^$generichide,domain=www.reddit.com,important
@belst-n
belst-n / fooocus-steps-0.05.patch
Last active April 13, 2024 08:16
fooocus slider steps to 0.05 across the board, bc wtf
diff --git a/models/checkpoints/put_checkpoints_here b/models/checkpoints/put_checkpoints_here
deleted file mode 100644
index e69de29..0000000
diff --git a/models/loras/put_loras_here b/models/loras/put_loras_here
deleted file mode 100644
index e69de29..0000000
diff --git a/presets/lightning.json b/presets/lightning.json
index d1466c1..12ac430 100644
--- a/presets/lightning.json
+++ b/presets/lightning.json