This file contains 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 downloadFile { | |
releases=`curl -s -L https://github.com/irtimmer/moonlight-embedded/releases/latest` | |
echo "$releases" | egrep -o "/irtimmer/moonlight-embedded/releases/download/v([0-9]\.*)+/$1" | wget --base=http://github.com/ -i - -O "$1" | |
} | |
downloadFile libopus.so | |
downloadFile limelight.jar |
This file contains 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
function version { echo "$@" | gawk -F. '{ printf("%03d%03d%03d\n", $1,$2,$3); }'; } | |
function downloadFile { | |
echo "$1" | egrep -o "/irtimmer/moonlight-embedded/releases/download/v([0-9]\.*)+/$2" | wget -q --base=http://github.com/ -i - -O "$2" | |
} | |
function updateMoonlight { | |
FILE=version | |
releases=`curl -s -L https://github.com/irtimmer/moonlight-embedded/releases/latest` | |
current_version=`cat $FILE` |
This file contains 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
sudo modprobe bcm2835-thermal | |
/opt/vc/bin/vcgencmd measure_temp |
This file contains 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
wget \ | |
--recursive \ | |
--no-clobber \ | |
--page-requisites \ | |
--html-extension \ | |
--convert-links \ | |
--restrict-file-names=windows \ | |
--domains website.org \ | |
--no-parent \ | |
www.website.org/foobar/ |
This file contains 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
address="vps.tv" | |
sudo apt-get install -y apache2 | |
sudo mkdir /var/log/httpd | |
sudo a2enmod headers | |
sudo a2enmod dav | |
sudo a2enmod dav_fs | |
sudo a2enmod rewrite | |
sudo a2enmod ssl | |
sudo a2enmod auth_digest |
This file contains 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 | |
for moviepath in /tmp/media/movies/*; do | |
movie=$(basename "$moviepath") | |
echo $movie | |
mkdir "/home/media/data/uploadme/movies/$movie" | |
filename=$(echo "$movie" | cut -d "(" -f 1 | sed -e 's/^ *//g;s/ *$//g') | |
touch "/home/media/data/uploadme/movies/$movie/${filename}.mp4" | |
/usr/local/bin/subliminal download -f -d "/home/media/data/uploadme/movies/$movie/" "/home/media/data/uploadme/movies/$movie/" -l nl | |
rm "/home/media/data/uploadme/movies/$movie/${filename}.mp4" |
This file contains 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/sh | |
IN_DIR=/volume1/Media/Films | |
OUT_DIR=/mnt/media/movies | |
REMOTE=nindustries@149.210.164.73 | |
if [ ! -z "$1" ]; then | |
IN_DIR="$1" | |
fi | |
if [ ! -z "$2" ]; then |
This file contains 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
from os import system, path, makedirs | |
import sys | |
def autoload(): | |
move_to="/home/media/data/uploadme/movies/" | |
arr=sys.argv[2].split('/') | |
moviename=arr[6] | |
if not path.exists(move_to + moviename): | |
makedirs(move_to + moviename) |
This file contains 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 | |
#set -e | |
#set -x | |
move_to="/home/nindustries/data/acd/series" | |
inputpath="$1" | |
IFS='/'; read -ra ARR <<< "$inputpath" |
This file contains 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 | |
#set -e | |
#set -x | |
# directory where your git repos reside | |
repo_dir="/home/hazcod/repos/" | |
# the repos in repo_dir that should be pulled from remote (origin) | |
repos=(myproject) |
OlderNewer