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:
| $scope.login = function () { | |
| $http({ // getting TGT (Ticket Granting Ticket) | |
| method: 'POST', | |
| url: 'http://localhost/cas/v1/tickets', | |
| headers: {'Content-Type': 'application/x-www-form-urlencoded'}, | |
| data: $.param({username: $scope.loginform.username, password: $scope.loginform.password}) | |
| }).success(function(data, status, headers) { | |
| // CAS returns location where we can request service ticket | |
| var location = headers('Location'); | |
| $http({ //requesting service ticket, rest/app/heartbeat is part of our app |
| module.exports = function (grunt) { | |
| // show elapsed time at the end | |
| require('time-grunt')(grunt); | |
| // load all grunt tasks | |
| require('load-grunt-tasks')(grunt); | |
| //MODIFIED: add require for connect-modewrite | |
| var modRewrite = require('connect-modrewrite'); | |
| grunt.initConfig({ |
| angular.module('utilsModule').filter("megaNumber", () => { | |
| return (number, fractionSize) => { | |
| if(number === null) return null; | |
| if(number === 0) return "0"; | |
| if(!fractionSize || fractionSize < 0) | |
| fractionSize = 1; | |
| var abs = Math.abs(number); |
| # tcpdump -A -nn -s 0 'tcp dst port 9200 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)' -i lo | |
| tcpdump: verbose output suppressed, use -v or -vv for full protocol decode | |
| listening on lo, link-type EN10MB (Ethernet), capture size 65535 bytes | |
| 14:32:33.525122 IP 127.0.0.1.49777 > 127.0.0.1.9200: Flags [P.], seq 313752908:313753888, ack 2465010394, win 257, options [nop,nop,TS val 2684167067 ecr 2684167066], length 980 | |
| E...^.@.@............q#...}L............... | |
| ..#...#.GET /index/_search HTTP/1.1 | |
| Host: 127.0.0.1:9200 | |
| Accept: */* | |
| Content-Length: 845 | |
| Content-Type: application/x-www-form-urlencoded |
| /Users/fjcero/project/node_modules/sequelize/node_modules/bluebird/js/main/captured_trace.js:478 Unhandled rejection Error: TypeError: Illegal invocation | |
| at Object.ensureErrorObject (/Users/fjcero/project/node_modules/sequelize/node_modules/bluebird/js/main/util.js:228:20) | |
| at Promise._rejectCallback (/Users/fjcero/project/node_modules/sequelize/node_modules/bluebird/js/main/promise.js:416:22) | |
| at Promise._settlePromiseFromHandler (/Users/fjcero/project/node_modules/sequelize/node_modules/bluebird/js/main/promise.js:460:17) | |
| at Promise._settlePromiseAt (/Users/fjcero/project/node_modules/sequelize/node_modules/bluebird/js/main/promise.js:530:18) | |
| at Promise._settlePromises (/Users/fjcero/project/node_modules/sequelize/node_modules/bluebird/js/main/promise.js:646:14) | |
| at Async._drainQueue (/Users/fjcero/project/node_modules/sequelize/node_modules/bluebird/js/main/async.js:177:16) | |
| at Async._drainQueues (/Users/fjcero/project/node_modules/sequelize/node_modules/bluebird/js/main/async.js:187:10) | |
| at Imm |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |