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:
| # coding:utf-8 | |
| import gc | |
| import inspect | |
| import weakref | |
| from django.core.management.base import BaseCommand, CommandError | |
| from django.dispatch import Signal | |
| REF_TYPES = (weakref.ReferenceType,) |
| #!/bin/bash | |
| (/usr/local/bin/db2log | \ | |
| mk-query-digest --fingerprints \ | |
| --filter '$event->{user} !~ m/^(bi|memonic)$/') 2>&1 | \ | |
| mail -s "MySQL slow logs" root | |
| # Rotate slow logs. Will move them into the backup table slow_log_backup. If | |
| # that table exists it's overwritten with the primary slow log. | |
| # So with this strategy we can still access yesterday's slow log by querying | |
| # slow_log_backup. |
| # 5G BLACKLIST/FIREWALL (2013) | |
| # @ http://perishablepress.com/5g-blacklist-2013/ | |
| # 5G:[QUERY STRINGS] | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteCond %{QUERY_STRING} (\"|%22).*(<|>|%3) [NC,OR] | |
| RewriteCond %{QUERY_STRING} (javascript:).*(\;) [NC,OR] | |
| RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3) [NC,OR] |
| // use like this: | |
| // process.emit( 'app:log', module, arg1, arg2, ..., argN ); | |
| var Module = require('module'); | |
| function logConsole(method, module) { | |
| var args = [(new Date()).toJSON(), method]; | |
| var index = 1; | |
| if (module instanceof Module) { |
| # Hello, and welcome to makefile basics. | |
| # | |
| # You will learn why `make` is so great, and why, despite its "weird" syntax, | |
| # it is actually a highly expressive, efficient, and powerful way to build | |
| # programs. | |
| # | |
| # Once you're done here, go to | |
| # http://www.gnu.org/software/make/manual/make.html | |
| # to learn SOOOO much more. |
| <?php | |
| echo 'default locale: ' . \Locale::getDefault(); | |
| echo PHP_EOL; | |
| echo 'default timezone: ' . \date_default_timezone_get(); | |
| echo PHP_EOL; | |
| // see http://tools.ietf.org/html/rfc3339#section-5.8 for example datetimes | |
| // bug report on missing fractions support: https://bugs.php.net/bug.php?id=51950 | |
| // feature request for fractions support in constructor: https://bugs.php.net/bug.php?id=49779 |
via (https://www.linux.com/learn/tutorials/442438-vim-tips-folding-fun)
zf#j creates a fold from the cursor down # lines.zf/string creates a fold from the cursor to string .zj moves the cursor to the next fold.zk moves the cursor to the previous fold.zo opens a fold at the cursor.zO opens all folds at the cursor.zm increases the foldlevel by one.zM closes all open folds.| #EXTM3U | |
| #EXTINF:-1,Digitally Imported - Ambient | |
| http://pub1.diforfree.org:8000/di_ambient_hi | |
| #EXTINF:-1,Digitally Imported - Big Room House | |
| http://pub1.diforfree.org:8000/di_bigroomhouse_hi | |
| #EXTINF:-1,Digitally Imported - Breaks | |
| http://pub1.diforfree.org:8000/di_breaks_hi |