View VAAPI-hwaccel-encode-Linux-Ffmpeg&Libav-setup.md

Using VAAPI's hardware accelerated video encoding on Linux with Intel's hardware on FFmpeg and libav

Hello, brethren :-)

As it turns out, the current version of FFmpeg (version 3.1 released earlier today) and libav (master branch) supports full H.264 and HEVC encode in VAAPI on supported hardware that works reliably well to be termed "production-ready".

View nginx.conf
user web;
# One worker process per CPU core.
worker_processes 8;
# Also set
# /etc/security/limits.conf
# web soft nofile 65535
# web hard nofile 65535
# /etc/default/nginx
View gist:76bee1ed238cb79cc444
#!/bin/bash
if [[ ! -f PKGBUILD ]]; then
echo "PKGBUILD not found"
exit 1
fi
# gitignore by default ignores everything but
# - PKGBUILD
# - .SRCINFO
View nfs_automount.sh
#!/bin/sh
# Mount an NFS share on Android
# Requirements:
# - Busybox
# - A kernel supporting nfs (either built-in or as a module)
# On my Nexus 7 2012 I use the following kernel:
# http://forum.xda-developers.com/showthread.php?t=2107224
# Remember: if you have problems of system space, simply delete some of the default stuff.
View README.md

Font Face

A mixin for writing @font-face rules in SASS.

Usage

Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.

@include font-face(Samplino, fonts/Samplino);
View php-cs-fixer
parameters
--level=psr2 --verbose fix $FileDir$/$FileName$
working directory
$ProjectFileDir$
View another_way
<?php
$ch = curl_init($url);
$fp = @fopen("../Files/System/TEST/temp.xml", "w");
curl_setopt($ch, CURLOPT_FILE, $fp);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_exec($ch);
curl_close($ch);
fclose($fp);
$file = "../Files/System/TEST/temp.xml";
View dashboard.html
{# ******************** EXTENDS ******************** #}
{% extends "master.template.html" %}
{# ******************** TITLE ******************** #}
{% block title %}Dashboard{% endblock %}
{# ******************** BODY ******************** #}
{% block body %}
View generate-gifs.bash
#!/bin/bash
# Generate gifs from jpg sequence
convert +repage -fuzz 0.0%% -delay 4 -loop 0 *.jpg -layers OptimizePlus -layers OptimizeTransparency "gif-00.gif"
convert +repage -fuzz 0.5%% -delay 4 -loop 0 *.jpg -layers OptimizePlus -layers OptimizeTransparency "gif-05.gif"
convert +repage -fuzz 1.0%% -delay 4 -loop 0 *.jpg -layers OptimizePlus -layers OptimizeTransparency "gif-10.gif"
convert +repage -fuzz 1.5%% -delay 4 -loop 0 *.jpg -layers OptimizePlus -layers OptimizeTransparency "gif-15.gif"
convert +repage -fuzz 2.0%% -delay 4 -loop 0 *.jpg -layers OptimizePlus -layers OptimizeTransparency "gif-20.gif"
convert +repage -fuzz 2.5%% -delay 4 -loop 0 *.jpg -layers OptimizePlus -layers OptimizeTransparency "gif-25.gif"
convert +repage -fuzz 3.0%% -delay 4 -loop 0 *.jpg -layers OptimizePlus -layers OptimizeTransparency "gif-30.gif"
View nginx.conf
#
# CORS header support
#
# One way to use this is by placing it into a file called "cors_support"
# under your Nginx configuration directory and placing the following
# statement inside your **location** block(s):
#
# include cors_support;
#
# As of Nginx 1.7.5, add_header supports an "always" parameter which