Skip to content

Instantly share code, notes, and snippets.

View JurajNyiri's full-sized avatar

Juraj Nyíri JurajNyiri

  • IBM
  • Slovakia
View GitHub Profile
@JurajNyiri
JurajNyiri / loadRadarr.py
Last active September 9, 2023 08:54
Radarr script which slowly goes through the all the imported movies and asks for a refresh for items missing files. Useful if Radarr is sometimes crashing on refreshes.
import requests
import time
API_KEY = "change_me"
while True:
try:
response = requests.get("http://192.168.100.19:7878/api/v3/movie", headers={"X-Api-Key": API_KEY})
missingFilesCount=0
@JurajNyiri
JurajNyiri / utm_pass_usb_device
Last active November 6, 2023 09:26
UTM Pass USB Device via apple script
#---- MODIFY BELOW ----#
set application_name to "Home Assistant" # Set to your UTM VM Name
set button_name to "USB" #Description of the button, can be found by using Accessibility Inspector from Xcode, you probably want this set to "USB"
set usb_select to "Conbee" #Name of the device you wish to pass to VM
#---- MODIFY ABOVE ----#
#---- APPLICATION CODE, DO NOT TOUCH BELOW----#
set foundVM to false
repeat while foundVM = false