Skip to content

Instantly share code, notes, and snippets.

@TGM
TGM / radarr-cleanup.sh
Last active March 22, 2020 18:34
radarr-cleanup.sh
#!/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
@TGM
TGM / INSTALL.md
Created March 14, 2018 12:51 — forked from arya-oss/INSTALL.md
Ubuntu 16.04 Developer Tools installation

Ubuntu 16.04 Developer Tools Installation

First things first !

sudo apt update
sudo apt upgrade

Standard Developer Tools

sudo apt-get install build-essential git
# 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
@TGM
TGM / zfs_health.sh
Created October 13, 2017 13:27 — forked from geggo98/zfs_health.sh
ZFS health checker script from calomel.org, adapted for Ubuntu Linux
#! /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)));
}
@TGM
TGM / meta-tags.md
Created November 12, 2013 21:35 — forked from jaigouk/meta-tags.md

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
@TGM
TGM / mysql_multiple_import.bash
Created October 14, 2012 10:24 — forked from gagarine/mysql_multiple_import.bash
Import multiple sql file in a mysql database
#!/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