This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import pip | |
try: | |
from selenium import webdriver | |
except ImportError: | |
pip.main(['install', 'selenium']) | |
import selenium | |
try: | |
import pyperclip | |
except ImportError: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
} |