- Hardware: 2016 MacBook Pro w/ 2.9 GHz Intel Core i7, 16 GB 2133 MHz LPDDR3
- MAMP Pro 4.1
- Nginx 1.11.4
- MySQL 5.6.34
- PHP 5.6.28 / 7.1.0 (CGI mode, OPcache enabled)
- ApacheBench 2.3
- Craft CMS 2.6.2958 / 3.0.0-beta.1
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 | |
namespace Craft; | |
class CompatibilityPlugin extends BasePlugin | |
{ | |
function getName() | |
{ | |
return Craft::t('Browser Compatibility'); | |
} |
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 | |
// -- modules/Module.php -- | |
namespace modules; | |
use Craft; | |
use craft\base\Element; | |
use craft\elements\Entry; | |
use craft\events\RegisterPreviewTargetsEvent; |
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 | |
namespace foo\bar; | |
use yii\log\Target; | |
/** | |
* Define a LogTarget class that only collects the log messages, but never flushes them out anywhere | |
*/ | |
class LogTarget extends Target | |
{ |
I hereby claim:
- I am brandonkelly on github.
- I am brandonkelly (https://keybase.io/brandonkelly) on keybase.
- I have a public key ASBSTBHBxc0E6qGHlzL0iNPFzO-j9rWbFHyjoGuYIxhbygo
To claim this, I am signing this object:
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
#!/usr/bin/env php | |
<?php | |
// ----------------------------------------------------------------------------- | |
// Usage: `cherrypath.php <upstream> <head> <path>` | |
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
// Runs `git cherry -v <upstream> <head>` and filters the output | |
// to only include SHAs where <path> was modified. | |
// ----------------------------------------------------------------------------- |
OlderNewer