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:
| * -A in SSH enables agent forwarding. | |
| * -p 2122 is not needed if you use the default port of 22. | |
| * Replace SSH_USER and example.com with your own values. | |
| * Example run: $ envoy run deploy_demo | |
| * --no-scripts because Laravel composer.json's post-install-cmd includes optimize, which is already done by php artisan dump-autoload | |
| @servers(['test' => '-A -p 2122 -l user test.example.com', 'prod' => '-A -p 2122 -l user example.com']) | |
| @task('install_test', ['on' => ['test']]) | |
| cd project |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| sf2-ddd | |
| ├── app | |
| ├── bin | |
| ├── build | |
| ├── lib | |
| ├── src | |
| │ └── __VendorPrefix | |
| │ ├── Application | |
| │ │ └── __DomainNameBundle | |
| │ │ ├── Command |
| var express = require('express'), | |
| passport = require('passport'), | |
| LocalStrategy = require('passport-local').Strategy, | |
| connect = require('connect'), | |
| http = require('http'), | |
| path = require('path'), | |
| util = require('util'), | |
| fs = require('fs'), | |
| redis = require('redis'), | |
| cookie = require('cookie'), |
| // Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc | |
| // jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/ | |
| // author: Pawel Kozlowski | |
| var myApp = angular.module('myApp', []); | |
| //service style, probably the simplest one | |
| myApp.service('helloWorldFromService', function() { | |
| this.sayHello = function() { | |
| return "Hello, World!" |
I am working on a custom error constructor for my seed project. I had a few objectives in mind when I started.
| /* | |
| * object.watch polyfill | |
| * | |
| * 2012-04-03 | |
| * | |
| * By Eli Grey, http://eligrey.com | |
| * Public Domain. | |
| * NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
| */ |