Skip to content

Instantly share code, notes, and snippets.

@yfix
yfix / index.html
Created October 29, 2014 11:15
A Pen by Munky.
<div class="preloader">
<div class="container-fluid">
<div class="spinner">
<span class="ball-1"></span>
<span class="ball-2"></span>
<span class="ball-3"></span>
<span class="ball-4"></span>
</div>
</div>
</div>
@yfix
yfix / 3D-FLAT-TEST.markdown
Created October 29, 2014 11:20
A Pen by BOHLER.
@yfix
yfix / background-animation.markdown
Created October 29, 2014 11:20
A Pen by Alex Bergin.
@yfix
yfix / gist:034618a8701a2a7edf08
Created November 4, 2014 09:44
safe unserialize
https://github.com/piwik/piwik/blob/master/libs/upgradephp/upgrade.php#L398-L577
@yfix
yfix / gist:6cc1ac8e9721425eb5fe
Created February 4, 2015 11:50
shippable useful bash script example
#!/bin/bash -e
# Export environment variables
export SERVICE_SKIP=false;
export SHIPPABLE_MEMCACHED_PORT=11211;
export SHIPPABLE_MEMCACHED_BINARY="/usr/bin/memcached";
export SHIPPABLE_MEMCACHED_CMD="$SHIPPABLE_MEMCACHED_BINARY -d -u nobody -l 127.0.0.1 -p 11211";
export SHIPPABLE_REDIS_PORT=6379;
@yfix
yfix / gist:ec741bbd98a0a211fe8a
Created February 27, 2015 17:24
convert_video_4_ios.sh
#!/bin/sh
FILES=$@
for F in $FILES; do
BASENAME="${F%.*}"
ffmpeg -i $F -acodec libfaac -ab 128k -vcodec mpeg4 -b:v 1200k -mbd 2 -ac 2 -cmp 2 -subcmp 2 -metadata title="$BASENAME" $BASENAME.mp4
done;
#!/bin/sh
# parsing args
SIZE_ARG=""
SPEED_ARG=""
INPUT_FILE=""
VERSION_SHORT="1.0"
VERSION_LONG="$0 version ${VERSION_SHORT}
#!/usr/bin/perl -T
use strict;
use warnings;
#
## Calomel.org ,:, Download Youtube videos and music using wget
## Script Name : youtube_wget_video.pl
## Version : 0.34
## Valid from : May 2013
@yfix
yfix / README.md
Last active August 29, 2015 14:20 — forked from magnetikonline/README.md

Nginx FastCGI cache

Example /etc/nginx/nginx.conf using FastCGI (e.g. to PHP-FPM) with FastCGI cache enabled. This will capture returned data and persist it to a disk based cache store for a configurable amount of time, great for robust full page caching.

Will need to create a directory to hold cache files, for the example given here that would be:

$ sudo mkdir -p /var/cache/nginxfastcgi
$ chown www-data: /var/cache/nginxfastcgi