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:
--[[ | |
ProFi v1.3, by Luke Perkin 2012. MIT Licence http://www.opensource.org/licenses/mit-license.php. | |
Example: | |
ProFi = require 'ProFi' | |
ProFi:start() | |
some_function() | |
another_function() | |
coroutine.resume( some_coroutine ) | |
ProFi:stop() |
{ | |
/* Keybindings for emacs emulation. Compiled by Jacob Rus. | |
* | |
* This is a pretty good set, especially considering that many emacs bindings | |
* such as C-o, C-a, C-e, C-k, C-y, C-v, C-f, C-b, C-p, C-n, C-t, and | |
* perhaps a few more, are already built into the system. | |
* | |
* BEWARE: | |
* This file uses the Option key as a meta key. This has the side-effect | |
* of overriding Mac OS keybindings for the option key, which generally |
using System; | |
using System.Collections.Generic; | |
using System.Threading; | |
using UnityEditor; | |
/// <summary> | |
/// Provides a simulated multithreading manager for invoking callbacks on the main unity thread. | |
/// </summary> | |
public static class ContinuationManager |
import java.nio.ByteBuffer; | |
import java.util.UUID; | |
public class UuidAdapter { | |
public static byte[] getBytesFromUUID(UUID uuid) { | |
ByteBuffer bb = ByteBuffer.wrap(new byte[16]); | |
bb.putLong(uuid.getMostSignificantBits()); | |
bb.putLong(uuid.getLeastSignificantBits()); | |
return bb.array(); |
#!/bin/bash | |
function run { | |
# how we want to extract the variables from the commit message. | |
format_name="--format=%cn" | |
format_when="--format=%cr" | |
format_summary="--format=%s" | |
format_body="--format=%b" | |
brew install gnupg, pinentry-mac
(this includes gpg-agent and pinentry)
Generate a key: $ gpg --gen-key
Take the defaults. Whatevs
Tell gpg-agent to use pinentry-mac:
$ vim ~/.gnupg/gpg-agent.conf
#!/bin/bash | |
# | |
# This file should be in .git/hooks/commit-msg | |
# It uses the current branch name to prefix the commit message. | |
name=$(git rev-parse --abbrev-ref HEAD | sed 's/\(issue-[0-9]*\).*/\1/') | |
if [ $name != 'HEAD' ]; then | |
cat $1 | sed "s/^$name: //" | egrep -v "^#" > $1.tmp | |
echo -n "$name"': ' > $1 | |
cat $1.tmp >> $1 |