Skip to content

Instantly share code, notes, and snippets.

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

1 name: "uspto"
2 windows:
3 - name: "services"
4 root: "~/projects/uspto/frontend/"
5 layout: tiled
6 panes:
7 - echo "1"
8 - echo "2"
9 - echo "3"
19 - name: "chats"
@megalithic
megalithic / bitlbee_debug_output.log
Created March 5, 2015 04:57
bitlbee error output
ASAN:SIGSEGV
=================================================================
==12715== ERROR: AddressSanitizer: SEGV on unknown address 0x000000000048 (pc 0x7f6f6b70cf06 sp 0x7ffffb36a460 bp 0x7ffffb36a480 T0)
AddressSanitizer can not provide additional info.
#0 0x7f6f6b70cf05 (/usr/local/sbin/bitlbee+0x70f05)
#1 0x7f6f6b70d2bd (/usr/local/sbin/bitlbee+0x712bd)
#2 0x7f6f6b778de2 (/usr/local/sbin/bitlbee+0xdcde2)
#3 0x7f6f6b76601e (/usr/local/sbin/bitlbee+0xca01e)
#4 0x7f6f6b75c491 (/usr/local/sbin/bitlbee+0xc0491)
#5 0x7f6f6b732cdf (/usr/local/sbin/bitlbee+0x96cdf)
@megalithic
megalithic / my_model.js
Last active August 29, 2015 14:19
ampersand view, having a time with model data fetching and binding
var AmpersandModel = require('ampersand-model');
var config = require('clientconfig');
var Status = require('./status');
var StatusModel = new Status();
var ItineraryModel = AmpersandModel.extend({
props: {
uuid: ['string', true, ''],
userId: ['string', true, ''],
expiredAt: ['string', true, ''],
@megalithic
megalithic / vim.rb
Created October 26, 2012 03:07 — forked from voldmar/vim.rb
Fresh homebrew formula for Vim
# To use this recipe you have to:
# $ brew install python --framework
# $ mkdir ~/Frameworks
# $ ln -s "/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework" ~/Frameworks
# $ brew install ./vim.rb
require 'formula'
require 'open-uri'
class Vim < Formula
@megalithic
megalithic / vim.rb
Created October 26, 2012 03:17 — forked from mybeky/vim.rb
Vim formula for Homebrew with python, ruby and clipboard enabled
require 'formula'
class Vim < Formula
homepage 'http://www.vim.org/'
url 'https://vim.googlecode.com/hg/', :revision => '2d107086903a'
version '7.3.584'
def install
system "./configure",
"--with-features=huge",
@megalithic
megalithic / radiant
Last active October 25, 2015 21:17
Radiant Player "now playing" applescript; for use with tmux or other CLI applications
#!/usr/bin/env sh
NOW_PLAYING=$(osascript <<EOF
if app_is_running("Radiant Player") then
tell application "Radiant Player"
set artist to current song artist
set track to current song name
set state to player state
if state is 1 then
@megalithic
megalithic / weechat.rb
Last active December 11, 2015 12:29
Updated weechat formula for homebrew
require 'formula'
class Weechat < Formula
homepage 'http://www.weechat.org'
url 'http://www.weechat.org/files/src/weechat-0.4.0.tar.bz2'
sha1 'e4b891d9d3d68196f97d226f487c4a2382d59d99'
depends_on 'cmake' => :build
depends_on 'gettext'
depends_on 'gnutls'
@megalithic
megalithic / gist:4635510
Created January 25, 2013 15:58
output from `/key listdiff`
09:57 AM weechat | 4 key bindings added or redefined for context "default":
│09:57 AM weechat | ctrl-J => /buffer +1 (default command: /input return)
│09:57 AM weechat | ctrl-K => /buffer -1 (default command: /input delete_end_of_line)
│09:57 AM weechat | ctrl-h => /buffer -1
│09:57 AM weechat | ctrl-l => /buffer +1
│09:57 AM weechat |
│09:57 AM weechat | 4 key bindings deleted for context "default":
│09:57 AM weechat | ctrl-H => /input delete_previous_char
│09:57 AM weechat | ctrl-L => /window refresh
│09:57 AM weechat | ctrl-N => /buffer +1

Using bitlbee with HipChat

Initial setup

  • account add jabber USERNAME@chat.hipchat.com 'PASSWORD'
  • account hipchat set nick_source full_name
  • account hipchat set resource bot
  • account hipchat on