Skip to content

Instantly share code, notes, and snippets.

View spicydog's full-sized avatar

spicydog spicydog

View GitHub Profile
@spicydog
spicydog / No-IP Update with PHP and Crontab
Last active May 16, 2024 03:15
PHP Script for updating ip for no-ip DDNS and example script for crontab
# Update no-ip ip every one hour
0 * * * * curl "YOUR_HOST_URL/noip-updater.php" > /dev/null 2>&1
@spicydog
spicydog / anime_auto_download.php
Last active December 1, 2015 08:32
Auto anime download with aria2c and php from horriblesubs.info
<?php
$keyword = 'one piece';
$keyword = 'fairy tail';
function subBetweenStrings($string, $begin, $end) {
if($begin==='')
return substr( $string, 0, strpos($string,$end) );
if($end==='')
return substr($string, strpos($string, $begin)+strlen($begin));