Skip to content

Instantly share code, notes, and snippets.

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

Emrah mrah

💭
I may be slow to respond.
  • Almere, Netherlands
  • 06:36 (UTC +01:00)
View GitHub Profile
@mrah
mrah / styles.css
Created December 9, 2015 05:00 — forked from pburtchaell/styles.css
VH and VW units can cause issues on iOS devices. To overcome this, create media queries that target the width, height, and orientation of iOS devices.
/**
* VH and VW units can cause issues on iOS devices: http://caniuse.com/#feat=viewport-units
*
* To overcome this, create media queries that target the width, height, and orientation of iOS devices.
* It isn't optimal, but there is really no other way to solve the problem. In this example, I am fixing
* the height of element `.foo` —which is a full width and height cover image.
*
* iOS Resolution Quick Reference: http://www.iosres.com/
*/
@mrah
mrah / Queue
Last active August 29, 2015 14:25
Nginx Configurations
[program:laravel-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /home/vagrant/Sites/Development/Parser/artisan queue:work database --sleep=3 --tries=3 --daemon
autostart=true
autorestart=true
user=vagrant
numprocs=8
redirect_stderr=true
stdout_logfile=/home/vagrant/Sites/Development/Parser/worker.log
@mrah
mrah / gist:217cd8135eb6bac64aa3
Created March 14, 2015 12:58
Ubuntu 14.04 ffmpeg installation
# How to Build FFmpeg on Ubuntu
There is an [official
guide](https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu) out there, but it
ignores the fact that it's possible to use pre-build packages for a lot of the
dependent libraries (rather than compiling them). This set of instructions
aims to fix that.
## Procedure
# Login as root
sudo -s
# Install Java
apt-get install openjdk-7-jre-headless -y
# Download & install the Public Signing Key
wget -qO - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | sudo apt-key add -
# Add the following to /etc/apt/sources.list
deb http://packages.elasticsearch.org/elasticsearch/1.3/debian stable main