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:
| /** | |
| * @license domReady 2.0.1 Copyright jQuery Foundation and other contributors. | |
| * Released under MIT license, http://github.com/requirejs/domReady/LICENSE | |
| */ | |
| /* jshint node: true */ | |
| 'use strict'; | |
| var isTop, testDiv, scrollIntervalId, |
| let bufferGeometry = new THREE.BufferGeometry().fromGeometry(model.geometry); | |
| let displacement = new Float32Array(bufferGeometry.attributes.position.count); | |
| bufferGeometry.addAttribute('displacement', new THREE.BufferAttribute( displacement, 1)); |
| # most of these examples assume a simple course entity as follows | |
| { | |
| name: "Course Name", | |
| tags: ["tag1", "tag2"] | |
| } | |
| # create a mapping for "course" in the index "courses" specifying name and tags field using heredoc | |
| $ curl -XPUT -d@- 'localhost:9200/courses/_mapping/course?pretty' <<EOF | |
| { | |
| "properties": { |
| dseditgroup -o edit -a (user name) -t user admin |
| # find parent PID alias | |
| # usage: $parentpid (pid) | |
| alias parentpid="ps -o ppid= -p" |
| var mongoose = require('mongoose'); | |
| var Schema = mongoose.Schema; | |
| mongoose.connect('localhost', 'testing_emitUpdate'); | |
| var schema = new Schema({ | |
| name: String | |
| }); | |
| schema.pre('save', function (next) { |
| # memory usage, usage: mem (procss name) | |
| mem() { | |
| echo|awk '{print "PID" "\tCPU" "\tMEM" "\tCMD"}' | |
| top -l 1|ack "$1"|awk '{print $1 "\t"$3 "\t"$8 "\t"$2}' | |
| } |
| var mongoose = require('mongoose'), | |
| assert = require('assert') | |
| mongoose.connect('localhost/mydb'); | |
| var Schema = mongoose.Schema; | |
| var ContainerSchema = new Schema({ | |
| name: String, | |
| }) |
| /**************************************** | |
| * GSALib Wrapper for Google Search Appliance | |
| * GSA.Paragon.Utils | |
| * Written by Jon Upchurch | |
| * Copyright 2013 by Paragon Consulting, Inc. | |
| * Free to use, distribute, and modify | |
| * with this credit comment retained. | |
| ****************************************/ | |
| using GSALib.Constants; | |
| using GSALib.GSA; |