This file contains 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
## change to your username | |
$user="wsl-user" | |
# download latest 20.04 release | |
curl --location ` | |
--remote-name ` | |
"https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64-wsl.rootfs.tar.gz" | |
# import into WSL 2 | |
wsl --import ` |
This file contains 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
#TESSERACT NEEDS TO BE INSTALLED FOR THIS TO WORK | |
# %% | |
#Imports | |
import os | |
import fitz | |
import pytesseract | |
# %% | |
#Create dirs if necessary | |
IMG_OUT_FOLDER = "tmp/imgs/" |
This file contains 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
# Assuming GHub is installed at it's default location | |
# %% | |
import os | |
import json | |
CONFIG_FILE_PATH = "C:/Users/Jonathan/AppData/Local/LGHUB/settings.json" | |
LG_HUB_EXE_PATH = "C:/Program Files/LGHUB/lghub.exe" | |
ENABLE_GAME_PROFILES = False | |
# %% |
This file contains 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 os | |
import shutil | |
import json | |
import traceback | |
import time | |
from datetime import datetime | |
import tkinter as tk | |
from tkinter import filedialog | |
# If this is true, overwrite an folder with the same name if the other one is newer |
This file contains 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 java.io.BufferedInputStream; | |
import java.io.File; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.io.OutputStream; | |
import java.io.OutputStreamWriter; | |
import java.io.PrintWriter; | |
import java.io.Reader; | |
import java.net.HttpURLConnection; |
This file contains 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 subprocess | |
import os | |
DEVICE = "10.0.0.4:5555" | |
SEPARATOR = "---------------" | |
subprocess.run(["adb", "devices"], stdout=subprocess.DEVNULL) | |
subprocess.run(["adb", "connect", DEVICE], stdout=subprocess.DEVNULL) | |
subprocess.run(["echo", SEPARATOR], shell=True, stdout=subprocess.DEVNULL) | |
shell_output = subprocess.run(["adb", "shell", "ls -1 /sdcard/dcim/camera"], capture_output=True, text=True) |