First things first !
sudo apt update
sudo apt upgradesudo apt-get install build-essential git| #!/bin/bash | |
| # based upon https://github.com/Radarr/Radarr/wiki/Mass-Delete-via-API | |
| # and https://gist.github.com/pstadler/bc0afefe35f608e9552e764b31f45f19 | |
| RADARR_API_KEY= | |
| RADARR_API_IP= | |
| RADARR_API_PORT=7878 | |
| OLDER_THEN=365*24*3600 | |
| DELETE_FILES=true |
| # Update & Upgrade the System | |
| sudo apt-get update | |
| sudo apt-get upgrade | |
| # Install dependencies there might be more based on your system | |
| # However below instructions are for the fresh Ubuntu install/server | |
| # Please carefully watch the logs because if something could not be install | |
| # You have to make sure it is installed properly by trying the command or that particular | |
| # dependency again |
| #! /bin/sh | |
| # ZFS health version for Ubuntu | |
| # You must install the package "dateuils" from the univers | |
| # | |
| # Based on Calomel.org | |
| # https://calomel.org/zfs_health_check_script.html | |
| # FreeBSD ZFS Health Check script | |
| # zfs_health.sh @ Version 0.16 | |
| # Check health of ZFS volumes and drives. On any faults send email. |
| #!/bin/bash | |
| # Requirements: Ubuntu 14.02 (Trusty Tahr) | |
| # build essentials | |
| sudo apt-get -y install build-essential git-core checkinstall \ | |
| automake yasm cmake cmake-curses-gui && mkdir -pv $HOME/vlc_build | |
| sudo apt-get -y install liba52-0.7.4-dev libaa1-dev libasound2-dev libass-dev \ | |
| libavahi-client-dev libcaca-dev libcairo2-dev libcddb2-dev libcdio-dev libdca-dev \ |
| ## Configure eth0 | |
| # | |
| # vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
| DEVICE="eth0" | |
| NM_CONTROLLED="yes" | |
| ONBOOT=yes | |
| HWADDR=A4:BA:DB:37:F1:04 | |
| TYPE=Ethernet | |
| BOOTPROTO=static |
| <?php | |
| /* Example PHP Callback Script, PDO version */ | |
| /* ExtremeTop does not take responsibility for the use of this PHP snippet */ | |
| /* Validate post request and sanitize accordantly */ | |
| if (!empty($_POST['userid'])) | |
| { | |
| $userID = filter_var($_POST['userid'], FILTER_VALIDATE_INT, array('options' => array('default' => 0, "min_range" => 0))); | |
| } |
| #!/bin/bash | |
| db=$1 | |
| user=$2 | |
| passwd=$3 | |
| if [ "$db" = "" ]; then | |
| echo "Usage: $0 db_name user password" | |
| exit 1 | |
| fi | |
| clear | |
| for sql_file in *.sql; do |