This file contains hidden or 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 | |
# Script location : /srv/bin/npm_backup.sh | |
# npm_home : Location of nginx-proxy-manager installation | |
# backup_target : Folder name for backup | |
npm_home=/srv/nginx-proxy-manager | |
backup_target=/media/Backups/nginx-proxy-manager | |
# Import protected variables | |
source /srv/bin/.env | |
# Create Backup |
This file contains hidden or 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 | |
# Script location : /srv/bin/npm_restore.sh | |
# restore_source : Folder name for restore | |
# npm_home : Location of nginx-proxy-manager installation | |
restore_source=/media/Backups/nginx-proxy-manager | |
npm_home=/srv/nginx-proxy-manager | |
# Import protected variables | |
source /srv/bin/.env | |
# Restore Items |
This file contains hidden or 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
#EXTM3U | |
#EXTINF:-1,BBC - Radio 1 | |
http://as-hls-ww-live.akamaized.net/pool_01505109/live/ww/bbc_radio_one/bbc_radio_one.isml/bbc_radio_one-audio%3d96000.norewind.m3u8 | |
#EXTINF:-1,BBC - Radio 1Xtra | |
http://as-hls-ww-live.akamaized.net/pool_92079267/live/ww/bbc_1xtra/bbc_1xtra.isml/bbc_1xtra-audio%3d96000.norewind.m3u8 | |
#EXTINF:-1,BBC - Radio 1Dance | |
http://as-hls-ww-live.akamaized.net/pool_62063831/live/ww/bbc_radio_one_dance/bbc_radio_one_dance.isml/bbc_radio_one_dance-audio%3d96000.norewind.m3u8 | |
#EXTINF:-1,BBC - Radio 1 Anthems (UK Only) | |
http://as-hls-uk-live.akamaized.net/pool_904/live/uk/bbc_radio_one_anthems/bbc_radio_one_anthems.isml/bbc_radio_one_anthems-audio%3d96000.norewind.m3u8 | |
#EXTINF:-1,BBC - Radio 2 |
This file contains hidden or 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
# Custom Configuration (Specified in Station Profile) | |
# This script is customized from the original, which can be found here: | |
# https://github.com/mkpascal/mk_liquidsoap_processing/blob/master/process.liq | |
# | |
# It can be added to your station via `Utilities` > `Edit Liquidsoap Configuration` | |
# where it can then be pasted into the bottom-most open text area, before the broadcasts | |
# are sent out to the various sources. | |
# Audio Input ---------------------> |
In this exemple of configuration, if the first server fail (proxy_connect_timeout) one time (max_fails), the second server will be used for 60s (fail_timeout).
The SSL certificate need to be configure on the ReverseProxy server AND the proxyied servers. You can use the same certificate and configurations on all servers.
To test the configuration you can change your host file to simulate the correct domain name.
Use the following tool to configure SSL with optimal configuration.
This file contains hidden or 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 | |
# Paste at Pastebin.com using command line (browsers are slow, right?) | |
# coder : Anil Dewani | |
# date : Novemeber 7, 2010 | |
# revised on June 22, 2018 by Jonathan Guenther | |
# see README for more information (if I have time to create one...) | |
echo +--------------------------------------------+ |
A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
This file contains hidden or 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
import ( | |
"bufio" | |
"bytes" | |
"fmt" | |
"net/http" | |
"strconv" | |
) | |
// GetStreamTitle get the current song/show in an Icecast stream | |
func (r *Radio) GetStreamTitle(streamUrl string) (string, error) { |
This file contains hidden or 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 | |
date_default_timezone_set('America/Los_Angeles'); | |
session_start(); | |
include("ratelimiter.php"); | |
// in this sample, we are using the originating IP, but you can modify to use API keys, or tokens or what-have-you. | |
$rateLimiter = new RateLimiter($_SERVER["REMOTE_ADDR"]); | |
$limit = 100; // number of connections to limit user to per $minutes | |
$minutes = 1; // number of $minutes to check for. |
NewerOlder