Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
| # Install phpbrew | |
| sudo apt-get update | |
| sudo apt-get install libmcrypt-dev | |
| curl -L -O https://github.com/phpbrew/phpbrew/raw/master/phpbrew | |
| chmod +x phpbrew | |
| sudo mv phpbrew /usr/local/bin/ | |
| phpbrew init | |
| [[ -e ~/.phpbrew/bashrc ]] && source ~/.phpbrew/bashrc |
| #!/bin/sh | |
| # Based on instructions found here: http://wiki.razuna.com/display/ecp/FFMpeg+Installation+on+CentOS+and+RedHat#FFMpegInstallationonCentOSandRedHat-InstallX264 | |
| if [ "`/usr/bin/whoami`" != "root" ]; then | |
| echo "You need to execute this script as root." | |
| exit 1 | |
| fi | |
| cat > /etc/yum.repos.d/centos.repo<<EOF |
| <?php | |
| /* config/site_post.php */ | |
| $req = Request::get(); | |
| if ($req->getRequestPath() == 'export_scrapbook_proxies') { | |
| $root = new SimpleXMLElement("<concrete5-cif></concrete5-cif>"); | |
| $root->addAttribute('version', '1.0'); | |
| $pages = $root->addChild("pages"); | |
| // Get all active scrapbook proxy blocks |
| <?php | |
| Route::register('/import', function () { | |
| /*=============== Just for checking ============*/ | |
| // Get block type | |
| $bt = BlockType::getByHandle(BLOCK_HANDLE_SCRAPBOOK_PROXY); | |
| echo 'Active proxy blocks: ' . $bt->getCount(true) . '<br>'; | |
| $list = new PageList(); | |
| $list->filterByBlockType($bt); | |
| Log::info('getQuery'); |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
| #/usr/local/etc/php/7.2/conf.d/ext-opcache.ini | |
| # Add the following lines and run `valet restart` | |
| ``` | |
| [opcache] | |
| zend_extension="/usr/local/opt/php/lib/php/20170718/opcache.so" | |
| opcache.enable = 1 | |
| ``` |
| #!/bin/bash | |
| # Creator: Phil Cook | |
| # Modified: Andy Miller | |
| brew_prefix=$(brew --prefix | sed 's#/#\\\/#g') | |
| brew_array=("5.5","5.6","7.0","7.1","7.2", "7.3") | |
| php_array=("[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]") | |
| valet_support_php_version_array=("[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]") | |
| php_installed_array=() | |
| php_version="php@$1" |