Skip to content

Instantly share code, notes, and snippets.

View akyag's full-sized avatar

Akshay Ghate akyag

View GitHub Profile
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives
#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
2022-08-06 12:23:29.5|Trace|ConfigService|Using default config value for 'createemptyseriesfolders' defaultValue:'False'
2022-08-06 12:23:29.5|Trace|EventAggregator|ConfigFileSavedEvent <~ ReconfigureLogging
2022-08-06 12:23:29.5|Trace|ConfigService|Using default config value for 'deleteemptyfolders' defaultValue:'False'
2022-08-06 12:23:29.5|Trace|ConfigService|Using default config value for 'filedate' defaultValue:'None'
2022-08-06 12:23:29.5|Trace|ConfigService|Using default config value for 'downloadclientworkingfolders' defaultValue:'_UNPACK_|_FAILED_'
2022-08-06 12:23:29.5|Trace|Http|Req: 3161 [GET] /api/v3/health (from 127.0.0.1 Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.167 Safari/537.36)
2022-08-06 12:23:29.5|Trace|ConfigService|Using default config value for 'downloadclienthistorylimit' defaultValue:'60'
2022-08-06 12:23:29.5|Trace|EventAggregator|HealthCheckCompleteEvent <~ NotificationService
2022-08-06 12:23:29.5|Trace|Http|Res: 3161 [GET] /api/v3/hea
@akyag
akyag / external.sh
Created October 22, 2020 07:01
rsync backup to external media
#!/bin/zsh
SHELL=/bin/zsh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
set -ex
# rsync
# /media/entmt/audio /run/media/akya/dump/audio
# /media/data/software /run/media/akya/backup/data/software
# /media/entmt/video/concerts /run/media/akya/backup/concerts
@akyag
akyag / backup.sh
Created October 22, 2020 06:57
Daily backup script
#!/bin/zsh
SHELL=/bin/zsh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
set -ex
# Replacing daily python script with this one since the tarfile cant use zst correctly yet.
echo "Execution time:" $(date +%Y%m%d/%H:%M:%S)
echo "-----------------------------"
@akyag
akyag / movie-extract.py
Last active September 1, 2020 02:30
extracting from movie.nfo
#! /usr/bin/python
import sys
import os
import re
from pathlib import Path
info = []
my_dir = "<path>"
for item in Path(my_dir).glob('./**/*.nfo'):
@akyag
akyag / tv-extract.py
Last active September 1, 2020 02:29
extracting from tvshow.nfo
#! /usr/bin/python3
import sys
import os
import re
from pathlib import Path
info = []
my_dir = "<path>"
for item in Path(my_dir).glob('./*/tvshow.nfo'):
@akyag
akyag / daily.py
Last active April 14, 2024 03:56
Backup script
#! /usr/bin/python
import os
import tarfile
import shutil
import subprocess
import logging
import logging.handlers
from pathlib import Path
import arrow