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
// ==UserScript== | |
// @name Miles Finch | |
// @namespace https://dynamiccatholic.com/ | |
// @version 1.0 | |
// @description try to take over the world! | |
// @author You | |
// @include * | |
// @grant none | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js | |
// @updateURL https://gist.githubusercontent.com/AdJesumPerMariam/60448ae9d16c7268e83bdcac97c3f16b/raw/miles_finch.js |
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 | |
/** | |
* Returns whether the given CSRF token is valid | |
* | |
* @param string $token The CSRF token given by the client | |
* | |
* @author Scott Reed <[email protected]> | |
* @return boolean | |
*/ |
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 | |
/* | |
Monitor /var/log/nginx/error.log and insert entries into New Relic | |
Place in cron to run every minute | |
This script matches the following error.log format: | |
2017/12/15 03:35:11 [error] 64972#64972: *12659427 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: dynamiccatholic.com, request: "POST / HTTP/1.0", upstream: "fastcgi://127.0.0.1:9000", host: "dynamiccatholic.com", referrer: "https://dynamiccatholic.com/" | |
<[email protected]> - 11/28/17 |