Skip to content

Instantly share code, notes, and snippets.

View abdala's full-sized avatar

Ab abdala

View GitHub Profile
@abdala
abdala / 01_opcache.ini
Last active July 4, 2019 21:31
Preload opcache in Dockerfile
opcache.validate_timestamps=0
opcache.save_comments=0
opcache.enable_cli=1
opcache.enable_file_override=1
opcache.file_cache=/app/opcache
@abdala
abdala / Dockerfile.alpine
Last active September 6, 2018 08:19
Laracon Multi-stage Dockerfiles
FROM alpine:3.8
WORKDIR /app
COPY . /app
RUN apk add --update php7-apache2 php7-mbstring php7-pdo_sqlite php7-tokenizer \
php7-xml php7-xmlwriter php7-session php7-json composer \
&& composer install --no-dev \
&& sed -i 's#^DocumentRoot ".*#DocumentRoot "/app/public"#g' /etc/apache2/httpd.conf \
### Keybase proof
I hereby claim:
* I am abdala on github.
* I am abdala (https://keybase.io/abdala) on keybase.
* I have a public key whose fingerprint is 9F92 7C55 61DE AA9C B013 1F59 F00A DEC0 DB4C 6227
To claim this, I am signing this object:
@abdala
abdala / user.php
Created April 29, 2012 18:10 — forked from rdohms/user.php
DMS\Filter Example
<?php
namespace App\Entity;
//Import Annotations
use DMS\Filter\Rules as Filter;
class User
{