Skip to content

Instantly share code, notes, and snippets.

View luritas's full-sized avatar
💭
I may be slow to respond.

Jaekuk luritas

💭
I may be slow to respond.
View GitHub Profile
@luritas
luritas / RaspberryPi_install.bash
Last active April 13, 2018 01:25 — forked from isc30/install.bash
Raspberry Pi Install PHP7 + Nginx + MySQL + PhpMyAdmin (last versions)
#!/bin/bash
# Thanks to https://gist.github.com/Lewiscowles1986/ce14296e3f5222082dbaa088ca1954f7
if [ "$(whoami)" != "root" ]; then
echo "Run script as ROOT please. (sudo !!)"
exit
fi
echo "deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi" > /etc/apt/sources.list.d/stretch.list
echo "APT::Default-Release \"jessie\";" > /etc/apt/apt.conf.d/99-default-release
@luritas
luritas / Dockerfile
Last active February 11, 2018 11:51 — forked from kovagoz/docker-compose.yml
Laravel Docker Compose Nginx PHP-FPM
FROM php:7.2-fpm-alpine
RUN docker-php-source extract && \
apk add --update --no-cache autoconf g++ make && \
pecl install redis && \
docker-php-ext-enable redis && \
docker-php-ext-install mysqli && \
docker-php-ext-install pdo && \
docker-php-ext-install pdo_mysql && \
docker-php-ext-install mbstring && \
@luritas
luritas / App\Exceptions\Handler.php
Created April 18, 2017 05:51 — forked from jacurtis/App\Exceptions\Handler.php
How to get filp/whoops to work in Laravel 5.2 or 5.3 - Add this code to your `App\Exceptions\Handler.php` file.
/**
* Create a Symfony response for the given exception.
*
* @param \Exception $e
* @return mixed
*/
protected function convertExceptionToResponse(Exception $e)
{
if (config('app.debug')) {
$whoops = new \Whoops\Run;