parse @message /Query_time: (?<queryTime>.*?) Lock_time: (?<lockTime>.*?) Rows_sent: (?<rowsSent>.*?) Rows_examined: (?<rowsExamined>.*?)\s(?<query>.*?)$/
| filter @message like /(?i)insert/
| sort queryTime desc
| limit 10
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 | |
header("Content-Type: text/plain"); | |
$data = file("data.txt"); | |
$bytesRx = $data[0]; | |
$bytesTx = $data[1]; | |
?># TYPE modem_stats_bytesrx counter | |
modem_stats_bytesrx <?= $bytesRx ?> | |
# TYPE modem_stats_bytestx counter | |
modem_stats_bytestx <?= $bytesTx ?> |
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 Colour from './Colour'; | |
import Resample from './Resample'; | |
/** | |
* Average hash for images | |
* | |
* @author John Noel <[email protected]> | |
* @see http://www.hackerfactor.com/blog/index.php?/archives/432-Looks-Like-It.html | |
* @see https://github.com/jenssegers/imagehash/blob/master/src/Implementations/AverageHash.php | |
*/ |