Skip to content

Instantly share code, notes, and snippets.

View AverageHelper's full-sized avatar
🏳️‍⚧️

AverageHelper

🏳️‍⚧️
View GitHub Profile
@Bloxs
Bloxs / Readme.md
Last active January 17, 2025 20:21
Discord emote exporter

Discord emote exporter

  1. Paste the contents of RunOnClient.js into your developer console once you're inside the specific server > settings > emojis
  2. Copy the long message sent in developer console formatted link - name

If you want to take those exported emojis into guilded:

  1. Create a emojis.txt file with those contents and an index.ts file with RunOnDesktop.js's content
  2. Run the file using Deno with the following command: deno run --allow-read --allow-write index.ts
  3. Upload all JSON files in the newly created exported folder to a file sharing site (or copy paste the contents onto a paste site)
  4. Paste those json links into guilded & import them
#!/bin/zsh
# WARNING! The script is meant to show how and what can be disabled. Don’t use it as it is, adapt it to your needs.
# Credit: Original idea and script disable.sh by pwnsdx https://gist.github.com/pwnsdx/d87b034c4c0210b988040ad2f85a68d3
# Disabling unwanted services on macOS Big Sur (11), macOS Monterey (12), macOS Ventura (13) and macOS Sonoma (14)
# Disabling SIP is required ("csrutil disable" from Terminal in Recovery)
# Modifications are written in /private/var/db/com.apple.xpc.launchd/ disabled.plist, disabled.501.plist
# To revert, delete /private/var/db/com.apple.xpc.launchd/ disabled.plist and disabled.501.plist and reboot; sudo rm -r /private/var/db/com.apple.xpc.launchd/*
# user
@poyotanp
poyotanp / how-to-disable-middle-click-paste.md
Last active November 9, 2025 03:04
How to disable middle-click paste in KDE Plasma (Wayland)

Environment

  • Arch Linux
  • KDE Plasma 6.1.5 (Wayland)

Solution

For native Wayland applications

  1. open the KDE system settings
  2. select "Workspace" -> "General Behavior"
import sys, os, stat, errno, operator, time, datetime, requests
from fuse import FUSE, Operations, LoggingMixIn, FuseOSError
from mastodon import Mastodon
from cachetools import TTLCache, cachedmethod
from mastodon.return_types import MediaAttachment, Account, Status
class PathItem:
def __init__(self, path_type, mtime=None, size=0, symlink_target=None, read_fn=None, listdir_fn=None):
self.path_type = path_type
self.mtime = mtime or time.time()