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:
syntax = "proto3"; | |
package google.cloud.bigquery.logging.v1; | |
option java_package = "com.google.cloud.bigquery.logging.v1"; | |
option java_multiple_files = true; | |
import "google/protobuf/timestamp.proto"; | |
import "google/protobuf/duration.proto"; | |
import "google/rpc/status.proto"; |
URL="http://stackoverflow.com/" | |
# store the whole response with the status at the and | |
HTTP_RESPONSE=$(curl --silent --write-out "HTTPSTATUS:%{http_code}" -X POST $URL) | |
# extract the body | |
HTTP_BODY=$(echo $HTTP_RESPONSE | sed -e 's/HTTPSTATUS\:.*//g') | |
# extract the status | |
HTTP_STATUS=$(echo $HTTP_RESPONSE | tr -d '\n' | sed -e 's/.*HTTPSTATUS://') |
/** | |
* This code is licensed under the terms of the MIT license | |
* | |
* Deep diff between two object, using lodash | |
* @param {Object} object Object compared | |
* @param {Object} base Object to compare with | |
* @return {Object} Return a new object who represent the diff | |
*/ | |
function difference(object, base) { | |
function changes(object, base) { |
docker stats $(docker inspect -f '{{.Name}}' $(docker ps -q) | cut -c 2-) |
package syslog; | |
import java.net.DatagramSocket; | |
import java.net.DatagramPacket; | |
import org.apache.commons.logging.Log; | |
import org.apache.commons.logging.LogFactory; | |
/** |
angular.module('app', []).directive('ngDebounce', function($timeout) { | |
return { | |
restrict: 'A', | |
require: 'ngModel', | |
priority: 99, | |
link: function(scope, elm, attr, ngModelCtrl) { | |
if (attr.type === 'radio' || attr.type === 'checkbox') return; | |
elm.unbind('input'); | |
/** | |
* Bug with -webkit-transform: translateZ(0); (translateX and translateY too) and position: fixed in WebKit | |
*/ | |
html { | |
height: 100%; | |
} | |
body { | |
height: 100%; |
$ keytool -changealias -keystore MY_KEYSTORE_2.jks -alias XXX-XXX-XXX-XXX-XXX -destalias MY_ALIAS |
brew install md5sha1sum |