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 | |
# Author: Dame Diongue | |
# This script checks for an active Internet connection by trying to access | |
# If check fail, it will reboot the Modem Router | |
# Trying to access | |
wget -t 1 -T 10 -o wgetout "http://www.google.sn" | |
# Wait 5 secondes | |
sleep 5 |
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/python | |
import os, re, shutil | |
from os.path import join, expanduser, dirname, basename | |
# Defines global variables | |
media_extensions = ['avi', 'mkv', 'mp4'] # Extensions for many videos file | |
tv_show_directory = expanduser("/mnt/D40E9CD00E9CACCC/Series/") # Tv Show path | |
movies_directory = expanduser("/mnt/D40E9CD00E9CACCC/Movies/") # Movies path | |
download_directory = expanduser("~/Downloads/") # Path for downloaded files |
NewerOlder