Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
| # Get Root | |
| sudo su | |
| # Download NMON archive | |
| cd /tmp | |
| wget http://sourceforge.net/projects/nmon/files/nmon16e_mpginc.tar.gz | |
| # Untar archive | |
| tar -xzvf nmon16e_mpginc.tar.gz | |
| static NSString *cacheDatabaseName = @"ApplicationCache.db"; | |
| static NSString *cacheGroupTable = @"CacheGroups"; | |
| static NSString *cacheGroupTableManifestURLColums = @"manifestURL"; | |
| static NSString *cacheTable = @"Caches"; | |
| static NSString *cacheTableCacheGroupId = @"cacheGroup"; | |
| /** | |
| Clears the cached resources associated to a cache group. | |
| @param manifestURLs An array of `NSString` containing the URLs of the cache manifests for which you want to clear the resources. |
| <?php | |
| /** | |
| * Create a web friendly URL slug from a string. | |
| * | |
| * Although supported, transliteration is discouraged because | |
| * 1) most web browsers support UTF-8 characters in URLs | |
| * 2) transliteration causes a loss of information | |
| * | |
| * @author Sean Murphy <sean@iamseanmurphy.com> | |
| * @copyright Copyright 2012 Sean Murphy. All rights reserved. |
| #!/bin/bash | |
| if [ "$1" = "" -o "$2" = "" ]; then | |
| echo "mkhardsub file.mkv out.mkv" | |
| exit 1 | |
| fi | |
| # -ass-force-style FontName=supermarket,Default | |
| mplayer -nosound -benchmark "$1" -ass -fontconfig -ass-font-scale 1.2 -vf scale=854:480 -sid 0 -vo yuv4mpeg:file=>(x264 --crf 20 --preset ultrafast --level 30 --vbv-bufsize 10000 --vbv-maxrate 16000 --threads auto --output /tmp/mkhardsub.mkv --demuxer y4m -) | |
| ffmpeg -i /tmp/mkhardsub.mkv -i "$1" -vcodec copy -map 0:0 -map 1:a:0 $2 | |
| #rm /tmp/mkhardsub.mkv |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.