Emby to SamyGo B650 thumbnail exporter
./emby-thumbnails.py -u http://192.168.0.1:8096 -t 4a4cr9eaddda4e0283099ec02aa81d02 -s /media/library -d /meadiathumbnails| #!/bin/bash | |
| ANCHOR=zsc_proxy | |
| ANCHOR_FILE=/etc/pf.anchors/${ANCHOR} | |
| ROOT_ANCHOR=/etc/pf.conf | |
| if ! cat ${ROOT_ANCHOR} | grep -q '^anchor "'${ANCHOR}'"'; then | |
| echo "Backup ${ROOT_ANCHOR}" | |
| sudo cp "${ROOT_ANCHOR}" "${ROOT_ANCHOR}.backup" |
./emby-thumbnails.py -u http://192.168.0.1:8096 -t 4a4cr9eaddda4e0283099ec02aa81d02 -s /media/library -d /meadiathumbnails| verbosity=1 | |
| logo=disabled | |
| console=both | |
| disp_mode=1920x1080p60 | |
| overlay_prefix=sun8i-h3 | |
| overlays=i2c0 usbhost2 usbhost3 spi-spidev | |
| param_spidev_spi_bus=1 | |
| rootdev=/dev/mmcblk0p2 | |
| rootfstype=ext4 | |
| user_overlays=sun8i-h3-i2s0 |
| #!/bin/bash | |
| # DEPENDENCIES | |
| # apt-get -y install fbi curl | |
| # PINOUT: Display -> Raspberry Pi Zero | |
| # BL -> pin 12 (GPIO 18) | |
| # SCK -> pin 23 (GPIO 11) | |
| # MISO -> pin 21 (GPIO 9) | |
| # MOSI -> pin 19 (GPIO 10) |
| #!/bin/sh | |
| SINGLE_DOMAIN=${SINGLE_DOMAIN:-my.domain.org} | |
| opkg install ca-certificates ca-bundle curl | |
| hash acme.sh || ( curl https://get.acme.sh | sh && \ | |
| ln -s /root/.acme/acme.sh /usr/bin/ ) | |
| acme.sh --issue -d ${SINGLE_DOMAIN} --dns --force |
| #!/bin/bash | |
| # Usage: USER=user PASSWD=secret volumio2-ui-basic-auth.sh or | |
| # volumio2-ui-basic-auth.sh for default user volumio:volumio | |
| sudo su || exit 1 | |
| apt-get install apache2-utils nginx | |
| htpasswd -cb /etc/nginx/.htpasswd ${USER:-volumio} ${PASSWD:-volumio} |
| GIST_PROFILE_PATH=~/.bash_profile_gist | |
| GIST_PROFILE_URI=https://gist.githubusercontent.com/aenniw/7f1883a867e5d551b9c859eba176b6b3/raw/.bash_profile_gist | |
| function update-gist() { | |
| curl -s ${GIST_PROFILE_URI} 2>/dev/null > ${GIST_PROFILE_PATH} | |
| } | |
| function resource-gist() { | |
| test -f ${GIST_PROFILE_PATH} && \ | |
| source ${GIST_PROFILE_PATH} |
| #!/usr/bin/env bash | |
| TASK_LIMIT=4 | |
| # ########################## HOW-TO ########################################## # | |
| # 1. Include in your script with source <(curl -s <URL>) # | |
| # 2. Override max simultaneous workers by TASK_LIMIT # | |
| # 3. Define func1 that will generate workers data/ atleast their ids # | |
| # 4. Define func2 that will contain logic to handle segmet of worker # | |
| # 5. Define func3 that will agregate computed results # | |
| # 6. Run divide_and_conquer func1 func2 func2 and wait for script to end # |
| #!/usr/bin/env bash | |
| # script: watch | |
| # author: Mike Smullin <[email protected]> | |
| # license: GPLv3 | |
| # description: | |
| # watches the given path for changes | |
| # and executes a given command when changes occur | |
| # usage: | |
| # watch <path> <cmd...> | |
| # |