Skip to content

Instantly share code, notes, and snippets.

View onedr0p's full-sized avatar
💫
The More You Know

Devin Buhl onedr0p

💫
The More You Know
  • Guessing location...
View GitHub Profile
import os
import qbittorrentapi
torrent_client = qbittorrentapi.Client(host='https://qb.devbu.io')
download_directory = '/eros/Media/Downloads/qbittorrent/complete'
def get_qbittorrent_files():
torrent_list = torrent_client.torrents.info()
download_directory_list = download_directory.split(os.sep)
qbittorrent_files = set()
select setval('public."AutoTagging_Id_seq"', (SELECT MAX("Id")+1 FROM "AutoTagging"));
select setval('public."Commands_Id_seq"', (SELECT MAX("Id")+1 FROM "Commands"));
select setval('public."Config_Id_seq"', (SELECT MAX("Id")+1 FROM "Config"));
select setval('public."CustomFilters_Id_seq"', (SELECT MAX("Id")+1 FROM "CustomFilters"));
select setval('public."CustomFormats_Id_seq"', (SELECT MAX("Id")+1 FROM "CustomFormats"));
select setval('public."DelayProfiles_Id_seq"', (SELECT MAX("Id")+1 FROM "DelayProfiles"));
select setval('public."DownloadClientStatus_Id_seq"', (SELECT MAX("Id")+1 FROM "DownloadClientStatus"));
select setval('public."DownloadClients_Id_seq"', (SELECT MAX("Id")+1 FROM "DownloadClients"));
select setval('public."DownloadHistory_Id_seq"', (SELECT MAX("Id")+1 FROM "DownloadHistory"));
select setval('public."EpisodeFiles_Id_seq"', (SELECT MAX("Id")+1 FROM "EpisodeFiles"));
sonarr-6bb77449dd-l2w5p sonarr [Info] RecycleBinProvider: Recycling Bin has not been configured, deleting permanently. /media/Library/Television/Linux ISO/Season 01/Linux ISO (1986) - S01E03 - Linus gives a middle finger to Nvidia [HMAX WEBDL-1080p][AC3 2.0][x264]-dB.mkv
sonarr-6bb77449dd-l2w5p sonarr [Error] EventAggregator: DownloadHistoryService failed while processing [EpisodeImportedEvent]
sonarr-6bb77449dd-l2w5p sonarr
sonarr-6bb77449dd-l2w5p sonarr [v4.0.0.629] Npgsql.PostgresException (0x80004005): 23505: duplicate key value violates unique constraint "PK_DownloadHistory"
sonarr-6bb77449dd-l2w5p sonarr
sonarr-6bb77449dd-l2w5p sonarr DETAIL: Detail redacted as it may contain sensitive data. Specify 'Include Error Detail' in the connection string to include this information.
sonarr-6bb77449dd-l2w5p sonarr at Npgsql.Internal.NpgsqlConnector.<ReadMessage>g__ReadMessageLong|233_0(NpgsqlConnector connector, Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isRead
## Cool yer jets
- Enable IPMI in iDRAC settings
- `brew install ipmitool`
### Common commands
All Sensor Readings
```bash
ipmitool -I lanplus -H <IDRAC_IP> -U <IDRAC_USERNAME> -P <IDRAC_PASSWORD> sdr elist all
@onedr0p
onedr0p / pushovarr.sh
Last active June 11, 2022 18:19
Pushovarr
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
export PUSHOVER_API_URL="https://api.pushover.net/1/messages.json"
#
# Application specific variables
@onedr0p
onedr0p / devin.aur-list.pkg
Last active February 25, 2022 14:48
AUR package list.
clusterctl-bin
go-task-bin
gojq
google-chrome
hadolint-bin
java-openjdk-bin
kubelogin
kubie-bin
kustomize-bin
lens-bin
@onedr0p
onedr0p / devin.pacman-list.pkg
Last active March 9, 2022 13:18
Pacman package list.
acpi
acpid
adobe-source-han-sans-cn-fonts
adobe-source-han-sans-jp-fonts
adobe-source-han-sans-kr-fonts
adobe-source-sans-fonts
adobe-source-serif-fonts
age
alsa-firmware
alsa-utils
---
# Source: cilium/templates/cilium-agent-serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: "cilium"
namespace: kube-system
---
# Source: cilium/templates/cilium-operator-serviceaccount.yaml
apiVersion: v1
blueprint:
name: Appliance monitor
description: Do something when an appliance (like a washing machine or dishwasher)
has finished as detected by a power sensor.
domain: automation
input:
power_sensor:
name: Power Sensor
description: Power sensor entity (e.g. from a smart plug device).
selector:

awesome-homelab

Dell

iDRAC

  • Set iDrac settings using System Boot Menu
    • Set Static IP: F2 > iDrac settings > Network
    • Set Username / Password: F2 > iDrac settings > Access
  • Flash iDRAC7_LocalLicense_Installation_Tool_A00_1.0.iso using dd to USB
  • 30 day evaluation license and enabled dedicated iDrac NIC