Skip to content

Instantly share code, notes, and snippets.

View metriics's full-sized avatar

Stephane Eric Gagnon metriics

  • Ontario, Canada
View GitHub Profile
@metriics
metriics / plex_refresh.sh
Last active November 24, 2024 19:36
Bash script to refresh a Plex library, or specific path in a library. I use this in conjuction with qBittorrent to refresh a specific file or folder in my library so that Plex doesn't try to grab metadata for a half downloaded item. This happens if there are multiple items downloading to the same library.
#!/usr/bin/env bash
domain=
token=
library=$1
refPath=$2
libIndex=-1
echoerr() { echo "$@" 1>&2; }
@metriics
metriics / atv3_kodi.sh
Created June 7, 2024 20:39
Apple TV 3 - Blackb0x not installing Kodi automatically FIX
# These are the commands I ran on my ATV 3 after jailbreaking with Blackb0x on tvOS 7.9
#
# First SSH into the Apple TV with the root user account, if you are having trouble try this command:
# ssh -oHostKeyAlgorithms=+ssh-dss root@<atv-ip-here>
# Step 0 (i think this is necessary) Move apllications from system partition to user partition
mkdir -p /private/var/Applications && cd /Applications
mv * /private/var/Applications
cd /
rmdir /Applications
@metriics
metriics / copyRatedImages.py
Last active January 27, 2023 21:55
A (hopefully) portable Python3 script to copy Sony ARW raw files that have been rated from one directory to another, sorted by image date
import errno
import os
import shutil
directory = None
destDir = None
while not directory:
target = input("Directory to look in: ")
if os.path.exists(target):
@metriics
metriics / idrac6-vc.txt
Last active August 27, 2022 21:19 — forked from arcaneshabang/idrac6-vc.txt
IDRAC6 Virtual Console Launcher
#### metriics changes (Aug 27, 2022) ####
The .sh version now checks the working directory for the avctKVM.jar as well as the required libs and will download them from the host if not present. It can do so on both Linux and macOS and _should_ download the correct libs automatically but I've only tested on macOS.
You still need to grab the jre folder but you can get it from your java install, I got mine from my openJDK@8 install through brew from Mac.
Note: A known issue right now is the Virtual Console complaining about a missing library for keyboard and mouse but it works fine without it so I haven't put the time in to try and fix it. You should be able to safely ignore it.
#### ORIGINAL ####
Use this as an example on how to start the virtual console without the need of Java Web Start or accessing it from the web interface.
You can use the user and password that you use for the web interface.