Skip to content

Instantly share code, notes, and snippets.

Avatar
🥕
Am Caret

Galileo 641i130

🥕
Am Caret
  • yiynw|idct
View GitHub Profile
@641i130
641i130 / README.md
Last active Feb 1, 2022 — forked from ioquatix/README.md
How to setup v4l2 loopback for use with OBS.
View README.md

Firstly, you need to install v4l2loopback and obs-v4l2sink. On arch linux with yay:

yay -Syu obs-v4l2sink v4l2loopback-dkms

Then, set up a systemd service:

koyoko% cat /etc/systemd/system/v4l2loopback.service 
@641i130
641i130 / ctabus.sh
Created Feb 9, 2022
CTA Bus Tracker Cli
View ctabus.sh
#!/bin/bash
# chmod the script and run like this ./ctabus.sh [bus code]
curl -s "http://ctabustracker.com/bustime/eta/getStopPredictionsETA.jsp?route=all&stop=$1" |grep '<pt>'|grep -o '[0-9]*'
@641i130
641i130 / extract.py
Created Jul 22, 2022
Unity3D Asset Extractor
View extract.py
# This assumes you've installed python, have UnityPy pip3 installed, have the assets decrypted in the folder you're running this
# You run it like this:
# python extract.py [folder with files] [folder to extract to]
# EXAMPLE:
# python extract.py . out
# (assuming you have a folder with *.unity3d
import os, UnityPy, sys
def unpack_all_assets(source_folder : str, destination_folder : str):
# iterate over all files in source folder
@641i130
641i130 / wallpaper.sh
Created Jul 26, 2022
Randomly choose a picture for setting wallpapers on linux
View wallpaper.sh
#!/bin/bash
# Note that /landscape/ contains any image file name png,jpg,jpeg and is a landscape image and vise versa for portrait
# This works in order of monitor ID (DP-0 -> DP-2) in that order
feh --bg-fill "$(find /landscape/ -regextype posix-extended -regex '.*\.(png|jpg|jpeg)$' -print0 |shuf -z -n 1)" "$(find /portrait/ -regextype posix-extended -regex '.*\.(png|jpg|jpeg)$' -print0 |shuf -z -n 1)"
@641i130
641i130 / fix-gpg-keys.sh
Created Jul 26, 2022
Fix the broken GPG keys on arch based operating systems. (This was written for arco linux, so I can't guarantee it'll work on anything else).
View fix-gpg-keys.sh
#!/bin/bash
# RUN THIS AS ROOT!!!
pacman -S archlinux-keyring arcolinux-keyring
rm -rf /var/lib/pacman/sync/
rm -rf /etc/pacman.d/gnupg/
pacman -Scc --noconfirm
pacman-key --init
pacman-key --populate archlinux
pacman-key --populate arcolinux
pacman-key --refresh-keys
@641i130
641i130 / t-mine.py
Created Jul 29, 2022
Auto mine in terraria (AKA hold down buttons)
View t-mine.py
# Terraria Button Holder
# Written by 641i130
# (DVORAK KEYBOARD LAYOUT)
import pynput
import time
pm = pynput.mouse
pk = pynput.keyboard
mc = pm.Controller()
kc = pk.Controller()