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/sh | |
apt-get update | |
apt-get install firefox-esr xfce4 xfce4-goodies gnome-icon-theme tightvncserver -y | |
cd /etc/init.d/ | |
wget https://gist.githubusercontent.com/Domin8-IPTV/efcf0a118b6eab7a5461e4afab608437/raw/d926bdfb4f802e53b97e9c4b74552874397fa1a7/vncserver && chmod +x vncserver | |
systemctl daemon-reload | |
systemctl enable vncserver | |
vncserver |
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 | |
# | |
# MAUNDYS LETV with lets encrypt config setup | |
# | |
if [ "$(id -u)" != "0" ]; then | |
echo "This script requires root privileges." | |
exit 1 | |
fi |
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/sh | |
EXPECTED_SIGNATURE="$(wget -q -O - https://composer.github.io/installer.sig)" | |
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |
ACTUAL_SIGNATURE="$(php -r "echo hash_file('sha384', 'composer-setup.php');")" | |
if [ "$EXPECTED_SIGNATURE" != "$ACTUAL_SIGNATURE" ] | |
then | |
>&2 echo 'ERROR: Invalid installer signature' | |
rm composer-setup.php |
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 python | |
import sys | |
import urllib2 | |
import codecs | |
from contextlib import closing | |
class Track: | |
def __init__(self, length, title, path): | |
self.length = length |
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 | |
# | |
# APACHE2 INSTALL | |
# | |
sudo apt-get install apache2 | |
apt-get install mcrypt | |
apt-get install curl | |
apt-get install php5-curl | |
apt-get install php5-mcrypt | |
apt-get update |
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 python | |
# | |
# CloudFlare DDNS script. | |
# | |
# usage: | |
# cloudflare_ddns.py [config] | |
# | |
# See README for details | |
# |
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 | |
# | |
read -p 'Set Web Directory (Example: /var/www/html) ' directory | |
read -p 'Set Web Domain (Example: 127.0.0.1 [Not trailing slash!]) ' domain | |
# | |
sudo apt-get update && sudo apt-get upgrade | |
sudo apt update && sudo apt dist-upgrade && sudo apt autoremove -y | |
sudo apt-get install default-jdk -y | |
sudo apt-get install software-properties-common -y | |
sudo apt-get install python-software-properties -y |
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/sh | |
# use ffmpeg to concatenate all the mp4 files in the media directory | |
# make file executable and run like this | |
# ./make247.sh /path/to/media/folder | |
# | |
IN_DIR="$1"; | |
if [ "$IN_DIR" = '' ] ; then | |
IN_DIR="." | |
fi | |
for f in ${IN_DIR}/*.mp4; do echo "file '$f'" >> concat-list.txt; done |
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'; |
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" |