A one-liner that pulls an AAC stream, pipes it into ffmpeg which transcodes it to mp3, then pipes it into ezstream with your settings (in the xml file) which streams it your radio.
sudo apt-get install ficy ffmpeg ezstream
<?php | |
/* | |
Plugin Name: Custom Registration | |
Description: Updates user rating based on number of posts. | |
Version: 1.1 | |
Author: Tristan Slater w/ Agbonghama Collins | |
Author URI: http://kanso.ca | |
*/ |
#!/bin/sh | |
# Config for SSL. | |
echo "--- Making SSL Directory ---" | |
mkdir /etc/nginx/ssl | |
echo "--- Copying $i SSL crt and key ---" | |
openssl req -nodes -new -x509 -keyout /etc/nginx/ssl/server.key -out /etc/nginx/ssl/server.crt -subj "/C=US/ST=NY/L=NYC/O=Dis/CN=www.example.com" | |
echo "--- Turning SSL on in nginx.conf. ---" |
/** | |
* Parse JSON string that may contain HTML elements - requires jQuery | |
* | |
* @param {string} string JSON text to attempt to parse | |
* @returns {object} Either JSON-parsed object or object with a message key containing an error message | |
*/ | |
function maybe_parse_json( string ) { | |
var json_object; | |
// Parse valid JSON |
<?php | |
// Languages we support | |
$available_languages = array("zh-cn", "ca", "es", "fr", "af","nl", "sp", "en"); | |
$default_language = "en"; // a default language to fall back to in case there's no match | |
function prefered_language($available_languages, $http_accept_language) { | |
global $default_language; | |
$available_languages = array_flip($available_languages); |
//----------------------------- MISC -------------------------------\\ | |
//------------------------------------------------------------------\\ | |
sv_cheats "1" | |
sv_showimpacts "0" | |
sv_showimpacts_time "2.5" | |
//---------------------------- BINDS -------------------------------\\ | |
//------------------------------------------------------------------\\ | |
bind "SPACE" "demo_togglepause" // pause/play demo | |
bind "c" "r_cleardecals" // get rid of bulletholes and black residue from grenade explosions |
/*** | |
* Convert standard ISO country codes to NetSuite's world | |
* | |
* @param $isoCode | |
* | |
* @return string|bool | |
*/ | |
public function convertCountryCode($isoCode) | |
{ |
# Managed WordPress Hosting .gitignore file for ignoring WordPress files | |
# | |
# Most recent revision here: | |
# https://gist.github.com/joemaller/4f7518e0d04a82a3ca16 | |
# | |
# Raw Source (for curl): | |
# https://gist.githubusercontent.com/joemaller/4f7518e0d04a82a3ca16/raw | |
# | |
# Used by these WordPress Development environments: | |
# https://github.com/ideasonpurpose/docker-wordpress-dev |
<?php | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; | |
} | |
/** | |
* Sample instance based method. | |
*/ | |
class WC_Shipping_Test_Method extends WC_Shipping_Method { |
# http://stackoverflow.com/questions/1388025/how-to-get-id-of-the-last-updated-row-in-mysql | |
# single row update | |
SET @update_id := 0; | |
UPDATE some_table SET column_name = 'value', id = (SELECT @update_id := id) | |
WHERE some_other_column = 'blah' LIMIT 1; | |
SELECT @update_id; | |
# Multiple rows updated | |
SET @uids := null; |