Skip to content

Instantly share code, notes, and snippets.

View unresolvedsymbol's full-sized avatar

Void Star unresolvedsymbol

View GitHub Profile
@unresolvedsymbol
unresolvedsymbol / krnl-bypass.py
Last active March 17, 2023 11:25
Yeah. Bypasses linkvertises easy.
import time
import pip
try:
from selenium import webdriver
except ImportError:
pip.main(['install', 'selenium'])
import selenium
try:
import pyperclip
except ImportError:
@unresolvedsymbol
unresolvedsymbol / gist:da495fe4b9c8395b67984f13640795c7
Created April 7, 2021 00:59
Controlling YeeLights without proprietary chinese apps.md
When I first bought these bulbs very cheap off AliExpress for about $20 an RGB bulb.
They also have light strips and etc that I'm sure this will apply to.
On my laptop:
I have installed yeecli which is a python module with a cli tool.
I have aliases eg.
```bash
pip install yee
# and for my aliases
@unresolvedsymbol
unresolvedsymbol / buildsway.sh
Created January 20, 2021 22:50
Sway builder, idk if it's kinda broken werksonmymachine
#!/bin/bash
# Void's sway build script
# Intended for use without DM
# swaylock and sway are setuid root, be advised
usage() {
echo "Usage: $0 [-pr]"
echo " -p Pull updates from git"
echo " -w Wipe meson"
@unresolvedsymbol
unresolvedsymbol / nps2pkgi.py
Last active September 14, 2023 05:21
PKGi-PS3 database generator (via NPS)
#!/usr/bin/env python3
import csv, codecs, urllib.request
print('Database generator by Void')
host = codecs.decode(b'aHR0cHM6Ly9ub3BheXN0YXRpb24uY29tL3Rzdg==', 'base64').decode('ascii')
content = {
"unknown" : "",
"games": "PS3_GAMES.tsv",
@unresolvedsymbol
unresolvedsymbol / ps4avygen.sh
Last active January 16, 2021 21:58
Generate PS4 avatar files with ImageMagick
#!/bin/sh
! [ "$1" ] || ! [ -e $1 ] && {
echo "Usage: $(basename $0) [avatar image]"
exit 1
}
echo 'Generating resized assets'
convert "$1" -geometry 64x64\! avatar.png
cp avatar.png picture.png
for x in 64 128 260 440; do
convert "$1" -geometry ${x}x${x}\! avatar${x}.dds
#!/usr/bin/env python3
import os
import sys
import struct
import binascii
import argparse
MB = 0x100000
parser = argparse.ArgumentParser(description='Edit CCI card type for 3DS flashcarts')
@unresolvedsymbol
unresolvedsymbol / getsmdh.sh
Last active November 7, 2020 16:03
Combined 3DSX SMDH extractor
#!/bin/sh
# Fully sh compatible :^)
# -=- V0idst4r -=-
# Simple script to extract SMDH from a combined 3DSX
# Doesn't do anything fancy, uses strings to find the SMDH
# For some reason bytes 0x20-0x24 where the SMDH offset should be yeilded me a scrambled offset
[ ! -f "$1" ] && {
echo "Usage: $0 <3dsx>"
exit 1
}