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
function getAllMuxes() { | |
return fetch('/api/mpegts/mux/grid', | |
{ | |
body: 'start=0&limit=999999999&sort=name&dir=ASC', method: 'POST', | |
credentials: 'include', | |
headers: { | |
'Accept': 'application/json, application/xml, text/plain, text/html, *.*', | |
'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8' | |
} | |
} |
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 | |
#This file can be used as a pipe script to TVHEADEND, as we know, IPTV is not reliable, | |
#and so, we need some buffers, as I didnt find any buffer options at ffmpeg, nor avconv, I used mplayer dumpstream. | |
#modify it as you need. | |
#Use a trap to kill mplayer and remove the fifo | |
trap 'kill -9 $PID && rm -f /home/hts/dump.stream 2>/dev/null' EXIT |
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 | |
class sandboxPluginLoader { | |
private $fileSystemFunctionsMap = array( | |
'realpath' => 0, | |
'chgrp' => 0, 'chmod' => 0, 'chown' => 0, | |
'unlink' => 0, 'copy' => array(0, 1), 'file' => 0, | |
'file_exists' => 0, 'file_get_contents' => 0, 'file_put_contents' => 0, | |
'flock' => 0, 'fopen' => 0, 'glob' => 0, | |
'link' => array(0, 1), 'readfile' => 0, 'readlink' => 0, | |
'rename' => array(0, 1), 'rmdir' => 0, |
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 | |
class MyRestfulHandler extends BaseRestfulHandler { | |
/** | |
* @url GET /users | |
*/ | |
public function getusers() { | |
return $userList; | |
} | |
/** |
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
<script src="http://static.tumblr.com/fpifyru/VCxlv9xwi/writecapture.js"></script> | |
<script type="text/javascript"> | |
$(function() { | |
$("a[href]").each( | |
function(index, element) { | |
if ( $(element).attr('href').indexOf('gist.github.com') > 0 ) { | |
var divElement = $('<div></div>'); | |
$(element).after(divElement); | |
writeCapture.html(divElement, '<script src="'+$(element).attr('href')+'.js"></'+'script>'); |
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 | |
$myDatabaseArray = array( | |
array( | |
'databaseId' => 1, | |
'databaseValue' => 'Hello' | |
), | |
array( | |
'databaseId' => 2, | |
'databaseValue' => 'World' | |
) |
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 | |
$myDatabaseArray = array( | |
array( | |
'databaseId' => 1, | |
'databaseValue' => 'Hello' | |
), | |
array( | |
'databaseId' => 2, | |
'databaseValue' => 'World' | |
) |