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:
| # Tweaked from http://tomislavsantek.iz.hr/2011/03/moving-mysql-databases-to-ramdisk-in-ubuntu-linux | |
| # Log in as root | |
| # Mount ramdisk folder in RAM | |
| mkdir /tmp/ramdisk | |
| mount -t tmpfs -o size=128M tmpfs /tmp/ramdisk/ | |
| # Move MySQL data | |
| mv /var/lib/mysql /tmp/ramdisk/mysql | |
| ln -s /tmp/ramdisk/mysql/ /var/lib/mysql |
| #!/usr/bin/perl | |
| use 5.008; | |
| use strict; | |
| use Memoize; | |
| # usage: | |
| # git-large-files 500k | |
| # git-large-files 0.5m | |
| # git-large-files 5b |
| <?php | |
| /* | |
| * Iteration and Recursive Iteration Examples Code | |
| * | |
| * @link http://stackoverflow.com/questions/12077177/how-does-recursiveiteratoriterator-works-in-php | |
| * @author hakre <http://hakre.wordpress.com> | |
| */ | |
| ### To have these examples to work, a directory with subdirectories is needed, | |
| ### I named mine "tree": |
| [ | |
| { "keys": ["ctrl+shift+t"], "command": "open_terminal_project_folder" }, | |
| { "keys": ["ctrl+tab"], "command": "next_view" }, | |
| { "keys": ["ctrl+shift+tab"], "command": "prev_view" } | |
| ] |
| $ rpm -Uvh http://nginx.org/packages/centos/6/x86_64/RPMS/nginx-1.4.7-1.el6.ngx.x86_64.rpm | |
| $ chkconfig --add nginx | |
| $ chkconfig --levels 235 nginx on |
| <?php | |
| /** | |
| * Implements hook_drush_command(). | |
| */ | |
| function seed_derivatives_drush_command() { | |
| $items = array(); | |
| $items['seed_derivatives'] = array( | |
| 'description' => "Create image derivatives", |
| <?php | |
| $user = ''; | |
| $pass = ''; | |
| $database = ''; | |
| $limit = 1000000; | |
| $dsn = 'mysql:dbname=' . $database . ';unix_socket=/var/run/mysqld/mysqld.sock'; | |
| try { |
| /* | |
| This script, when used with Google Apps Scripts, will delete 400 emails and | |
| can be triggered to run every few minutes without user interaction enabling you | |
| to bulk delete email in Gmail without getting the #793 error from Gmail. | |
| Google returns a maximum of 500 email threads in a single API call. | |
| This script fetches 400 threads in case 500 threads is causing timeouts | |
| Configure the search query in the code below to match the type of emails | |
| you want to delete |