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 | |
ini_set('memory_limit','512M'); | |
class MessageStructure | |
{ | |
/** | |
* @var mixed | |
*/ | |
public $topic; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
set_error_handler(function ($errno, $errstr, $errfile, $errline) { | |
static $calls = 0; | |
echo PHP_EOL, PHP_EOL, $errno, ' ', $errstr, ' ', $errfile, ' ', $errline, PHP_EOL; | |
$bt = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS); | |
print_r($bt); | |
// debug_print_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS); | |
if($calls ++ > 3) { | |
exit(1); | |
} |
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 | |
$fh = STDIN; | |
while (!feof($fh)) { | |
$command = json_decode(fgets($fh)); | |
if(!is_object($command)) { | |
exit; | |
} |
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
function importLodash() { | |
var s = document.createElement('script'); | |
s.type = 'text/javascript'; | |
s.src = 'https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.10.1/lodash.min.js'; | |
document.body.appendChild(s); | |
} | |
function toURL(id) { | |
return '/test/reprocess_asset/' + id; | |
} |
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 | |
stream_set_blocking(STDIN, 1); | |
$pattern = '(?<=Request Body \[).+?(?=\] {"file")'; | |
while(($line = fgets(STDIN)) !== false) { | |
if(preg_match($pattern, $line) === 1) { | |
echo json_decode($matches[0]), PHP_EOL; | |
} | |
} |
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
grep -Pio '(?<=Request Body \[).+?(?=\] {"file")' ./app/tmp/logs/elasticsearch-php.log | tail | php -r 'stream_set_blocking(STDIN, 0); while(($line = fgets(STDIN)) !== false) { echo json_decode($line), PHP_EOL; }' |
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 | |
// get the raw mysql object | |
$dataSource = ConnectionManager::getDataSource('default'); | |
$mysqli = $dataSource->connection; | |
// dump the config | |
var_dump($dataSource->config); | |
// query the database |
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
echo -e "\nFile Formats" | |
ffmpeg -v warning -formats | grep '^\sD[^\.]' | grep -vi '\(audio\|sound\|subtitle\|caption\)' | awk '{print " -", $2}' | |
echo -e "\nVideo Codecs" | |
ffmpeg -v warning -codecs | grep '^\sD.A' | awk '{print " -", $2}' | |
echo -e "\nAudio Codecs" | |
ffmpeg -v warning -codecs | grep '^\sD.V' | awk '{print " -", $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
GET /_aliases | |
GET /_cluster/nodes | |
GET /_cluster/health | |
GET /_cluster/state | |
GET /_cluster/state/?filter_nodes=true&filter_metadata=true | |
GET /_cluster/nodes/process | |
GET /_cluster/pending_tasks | |
GET /_nodes/ | |
GET /_nodes/stats |
NewerOlder