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 "${CIVIT_AI_TOKEN}" ]; then
echo "CIVIT_AI_TOKEN is not set. Exiting."
@whazor
whazor / Reddit-filter
Created November 19, 2023 21:46
Reddit app recommendation filter
! Reddit app ad
www.reddit.com##.XPromoPopupRpl
www.reddit.com##xpromo-new-app-selector
www.reddit.com##.bottom-bar, .XPromoBottomBar
www.reddit.com##.useApp,.TopNav__promoButton
www.reddit.com##body:style(pointer-events:auto!important;)
www.reddit.com##body:style(overflow: auto !important; position: static !important;)
@belst-n
belst-n / reddit-mobile-filter-selectors.txt
Last active April 9, 2024 23:07
stupid decisions lead reddit
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"]
@vizsumit
vizsumit / filename-to-txt.bat
Created May 10, 2023 05:21
This script generates .txt caption files from .jpg file names
@echo off
for %%i in (*.jpg) do (
set filename=%%i
set caption_filename=%%~ni.txt
set caption=%%~ni
setlocal EnableDelayedExpansion
for /f "tokens=1 delims=()" %%a in ("!caption!") do (
@Frontear
Frontear / Setting Up MSYS2 as Default Terminal.md
Created February 12, 2023 02:26 — forked from Philanatidae/Setting Up MSYS2 as Default Terminal.md
Instructions to remind myself how to set up MSYS2 as my default terminal in Windows.

Setting Up MSYS2 as Default Terminal

  1. Download and install MSYS2: https://www.msys2.org/.
  2. Open MSYS2 and run pacman -Syu to update packages.
  3. Open file explorer and go to C:\msys64.
  4. Open all the INI files for the systems (clang32.ini, clang64.ini, mingw32.ini, mingw64.ini, msys2.ini) and uncomment the MSYS2_PATH_TYPE=inherit line. This allows the Windows $PATH variable to be included in the shells.
  5. Download and install Windows Terminal from the Windows store.
  6. Open the settings for Windows Terminal and click "Open JSON".
  7. Copy and paste the following objects into the "list" array under "profiles":
{
@DanEdens
DanEdens / TaskerBootPremissionsOverride.sh
Last active April 6, 2025 20:03
List of permission grants for tasker after reboot
echo=off
if [ "$1" = "--s8" ]; then
mosquitto_pub -h $awsip -p $awsport -t vars/S8_boot_patch -r -m 1
device=9888d9303354564442
else
mosquitto_pub -h $awsip -p $awsport -t vars/S10_boot_patch -r -m 1
device=RF8N82MR1VA
fi
echo Overriding security protocols for $device
@Pulimet
Pulimet / AdbCommands
Last active June 12, 2025 15:43
Adb useful commands list
Hi All!
I've recently launched a tool that wraps many of the commands here with a user interface. This desktop application is currently available for macOS. There's a roadmap outlining planned features for the near future.
Feel free to request any features you'd like to see, and I'll prioritize them accordingly.
One of the most important aspects of this application is that every command executed behind the scenes is displayed in a special log section. This allows you to see exactly what’s happening and learn from it.
Here's the link to the repository: https://github.com/Pulimet/ADBugger
App Description:
ADBugger is a desktop tool designed for debugging and QA of Android devices and emulators. It simplifies testing, debugging, and performance analysis by offering device management, automated testing, log analysis, and remote control capabilities. This ensures smooth app performance across various setups.
@aadityabhatia
aadityabhatia / registry-diff.ps1
Last active December 31, 2024 16:56
PowerShell script to create and compare snapshots of Windows Registry sections
[CmdletBinding()]
Param(
[Parameter(Position=1, Mandatory=$True)]
[string]$dataFile1,
[Parameter(Position=2, Mandatory=$True)]
[string]$dataFile2
)
$dataObj1 = cat -raw "$dataFile1.json" | ConvertFrom-Json
$dataObj2 = cat -raw "$dataFile2.json" | ConvertFrom-Json
#!/usr/bin/env python
# Linux usage: ./extract_tampermonkey_script.py "/home/<USER>/.config/<BROWSER>/Default/Local Extension Settings/<EXTENSION_ID>"
# i.e.: ./extract_tampermonkey_script.py "/home/foo/.config/google-chrome-beta/Default/Local Extension Settings/gcalenpjmijncebpfijmoaglllgpjagf"
# Mac usage: ./extract_tampermonkey_script.py "/Users/<USER>/Library/Application Support/Google/Chrome/Default/Local Extension Settings/<EXTENSION_ID>/"
# i.e.: ./extract_tampermonkey_script.py "/Users/foo/Library/Application Support/Google/Chrome/Default/Local Extension Settings/dhdgffkkebhmkfjojejmpbldmpobfkfo/"
import leveldb
import sys
import re
@johshoff
johshoff / new_bashrc.sh
Created August 11, 2012 11:05 — forked from josephwecker/new_bashrc.sh
Replace .bashrc, .bash_profile, .profile, etc. with something much more clean, consistent, and meaningful.
#!/bin/bash
# License: Public Domain.
# Author: Joseph Wecker, 2012
#
# Are you tired of trying to remember what .bashrc does vs .bash_profile vs .profile?
# Are you tired of trying to remember how darwin/mac-osx treat them differently from linux?
# Are you tired of not having your ~/.bash* stuff work the way you expect?
#
# Symlink all of the following to this file:
# * ~/.bashrc