- Add composer source: "graylog2/gelf-php": "~1.0"
parameters.yml
graylog.hostname: you.host.name
graylog.port: 12201
| <?php | |
| set_exception_handler( function(\Exception $e) { | |
| $rows = "\n ========= \n"; | |
| $exception = sprintf( | |
| "Exception: %s \n Origin: %s on line %s \n", | |
| $e->getMessage(), | |
| $e->getFile(), | |
| $e->getLine() | |
| ); |
| <?php declare(strict_types=1); | |
| class Test | |
| { | |
| private $arr = []; | |
| public function __construct() | |
| { | |
| for ( $i = 0; $i < 10000; $i++ ) | |
| { |
| # 1. Install brew --> http://brew.sh/ | |
| # 2. run the following commands in your Terminal | |
| brew tap homebrew/dupes | |
| brew tap homebrew/versions | |
| brew tap homebrew/homebrew-php | |
| brew install --with-openssl curl | |
| brew install --with-homebrew-curl --with-apache php71 | |
| brew install php71-mcrypt php71-imagick | |
| # 3. Follow these instructions to make Apache and php-cli use the newer php executable and make the change persist after reboot. | |
| brew info php71 |
| {% for type, messages in app.session.flashBag.all %} | |
| {% for message in messages %} | |
| {%if type == 'error'%} {% set type = 'danger' %} {%endif%} | |
| <div class="alert alert-{{ type }}"> | |
| {{ message|raw }} | |
| </div> | |
| {% endfor %} | |
| {% endfor %} |
| # Usage: | |
| # source iterm2.zsh | |
| # iTerm2 window/tab color commands | |
| # Requires iTerm2 >= Build 1.0.0.20110804 | |
| # http://code.google.com/p/iterm2/wiki/ProprietaryEscapeCodes | |
| tab-color() { | |
| echo -ne "\033]6;1;bg;red;brightness;$1\a" | |
| echo -ne "\033]6;1;bg;green;brightness;$2\a" | |
| echo -ne "\033]6;1;bg;blue;brightness;$3\a" |
| ----- Esc ----- | |
| Quick change directory: Esc + c | |
| Quick change directory history: Esc + c and then Esc + h | |
| Quick change directory previous entry: Esc + c and then Esc + p | |
| Command line history: Esc + h | |
| Command line previous command: Esc + p | |
| View change: Esc + t (each time you do this shortcut a new directory view will appear) | |
| Print current working directory in command line: Esc + a | |
| Switch between background command line and MC: Ctrl + o | |
| Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name |