If you have the latest sublime text (version 4), you can just do:
subl --safe-mode
#!/bin/bash | |
# Install docker | |
apt-get update | |
apt-get install -y apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
stable" | |
apt-get update |
haproxy: | |
image: interaction/haproxy:master | |
links: | |
- letsencrypt | |
- web | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes_from: | |
- letsencrypt |
$ export AWS_ACCESS_KEY=<ENTER ACCESS KEY> | |
$ export SECRET_ACCESS_KEY=<ENTER SECRET ACCESS KEY> | |
$ psql -h <redshift-host> -p <redshift-port> -d default -U <redshift-user> -c <redshift-query> |
function process($root, $path, $moduleName, $folder) { | |
$file = get-content (join-path $root $path) | |
$list = @{}; | |
$item = $null | |
foreach($line in $file) { | |
if ($line -match "\.(controller|factory|service)\('(\w+)" -and $Matches[2]) { | |
$item = $Matches[2] | |
$list[$item] += @($line -replace '^\s+', "angular.module('$moduleName')`n") | |
} else { |
namespace App\Http\Middleware; | |
use Illuminate\Support\Facades\Log; | |
class LogAfterRequest { | |
public function handle($request, \Closure $next) | |
{ | |
return $next($request); | |
} |
<?php namespace App\Providers; | |
use Elastica\Client; | |
use Illuminate\Support\ServiceProvider; | |
use Monolog\Formatter\LogstashFormatter; | |
use Monolog\Handler\ElasticSearchHandler; | |
class ElasticLoggingProvider extends ServiceProvider | |
{ |