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
/* | |
* This script allows you to get all of the links of episodes of a show on: | |
* Discovery, Travel Channel, Investigation Discovery, TLC, HGTV, Food Network, Science Channel, | |
* Animal Planet, Destination America, Cooking Channel, OWN, Discovery Life, AHC, Motor Trend, Magnolia Network | |
* | |
* For a list of all of the shows that are supported, go to: | |
* https://watch.travelchannel.com/shows?network=all or https://www.sciencechannel.com/shows?network=all | |
* The list will be the same, just choose a different subnetwork by clicking the icon of the network you want to see. | |
* | |
* Note: |
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 qrun() { | |
if (( $# == 0 )); then | |
echo "Usage: qrun [filename] <-k (keep)>" | |
return 1 | |
else | |
g++ -c $1.cc;g++ $1.o -o $1;./$1 "${@:2}" | |
if (( $# == 2 )); then | |
if [[ $2 == "-k" ]]; then | |
echo "[QRUN] Keeping files" |
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
echo "[EZBackup] Installing..." | |
cat > ~/backup.sh <<- EOM | |
#!/bin/bash | |
function backup() { | |
if [ \$PWD = \$HOME ]; then | |
echo "[EZBackup] ERROR: Your current directory is your home directory. Please change to a different directory before running this script." | |
return 1 | |
fi | |
if [ \${PWD##*/} = "backups" ]; then | |
echo "[EZBackup] ERROR: Your current directory is the backups directory. Please change to a different directory before running this script." |