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:
| { | |
| // http://eslint.org/docs/rules/ | |
| "ecmaFeatures": { | |
| "binaryLiterals": false, // enable binary literals | |
| "blockBindings": false, // enable let and const (aka block bindings) | |
| "defaultParams": false, // enable default function parameters | |
| "forOf": false, // enable for-of loops | |
| "generators": false, // enable generators | |
| "objectLiteralComputedProperties": false, // enable computed object literal property names |
| Content = (DocType / Comment / BalancedTag / SelfClosingTag / Text)* | |
| DocType = "<!doctype " doctype:[^>]* ">" { | |
| return { | |
| type: 'DocType', | |
| content: doctype.join('') | |
| }; | |
| } | |
| Comment = "<!--" c:(!"-->" c:. {return c})* "-->" { |
| /* | |
| * This script will scrape text posts from a Tumblr blog and export them as `.md` | |
| * files with YAML frontmatter ready to be used in a Middleman blog. | |
| * | |
| * Aliases are added for the _middleman-alias_ gem so Tumblr style URLs like | |
| * `/post/{id}/{slug}` will redirect to the Middleman-style URL. | |
| * | |
| * Although I built this for migrating to Middleman it should be pretty easy to | |
| * adapt this for any similar static site generator. | |
| */ |
Standard practices say no non-root process gets to talk to the Internet on a port less than 1024. How, then, could I get Node talking on port 80 on EC2? (I wanted it to go as fast as possible and use the smallest possible share of my teeny tiny little micro-instance's resources, so proxying through nginx or Apache seemed suboptimal.)
Alter the port the script talks to from 8000 to 80:
}).listen(80);