This file contains hidden or 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 bash | |
DESTDIR="/dvr/Olympics" | |
SCRIPT=$(readlink -f $0) | |
SCRIPTDIR=$(dirname ${SCRIPT}) | |
SCRIPTFN=$(basename "$SCRIPT") | |
BASE=$(dirname ${SCRIPTDIR}) | |
PLEXFILE="$1" | |
PLEXFN=$(basename "$1") | |
PLEXFN_NOEXT=${PLEXFN%.*} |
This file contains hidden or 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 | |
function set_hostname() { | |
read -r -p 'Hostname: ' hostname | |
hostname $hostname | |
} | |
function install_pkgs() { | |
apt install -y vim libmnl-dev libelf-dev build-essential pkg-config git parted xfsprogs | |
apt-mark hold linux-odroid-5422 |
This file contains hidden or 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 | |
# | |
# This script will stop all Unraid VMs and rsync the specified src directories to | |
# the specified dst directory. All src directories will be base64 encoded with | |
# hostname and directory path to eliminate potential naming collisions and | |
# the need for character escapes. This will complicate restoration of | |
# backup data. The following illustrates what will be written and how to decode | |
# the base64 string. | |
# | |
# # echo $SRC |
This file contains hidden or 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
import json | |
import requests | |
""" | |
The following script will help you learn python by poking at a simple url | |
that returns a known value. You can identify what you want to extract, | |
format as necessary and print it to illustrate your mastery. | |
""" | |