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
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Text; | |
using System.Threading.Tasks; | |
/// <summary> | |
/// Process helper with asynchronous interface | |
/// - Based on https://gist.github.com/georg-jung/3a8703946075d56423e418ea76212745 | |
/// - And on https://stackoverflow.com/questions/470256/process-waitforexit-asynchronously | |
/// </summary> |
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 | |
/** | |
* Password BCRYPT Hash Cost Calculator | |
* | |
* Just upload this script to your server and run it, either through CLI or by calling it in your browser. | |
* | |
* You should choose a cost that will take at least 100ms | |
*/ | |
// Upper time limit to check |
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 | |
/** | |
* LanguageMatch | |
* Based on https://gist.github.com/christianseel/504302ce8ddfcde009c0 | |
* Original code by http://stackoverflow.com/a/3771447 | |
* | |
* Udated by Indigo74 for prefix/suffix and default context | |
*/ | |
define('CONTEXT_PREFIX', 'web-'); |