Skip to content

Instantly share code, notes, and snippets.

View alexandru-gaidei's full-sized avatar

Alexandru Gaidei alexandru-gaidei

View GitHub Profile
@alexandru-gaidei
alexandru-gaidei / logs.php
Last active April 9, 2020 12:35
Laravel public logs. Place this file in the public directory.
<?php
require __DIR__.'/../vendor/autoload.php';
$app = require_once __DIR__.'/../bootstrap/app.php';
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$kernel->handle(Illuminate\Http\Request::capture());
if (! config('app.debug')) {
abort(404);
}
@alexandru-gaidei
alexandru-gaidei / superdesk-install.sh
Last active February 7, 2020 09:19
Superdesk installation on fresh Ubuntu 16.04 (with latest core, analytics and publisher, https://github.com/superdesk/superdesk)
#!/bin/bash
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
set -exuo pipefail
export DEBIAN_FRONTEND=noninteractive
export DBUS_SESSION_BUS_ADDRESS=/dev/null
_activate() {
set +ux
. /opt/superdesk/activate.sh