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
@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 September 26, 2024 06:38
cosmetic annoyances filter blocklists hugging face
reddit.com##[bundlename="nsfw_blocking_modal"]:remove()
reddit.com##body:has(> shreddit-app > shreddit-async-loader[bundlename="app_selector"]):style(overflow: auto !important; pointer-events: auto !important;)
reddit.com##shreddit-async-loader[bundlename="app_selector"]
www.reddit.com##[bundlename="nsfw_blocking_modal"]:remove()
www.reddit.com##body:has(> shreddit-app > shreddit-async-loader[bundlename="app_selector"]):style(overflow: auto !important; pointer-events: auto !important;)
www.reddit.com##shreddit-async-loader[bundlename="app_selector"]
new.reddit.com##[bundlename="nsfw_blocking_modal"]:remove()
new.reddit.com##body:has(> shreddit-app > shreddit-async-loader[bundlename="app_selector"]):style(overflow: auto !important; pointer-events: auto !important;)
new.reddit.com##shreddit-async-loader[bundlename="app_selector"]
#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
@belst-n
belst-n / setup.sh
Last active April 28, 2024 06:28
Rough Draft - Fooocus Install and Setup
#!/bin/bash
PORT=3000
export SCREENDIR=/run/screen/S-root
echo 'startup_message off' >> /etc/screenrc
rm -f /etc/banner
touch /root/.no_auto_tmux
sed -i '/^path-exclude=\/usr\/share\/man\//d' /etc/dpkg/dpkg.cfg.d/excludes
mkdir -p /workspace
@belst-n
belst-n / unsafeWindow.user.js
Created January 15, 2024 05:52 — forked from mathiasbynens/unsafeWindow.user.js
`unsafeWindow` polyfill (for use in user scripts)
// ==UserScript==
// @name Emulate `unsafeWindow` in browsers that don’t support it.
// ==/UserScript==
// http://mths.be/unsafewindow
window.unsafeWindow || (
unsafeWindow = (function() {
var el = document.createElement('p');
el.setAttribute('onclick', 'return window;');
return el.onclick();