Skip to content

Instantly share code, notes, and snippets.

View nate-moo's full-sized avatar
🦒
Giraffe

naed3r nate-moo

🦒
Giraffe
View GitHub Profile
@nate-moo
nate-moo / How-To-Use.md
Last active June 5, 2021 03:26
Quick and Dirty uploader for catbox.moe

catbox.moe and litterbox.catbox.moe easy uploader

It is very simple to use.

  1. Download the python script
  2. Install the packages listed in requirements.txt (or use this command: pip3 install requests pyperclip)
  3. Move the python script to somewhere like your desktop
  4. Any file under 200mb (or under 1 Gb if using litterbox, see below) can be dragged and dropped onto the python script and uploaded (except : .exe, .scr, .cpl, .doc*, .jar, and any others mentioned in their FAQ)
  5. The uploaded file link is now in your clipboard (link copies automatically)
import subprocess
import sys
import re
var = str(subprocess.check_output(["mkvmerge.exe", "--identify", "video.mkv"]).decode(sys.stdout.encoding))
AttachmentID = re.findall(r"(Attachment ID (\d{1,2}):)", var)
AttachmentName = re.findall(r"(file name ('(.*)'))", var)
for a, b in zip(AttachmentID, AttachmentName):
@nate-moo
nate-moo / Discord Full Screen sharing under wayland.md
Last active April 2, 2024 22:55
Screensharing full screen on discord under wayland

warning: Very cursed

image

things required:

  • wf-recorder
  • mpv
  • wayland
@nate-moo
nate-moo / fun.md
Created June 3, 2024 05:26
how to prevent route takeover with globalprotect-openconnect

just run these commands to change routes and make sure to adapt the tunnel name (tun0 for me) to your specific one

sudo ip r del default dev tun0 scope link
sudo ip r add 138.67.0.0/16 dev tun0 scope link

profit $$$