| Description | Command |
|---|---|
| Start a new session with session name | screen -S <session_name> |
| List running sessions / screens | screen -ls |
| Attach to a running session | screen -x |
| Attach to a running session with name | screen -r |
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
| #301 Redirect Local Images to Live | |
| RedirectMatch 301 ^/wp-content/uploads/(.*) http://livewebsite.com/wp-content/uploads/$1 |
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 | |
| protected function execute(InputInterface $input, OutputInterface $output) | |
| { | |
| $progress = $this->getHelperSet()->get('progress'); | |
| $ctx = stream_context_create(array(), array('notification' => function ($notification_code, $severity, $message, $message_code, $bytes_transferred, $bytes_max) use ($output, $progress) { | |
| switch ($notification_code) { | |
| case STREAM_NOTIFY_FILE_SIZE_IS: | |
| $progress->start($output, $bytes_max); | |
| break; |
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 | |
| $bindRawSql = function (\Illuminate\Database\Query\Builder $q) { | |
| $sql = $q->toSql(); | |
| foreach ($q->getBindings() as $binding) { | |
| $binding = (is_numeric($binding)) ? $binding : "'$binding'"; | |
| $sql = substr_replace($sql, $binding, stripos($sql, '?'), 1); | |
| } | |
| return $sql; | |
| }; |