Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
filebot -script fn:amc --output "/mnt/plex" --filter "age < 14" --def "ut_label=TV" --action symlink --conflict auto -non-strict "/mnt/media/showrss/" --log-file amc.log --def excludeList=/home/deluge/amclist --def subtitles=en
filebot -script fn:amc --output "/mnt/plex" --def "ut_label=Movies" --action symlink --conflict auto -non-strict "/mnt/media/movierss/" --log-file amc.log --def excludeList=/home/deluge/amclist --def subtitles=en
filebot -script fn:amc --output "/mnt/plex" --filter "age < 14" --def "ut_label=Anime" --action symlink --conflict auto -non-strict "/mnt/media/animerss/" --log-file amc.log --def excludeList=/home/deluge/amclist --def subtitles=en
filebot -script fn:amc --output "/mnt/plex" --def "ut_label=TV" --action symlink --conflict auto -non-strict "/mnt/media/tv/" --log-file amc.log --def excludeList=/home/deluge/amclist --def subtitles=en
filebot -script fn:amc --output "/mnt/plex" --def "ut_label=Anime" --action symlink --conflict auto -non-strict "/mnt/media/anime/" --lo
#!/bin/bash
exec 3>&1 4>&2
trap 'exec 2>&4 1>&3' 0 1 2 3
exec 1>/var/log/sync.log 2>&1
echo Starting up
cd /mnt/stage
rclone copy --min-age 1d --include '*' --checkers 4 --checksum /mnt/stage2/ acd:/media/
sleep 10
echo Killing Deluged
Jul 28 19:46:33 CoreProcess kernel: [136198.881639] ------------[ cut here ]------------
Jul 28 19:46:33 CoreProcess kernel: [136198.882663] kernel BUG at /build/linux-dcxD3m/linux-4.4.0/mm/workingset.c:346!
Jul 28 19:46:33 CoreProcess kernel: [136198.884256] invalid opcode: 0000 [#1] SMP
Jul 28 19:46:33 CoreProcess kernel: [136198.885238] Modules linked in: binfmt_misc xt_recent nfsv3 rpcsec_gss_krb5 nfsv4 nfs cachefiles fscache ip6_tunnel tunnel6 ipip tunnel4 ip_tunnel intel_rapl x86_pkg_temp_thermal intel_powerclamp c$
Jul 28 19:46:33 CoreProcess kernel: [136198.909787] CPU: 5 PID: 83 Comm: kswapd0 Not tainted 4.4.0-31-generic #50-Ubuntu
Jul 28 19:46:33 CoreProcess kernel: [136198.911526] Hardware name: Supermicro X9SRE/X9SRE-3F/X9SRi/X9SRi-3F/X9SRE/X9SRE-3F/X9SRi/X9SRi-3F, BIOS 3.2a 08/31/2015
Jul 28 19:46:33 CoreProcess kernel: [136198.914015] task: ffff88085ada6040 ti: ffff880859a68000 task.ti: ffff880859a68000
Jul 28 19:46:33 CoreProcess kernel: [136198.915843] RIP: 0010:[<ffffffff811ba491>] [<fffffff
Aug 2 19:43:54 CoreProcess kernel: [203977.314313] BUG: soft lockup - CPU#4 stuck for 22s! [khugepaged:72]
Aug 2 19:43:54 CoreProcess kernel: [203977.314319] Modules linked in: ip6t_REJECT xt_hl ip6t_rt ipt_REJECT xt_LOG xt_limit xt_tcpudp xt_addrtype nf_conntrack_netbios_ns nf_conntrack_broadcast nf_nat_ftp nf_nat nf_conntrack_ftp nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_filter ip6_tables nf_conntrack_ipv4 nf_defrag_ipv4 xt_recent xt_conntrack nf_conntrack iptable_filter ip_tables x_tables ecb ecryptfs x86_pkg_temp_thermal intel_powerclamp intel_rapl coretemp kvm_intel kvm joydev crc32_pclmul iTCO_wdt iTCO_vendor_support ttm drm_kms_helper drm aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper evdev cryptd i2c_i801 tpm_tis shpchp wmi serio_raw tpm sb_edac ioatdma edac_core mei_me mei pcspkr lpc_ich mfd_core processor thermal_sys button ipmi_watchdog ipmi_si ipmi_poweroff ipmi_devintf ipmi_msghandler fuse autofs4 ext4 crc16 mbcache jbd2 btrfs ohci_hcd uhci_hcd pata_via netxen_nic 3w_9xxx qlge ixgb
@cyberbalsa
cyberbalsa / gist:92855924a3faa00b1806f86d7752005e
Created August 10, 2016 03:00
Hidden Service - Non Rewriting Proxy
<?php
$uri = $_SERVER['REQUEST_URI'];
$url = "http://eveskunktd4tyipu.onion" . $uri;
$proxy = "127.0.0.1:9050";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_PROXY, $proxy);
curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5_HOSTNAME);
curl_setopt($ch, CURLOPT_USERAGENT, "JetBalsaProxy 1.0 - " . $_SERVER['HTTP_USER_AGENT'] );
@cyberbalsa
cyberbalsa / getfeed.php
Last active April 9, 2017 15:57
This script adds the "folder" child based off the show name so the shanaproject.com YaRSS Deluge Plugin can auto sort your shows off ShowRSS -- This PHP file is called like getfeed.php?id=43302 - so if your old feed url is http://showrss.info/user/43302.rss
<?php
header("Content-type: text/xml");
//setup globals
$dataurl = "http://showrss.info/user/" . preg_replace("/[^0-9]/", "",$_GET['id']) . ".rss";
$data = file_get_contents($dataurl);
$xml = new SimpleXMLElement($data);
foreach($xml->channel->item as $item){
$namespaces = $xml->getNameSpaces(true);
$tv = $item->children($namespaces['tv']);
#!/bin/bash
##CHECK IF INSTALLED AND DOWNLOAD
if [ ! -f ~/dogecoin-bin/bin/dogecoind ]; then
command -v curl >/dev/null 2>&1 || { echo >&2 "I require curl but it's not installed. Aborting."; exit 1; }
##CHECK ARCH
arch=$(uname -m)
echo Downloading Dogecoind for $arch
if [ "$arch" == 'x86_64' ]
<?php
require("vendor/autoload.php");
$api = new RestClient([
'base_url' => "https://cp-par1.scaleway.com",
'headers' => ['X-Auth-Token' => "#####################", "Content-Type" => "application/json"],
]);
$result = $api->get("servers");
$server = $result->decode_response();
$result = $api->get("volumes");
$volumes = $result->decode_response();
<?php
$url = urlencode($_SERVER["REQUEST_URI"]);
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_URL, "http://web.archive.org/web/https://eroshare.com".$url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$response = curl_exec($ch);
$header_size = curl_getinfo($ch, CURLINFO_HEADER_SIZE);
<?php
$server = 'tcp://efnet.port80.se';
$port = 6667;
$pass = '';
$nick = 'at-' . gethostname(); // FIX IF HOSTNAME != rysnc hostname, DO THE SAME FOR BELOW
$channel = '#rsync-status';
function send( $conn, $msg )
{
echo "--> {$msg}\n";
return fwrite( $conn, $msg . "\n" );