Skip to content

Instantly share code, notes, and snippets.

View arthurkushman's full-sized avatar
👨‍💻
Geeks will inherit the world

Arthur Kushman arthurkushman

👨‍💻
Geeks will inherit the world
  • Milky Way
View GitHub Profile
@arthurkushman
arthurkushman / lightning.js
Last active December 22, 2015 21:39
Lightning class offers frequently (daily) used methods (functions) to free programmer`s hands, avoiding regular/repeated practices
/*
* 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
@bocharsky-bw
bocharsky-bw / Dockerfile
Last active January 14, 2022 10:25
The full-stack [Ubuntu, Nginx, php-fpm] Docker image example
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
@asika32764
asika32764 / ffmpeg-preview.sh
Created July 31, 2015 03:33
Create Video preview image
ffmpeg -i /path/to/video.mp4 -ss 00:00:5 -vframes 1 -y /path/to/preview.png