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
#!/usr/bin/php | |
<?php | |
$today = new DateTime(); | |
$firstEntry = new DateTime(); | |
// Set from timestamp (this should be the first log entry of nagios.log.old) | |
$firstEntry->setTimestamp( 1555408368 ); | |
$interval = DateInterval::createFromDateString('1 day'); | |
$period = new DatePeriod( $firstEntry, $interval, $today ); |
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
location /vshell2 { | |
root /usr/local; | |
## Set rewrites | |
rewrite ^/vshell2/(/)?$ /vshell2/frontend/index.html break; | |
} | |
location /vshell2/api { | |
root /usr/local; |
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 | |
/** | |
* PHP Dartgame calculating class | |
* @author Youri van den Bogert | |
*/ | |
class Darts { | |
/** | |
* @var string |