This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -i /path/to/video.mp4 -ss 00:00:5 -vframes 1 -y /path/to/preview.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
MAINTAINER Victor Bocharsky <bocharsky.bw@gmail.com> | |
RUN apt-get update | |
RUN apt-get install -y nginx php5 php5-fpm php5-intl php5-mysql php5-xdebug | |
RUN echo "\ndaemon off;" >> /etc/nginx/nginx.conf | |
RUN sed -i -e "s/;\?daemonize\s*=\s*yes/daemonize = no/g" /etc/php5/fpm/php-fpm.conf | |
# Nginx config | |
RUN rm /etc/nginx/sites-enabled/default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Lightning class offers frequently (daily) used methods (functions) | |
* to free programmer`s hands, avoiding regular/repeated practices | |
* | |
* Some functions have been inherited from PHP stdlib (like numberFormat, htmlspecialchars) | |
* to make lives easier | |
* | |
* Copyright (C) <2015> <Arthur Kushman> | |
* | |
* This program is free software: you can redistribute it and/or modify |