More updates!

This commit is contained in:
oitsjustjose 2026-06-19 11:40:49 -05:00
commit c501597c19
10 changed files with 66 additions and 86 deletions

View file

@ -1,19 +0,0 @@
from PIL import Image
from pillow_heif import register_heif_opener
from pathlib import Path
from sys import argv
def main() -> None:
if len(argv) < 2:
return
path = Path(argv[1]).resolve()
if path.suffix.lower() != ".heic":
return
register_heif_opener()
im = Image.open(path)
im.save(path.with_suffix(".jpeg"), quality=100)
if __name__ == "__main__":
main()

View file

@ -1,24 +0,0 @@
from argparse import ArgumentParser
from utils import install_package
try:
import qrcode
except ImportError:
install_package("qrcode[pil]")
finally:
import qrcode
def main(args):
img = qrcode.make(f"WIFI:S:{args.ssid};T:WPA;P:{args.passwd};;")
img.save(args.output)
if __name__ == "__main__":
parser = ArgumentParser(prog="WiFi QR Generator", description="Creates QR Codes to join a Password Protected WiFi Network")
parser.add_argument("ssid", help="The SSID of the WiFi Network to connect to")
parser.add_argument("passwd", help="The passphrase of the WiFi Network to connect to")
parser.add_argument("-o", "--output", required=True, help="Where to save the resulting image to")
args = parser.parse_args()
main(args)

0
linux/shell/setup/setup_jarscan.sh Normal file → Executable file
View file

0
linux/shell/setup/setup_makerand.sh Normal file → Executable file
View file

0
linux/shell/setup/setup_uuid.sh Normal file → Executable file
View file

0
linux/shell/setup/setup_wifiqr.sh Normal file → Executable file
View file