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
using System; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
class Program | |
{ | |
static async Task Main(string[] args) | |
{ | |
// Replace with your API endpoint | |
string apiUrl = "https://example.com/your-image-endpoint"; |
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
#!/bin/bash | |
VERSIONS_URL=https://plex.tv/api/downloads/5.json | |
LATEST_VERSION=$(curl -s $VERSIONS_URL | jq -r '.computer.Linux.version') | |
OS_LABEL="Ubuntu (16.04+) / Debian (8+) - Intel/AMD 64-bit" | |
DOWNLOAD_URL=$(curl -s $VERSIONS_URL | jq -r --arg OS_LABEL "$OS_LABEL" '.computer.Linux.releases[] | select(.label==$OS_LABEL).url') | |
FILE_NAME=$(echo ${DOWNLOAD_URL##*/}) | |
echo "[DOWNLOAD] $DOWNLOAD_URL" | |
wget $DOWNLOAD_URL |
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
// show disk usage | |
du -h * | sort -h | |
du -h --max-depth=1 . | sort -h -r | |
tree -L 3 --du -h -D | |
// show deleted files | |
lsof | grep deleted | |
// show drive info | |
lsblk |
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
#!/usr/bin/env python | |
from plexapi.server import PlexServer | |
from plexapi.server import CONFIG | |
import requests | |
import argparse | |
import time | |
import os | |
# Using CONFIG file | |
PLEX_URL = '' |