-
Inject profiling code
At the beginning of your .zshrc add following:
zmodload zsh/zprof
and at the end add:
zprof
This will load zprof mod and display what your shell was doing durung your initialization.
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
/** | |
* Upload files. | |
* | |
* @return void | |
*/ | |
public function uploadAction() { | |
$overwriteExistingFiles = TRUE; | |
$data = array(); | |
$namespace = key($_FILES); |
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
// Run this in the F12 javascript console in chrome | |
// if a redirect happens, the page will pause | |
// this helps because chrome's network tab's | |
// "preserve log" seems to technically preserve the log | |
// but you can't actually LOOK at it... | |
// also the "replay xhr" feature does not work after reload | |
// even if you "preserve log". | |
window.addEventListener("beforeunload", function() { debugger; }, false) |
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 Vendor\MyExt\Controller; | |
class MyController extends ActionController | |
{ | |
/** | |
* action create | |
* | |
* @param \Vendor\MyExt\Domain\Model\MyModel $myModel |
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 | |
require_once __DIR__ . '/SignupConfig.php'; | |
use Directus\Application\Application; | |
use Directus\Application\Http\Request; | |
use Directus\Application\Http\Response; | |
use Directus\Authentication\Exception\ExpiredRequestTokenException; | |
use Directus\Authentication\Exception\InvalidTokenException; | |
use Directus\Util\JWTUtils; |