Skip to content

Instantly share code, notes, and snippets.

@Domin8-IPTV
Domin8-IPTV / insert.php
Created September 29, 2020 16:43
insert weekly score
<?php
// MADE BY M4UNDY
// ENTER SHOOTERS WEEKLY SCORES INTO MYSQL DATABASE
$shooter = mysqli_real_escape_string($link, $_POST['shooter']);
$values = [];
foreach ($_POST['week_score'] as $key => $score) {
$score = trim(mysqli_real_escape_string($link, $score));
if (!empty($score)) {
$values[] = "('$shooter','$key','$score')";
@Domin8-IPTV
Domin8-IPTV / dropbox.sh
Created March 4, 2020 15:54
dropbox.sh
#!/bin/bash
#////////////////////////////////////////////////////////////
#===========================================================
# Dropbox FS Installer for Debian / Ubuntu
#===========================================================
# set environment
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
LOG=/tmp/dropbox_fs.log
# are we running as root
@Domin8-IPTV
Domin8-IPTV / emby_update.sh
Last active February 18, 2020 21:19
EMBY Update
#!/bin/bash
packageName="emby-server"
packageURL="https://api.github.com/repos/MediaBrowser/Emby/releases/latest"
tmp="/tmp"
latestVersionURL=$(curl -s "$packageURL" | jq -r ".assets[] | select(.name | test(\"amd64\")) | .browser_download_url" |grep -v netgear)
fileName=$(basename -s .deb $latestVersionURL)
lastInstalled=$(dpkg -s $packageName |grep '^Version' | awk '{print $2}')
getFile () {
echo "Downloading "$fileName"" & curl -L $latestVersionURL -o $tmp/$fileName 2>/dev/null
if [[ "$?" = "0" ]]; then dpkg -i $tmp/$fileName; else exit 2; fi ; }
@Domin8-IPTV
Domin8-IPTV / emby_rclone.py
Created January 24, 2020 22:59
Emby webhook for RClone Cache
#!/usr/bin/env python3
from http.server import BaseHTTPRequestHandler, HTTPServer
import logging
import json
import os
import os.path
from os import path
"""
HOW TO SET THIS UP
@Domin8-IPTV
Domin8-IPTV / apache2.sh
Last active February 18, 2020 23:13
apache2.sh
#!/bin/bash
apt-get update && apt-get upgrade
apt-get install apache2
apt-get install libapache2-mod-php5
apt-get install mcrypt
apt-get install curl
apt-get install php5-curl
apt-get install php5-mcrypt
a2enmod rewrite
php5enmod mcrypt
@Domin8-IPTV
Domin8-IPTV / lamp18.sh
Created January 8, 2020 20:47
lamp on ubuntu 18.04
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
sudo apt-get install -y software-properties-common
# For Ubuntu 16.04 Run - bash lamp18.sh Script should auto terminate on errors
echo -e "\e[96m ADDING PPA \e[39m"
@Domin8-IPTV
Domin8-IPTV / BBCiPlayer.m3u8
Created December 22, 2019 23:24
BBCi Player M3U8
#EXTM3U
#EXTINF:-1 tvg-id="BBC One HD" tvg-name="BBC One HD" tvg-logo="https://s4.postimg.org/k5xl5dmf1/bbc_one.png" group-title="BBC",BBC One HD
http://a.files.bbci.co.uk/media/live/manifesto/audio_video/simulcast/hls/uk/abr_hdtv/ak/bbc_one_hd.m3u8
#EXTINF:-1 tvg-id="BBC One London" tvg-name="BBC One London" tvg-logo="https://s4.postimg.org/z61nj8qd9/Bbc_london_logo.jpg" group-title="BBC",BBC One London
http://a.files.bbci.co.uk/media/live/manifesto/audio_video/simulcast/hls/uk/hls_tablet/ak/bbc_one_london.m3u8
#EXTINF:-1 tvg-id="BBC One Northern Ireland HD" tvg-name="BBC One Northern Ireland HD" tvg-logo="https://s3.postimg.org/ltztuojqr/6y_QROLCn_400x400.png" group-title="BBC",BBC One Northern Ireland HD
http://a.files.bbci.co.uk/media/live/manifesto/audio_video/simulcast/hls/uk/abr_hdtv/ak/bbc_one_northern_ireland_hd.m3u8
#EXTINF:-1 tvg-id="BBC One Scotland HD" tvg-name="BBC One Scotland HD" tvg-logo="https://s3.postimg.org/ltztuojqr/6y_QROLCn_400x400.png" group-title="BBC",BBC One Scotland HD
http://a.fi
@Domin8-IPTV
Domin8-IPTV / yt-fb-live.php
Last active September 28, 2020 01:42
GET LIVE SOURCE FEED FROM YOUTUBE AND FACEBOOK LIVE STREAMS
<?PHP
/*
YOUTUBE AND FACEBOOK LIVE STREAM SNATCHING
MADE BY M4UNDY
*/
$channelid = $_GET["watch?v"];
ini_set("user_agent","facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)");
function get_data($url) {
$ch = curl_init();
$timeout = 5;
@Domin8-IPTV
Domin8-IPTV / ffmpeg.sh
Created November 15, 2019 06:31
ffmpeg.sh
#!/bin/bash
#update and upgrade Ubuntu
sudo apt-get update && sudo apt-get upgrade -y ;\
#install ffmpeg
sudo add-apt-repository ppa:jonathonf/ffmpeg-4 ;\
sudo apt-get update ;\
javascript:(function()%7B function htmlEscape(s)%7Bs%3Ds.replace(/%26/g,%27%26amp%3B%27)%3Bs%3Ds.replace(/>/g,%27%26gt%3B%27)%3Bs%3Ds.replace(/</g,%27%26lt%3B%27)%3Breturn s%3B%7D x%3Dwindow.open()%3B x.document.write(%27<pre>%27 %2B htmlEscape(%27<html>%5Cn%27 %2B document.documentElement.innerHTML %2B %27%5Cn</html>%27))%3B x.document.close()%3B %7D)()%3B