I hereby claim:
- I am mahho on github.
- I am mahho (https://keybase.io/mahho) on keybase.
- I have a public key ASCw7ZWWmcnyE2HYIFhFALNA1GVnl_uHu-lSF331CB9MZgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
server { | |
server_name ~^(?<vhost>.*)$; | |
root /var/www/$vhost/public; | |
location / { | |
try_files $uri /index.php$is_args$args; | |
} | |
# DEV | |
# This rule should only be placed on your development environment |
FROM php:7.2-fpm | |
# Install recommended extensions for Symfony | |
RUN apt-get update -y && apt-get install -y libpng-dev zlib1g-dev libicu-dev libicu57 icu-devtools g++ | |
RUN docker-php-ext-configure intl | |
RUN docker-php-ext-configure pdo_mysql | |
RUN docker-php-ext-configure gd | |
RUN docker-php-ext-install intl pdo_mysql gd sockets bcmath mongo | |
#RUN docker-php-ext-enable pdo_mysql gd intl |
// transform cropper dataURI output to a Blob which Dropzone accepts | |
function dataURItoBlob(dataURI) { | |
var byteString = atob(dataURI.split(',')[1]); | |
var ab = new ArrayBuffer(byteString.length); | |
var ia = new Uint8Array(ab); | |
for (var i = 0; i < byteString.length; i++) { | |
ia[i] = byteString.charCodeAt(i); | |
} | |
return new Blob([ab], { type: 'image/jpeg' }); | |
} |