This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
############################### | |
# Here You can Edit Your Data # | |
############################### | |
LOG_LOCATION=/tmp | |
########################################## | |
##############END EDIT DATA############### | |
########################################## | |
txtrst=$(tput sgr0) # Text reset | |
txtred=$(tput setab 1) # Red Background |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bash: | |
#!/bin/bash | |
# chmod +x nginx_rtmp.sh && ./nginx_rtmp.sh | |
echo "Installing NGINX+RTMP+MPEGTS" | |
apt-get update -qq | |
apt-get -y install libpcre3 libpcre3-dev libssl-dev php-fpm | |
# make folders |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
set_time_limit(0); | |
define("MAIN_DIR", "/home/xtreamcodes/"); | |
define("IPTV_PANEL_DIR", MAIN_DIR . "iptv_xtream_codes/"); | |
define("STREAMS_PATH", IPTV_PANEL_DIR . "streams/"); | |
define("TIMEOUT", 60); // TIMEOUT BEFORE CANCELLING | |
define("AUTH", "98671942"); // API AUTHENTICATION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* M4UNDY | |
* Add and Edit DNS records using cloudflare API | |
*/ | |
class CloudflareDNSAPI{ | |
protected $ZoneID; | |
public function __construct($ZoneID) { | |
$this->zone_id = $ZoneID; | |
$this->url = 'https://api.cloudflare.com/client/v4/'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-add-repository -y ppa:kirillshkrogalev/ffmpeg-next && sudo apt-add-repository -y ppa:obsproject/obs-studio | |
sudo apt-get update | |
sudo apt-get install ffmpeg obs-studio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
declare(strict_types = 1); | |
if ($argc !== 2) { | |
fprintf ( STDERR, "usage: %s dir\n", $argv [0] ); | |
die ( 1 ); | |
} | |
$dir = rtrim ( $argv [1], DIRECTORY_SEPARATOR ); | |
if (! is_readable ( $dir )) { | |
fprintf ( STDERR, "supplied path is not readable! (try running as an administrator?)" ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* File Manager Script | |
*/ | |
// Default language ('en' and other from 'filemanager-l10n.php') | |
$lang = 'en'; | |
// Auth with login/password (set true/false to enable/disable it) | |
$use_auth = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Instructions to use this script | |
# | |
#chmod +x lamp.sh | |
# | |
#sudo ./lamp.sh | |
echo "###################################################################################" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Change this to path of file to stream /edit/to/vod/path.mp4 | |
mediaFile="/edit/to/vod/path.mp4" | |
### 480x video400kbps audio40kbps ### | |
mediaStreams="-map 0" | |
audCodec="-acodec mp2" | |
audKbps="-b:a 40k" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* cd into folder with video files and run: | |
* php /path/to/ffmpeg2mp4.php mp4 | |
*/ | |
class Transcoder{ | |
protected static $ffmpeg='ffmpeg'; |