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 | |
cd "$(dirname "$0")" # Script path | |
mkdir -p SvtPlay && cd SvtPlay | |
WeekDay=$(date +'%A') | |
Hour=$(date +'%H') | |
function dl { | |
name=$1 | |
if [[ "$WeekDay" != "$2" ]] || (( $3 != 10#$Hour )); 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
#!/bin/bash | |
# Create dirs if not exists | |
mkdir -p ~/bin ~/seaf-cli | |
cd ~/seaf-cli | |
# Remove any old or failed updates | |
rm -rf ~/seaf-cli/*.tar* | |
# Get download address | |
arch=$(uname -m | sed s/"_"/"-"/g) |
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 datetime import date, datetime | |
from subprocess import Popen, PIPE | |
import sys | |
DATEFORMAT = "%Y%m%d" | |
CONFPATH = 'last_updated.txt' | |
CMD = '''\ | |
youtube-dl.exe -ci -w -o "%(title)s.%(ext)s" http://www.youtube.com/user/WTii1 --match-title "Warcraft 3.*"\ | |
''' |