-
Inject profiling code
At the beginning of your .zshrc add following:
zmodload zsh/zprofand at the end add:
zprofThis will load zprof mod and display what your shell was doing durung your initialization.
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
| # unistall orbstack first | |
| # if you install OrbStack, this app uses the same commands and replaces docker symlinks, | |
| # if you uninstall it, the docker commands doesn't work. You need to restore the symlinks. | |
| # remove old links orbstack | |
| sudo rm -f /usr/local/bin/docker /usr/local/bin/docker-compose /usr/local/bin/docker-buildx /usr/local/bin/docker-credential-desktop | |
| # create new links to docker desktop | |
| sudo ln -s /Applications/Docker.app/Contents/Resources/bin/docker /usr/local/bin/docker |
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 | |
| namespace My\Site\Utility; | |
| use TYPO3\CMS\Backend\Utility\BackendUtility; | |
| use TYPO3\CMS\Core\Database\ConnectionPool; | |
| use TYPO3\CMS\Core\DataHandling\Model\RecordStateFactory; | |
| use TYPO3\CMS\Core\DataHandling\SlugHelper; | |
| use TYPO3\CMS\Core\Utility\GeneralUtility; | |
| use TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface; |
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 | |
| 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; |
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 | |
| namespace Vendor\MyExt\Controller; | |
| class MyController extends ActionController | |
| { | |
| /** | |
| * action create | |
| * | |
| * @param \Vendor\MyExt\Domain\Model\MyModel $myModel |
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
| // 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 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
| /** | |
| * Upload files. | |
| * | |
| * @return void | |
| */ | |
| public function uploadAction() { | |
| $overwriteExistingFiles = TRUE; | |
| $data = array(); | |
| $namespace = key($_FILES); |