This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
| // This is how you would use it. Pass in your collection | |
| // along with an individual callback as well as a batch callback | |
| Mage::getSingleton('stcore/resource_iterator_batched')->walk( | |
| $collection, | |
| array($this, 'batchIndividual'), | |
| array($this, 'batchAfter'), | |
| self::BATCH_SIZE | |
| ); | |
| public function batchIndividual($model) |
| sub vcl_recv { | |
| if (table.lookup(redirects, req.url)) { | |
| error 777 "Moved"; | |
| } | |
| #FASTLY recv | |
| if (req.request != "HEAD" && req.request != "GET" && req.request != "FASTLYPURGE") { | |
| return(pass); |
| <?php | |
| /** | |
| * Set global/skip_process_modules_updates to '1' in app/etc/local.xml and | |
| * then use this script to apply updates and refresh the config cache without | |
| * causing a stampede on the config cache. | |
| * | |
| * @author Colin Mollenhour | |
| */ | |
| umask(0); | |
| ini_set('memory_limit','512M'); |