UPDATE: apparently kernel difference may have a serious impact, so I'll redo the test from scratch.
Test performed with AOF enabled, fsync policy 1 second, allowing the rewrites to be triggered.
Command lines used:
<?php | |
declare(ticks = 1); | |
class TimeoutException extends Exception {}; | |
function signal_handler($signal) { | |
throw new TimeoutException(); | |
} |
curl -H "Host: example.com" -I http://IP.ADD.RE.SS/path/to/file/or/folder/ |
/* | |
MongoDB: Find by regular expression and run regex replace on results | |
*/ | |
db.test.find({"url": { $regex: 'http:\/\/' }}).forEach(function(doc) { | |
doc.url = doc.url.replace(/http:\/\/www\.url\.com/g, 'http://another.url.com'); | |
db.test.save(doc); | |
}); |
// | |
// ViewController.m | |
// AVPlayerCaching | |
// | |
// Created by Anurag Mishra on 5/19/14. | |
// Sample code to demonstrate how to cache a remote audio file while streaming it with AVPlayer | |
// | |
#import "ViewController.h" | |
#import <AVFoundation/AVFoundation.h> |
#!/bin/bash | |
PERL_STABLE="5.16.1" | |
echo '%< --- installing perlbrew ---' | |
echo | |
curl -kL http://install.perlbrew.pl | bash | |
source ~/perl5/perlbrew/etc/bashrc | |
perlbrew install --notest perl-${PERL_STABLE} |