Skip to content

Instantly share code, notes, and snippets.

View tronyx's full-sized avatar
💭
Bashing for fun and profit

Chris Yocum tronyx

💭
Bashing for fun and profit
View GitHub Profile
@tronyx
tronyx / dirs.txt
Created November 8, 2022 17:42
Directory Listings
root@Morgoth:/mnt/disks/Docker_AppData_SSD/appdata/sonarr/config/logs# ls -lha "/mnt/user/data/media/Videos/TV Shows/Instinct (2018)/"
total 0
drwxrwxrwx 1 nobody users 36 Nov 8 08:07 ./
drwxrwxrwx 1 nobody users 216 Nov 1 09:11 ../
drwxrwxrwx 1 nobody users 0 Nov 8 08:07 Season\ 01/
drwxrwxrwx 1 nobody users 0 Nov 8 08:07 Season\ 02/
drwxrwxrwx 1 nobody users 141 Nov 8 08:07 Season\ 1/
root@Morgoth:/mnt/disks/Docker_AppData_SSD/appdata/sonarr/config/logs# ls -lha "/mnt/user/data/media/Videos/TV Shows/Instinct (2018)/Season 01"
total 17G
drwxrwxrwx 1 nobody users 0 Nov 8 08:07 ./
@tronyx
tronyx / logs.txt
Created November 8, 2022 17:41
Sonarr Trace Logs for Subtitles Renaming Issue
2022-11-08 08:07:53.5|Trace|Http|Req: 9029 [POST] /api/v3/command (from 192.168.1.1 Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0)
2022-11-08 08:07:53.5|Trace|CommandQueueManager|Publishing RenameFiles
2022-11-08 08:07:53.5|Trace|CommandQueueManager|Checking if command is queued or started: RenameFiles
2022-11-08 08:07:53.5|Trace|CommandQueueManager|Inserting new command: RenameFiles
2022-11-08 08:07:53.5|Trace|CommandExecutor|RenameFilesCommand -> RenameEpisodeFileService
2022-11-08 08:07:53.5|Trace|CommandQueueManager|Marking command as started: RenameFiles
2022-11-08 08:07:53.5|Trace|Http|Res: 9029 [POST] /api/v3/command: 201.Created (6 ms)
2022-11-08 08:07:53.5|Debug|Api|[POST] /api/v3/command: 201.Created (6 ms)
2022-11-08 08:07:53.5|Trace|EventAggregator|Publishing CommandUpdatedEvent
2022-11-08 08:07:53.5|Trace|EventAggregator|CommandUpdatedEvent -> CommandModule
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@tronyx
tronyx / update_docker_images.sh
Created May 11, 2018 14:08
Basic script to detect and update active Docker container images
docker ps -aq > docker_ids.txt
while read CONTAINER
do
docker inspect ${CONTAINER} |grep -v sha |grep Image |awk '{print $2}' |tr -d '",'
done < docker_ids.txt > docker_images.txt
while read IMAGE
do
docker pull ${IMAGE}
@tronyx
tronyx / Determine_OS.sh
Created May 8, 2018 16:37
Shell script to determine OS and echo it to the shell
#!/bin/sh
#
# Determine OS
# Detects which OS and, if it is Linux, it will detect which Linux distribution.
# The result is then echoed to the shell.
OS=$(uname -s)
REV=$(uname -r)
MACH=$(uname -m)