Skip to content

Instantly share code, notes, and snippets.

View zph's full-sized avatar

Zander Hill zph

View GitHub Profile
bind M run "tmux capture-pane -S -10000; tmux show-buffer | reattach-to-user-namespace pbcopy"
cat > Dockerfile <<\EOF
FROM ubuntu:12.04
RUN apt-get update
RUN apt-get install -y ruby1.9.3 build-essential \
libc6-dev libffi-dev libgdbm-dev libncurses5-dev \
libreadline-dev libssl-dev libyaml-dev zlib1g-dev
RUN gem install fpm --bindir=/usr/bin --no-rdoc --no-ri
RUN apt-get install -y curl
RUN curl ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p484.tar.gz|tar oxzC /tmp
WORKDIR /tmp/ruby-1.9.3-p484

Screencasting Framework

The following document is a written account of the Code School screencasting framework. It should be used as a reference of the accompanying screencast on the topic.

Why you should care about screencasting?

You're probably aren't going to take the time to read this document if you're not interested, but there are a lot of nice side effects caused by learning how to create quality screencasts.

  1. Communicating more effectively - At Envy Labs we produce screencasts for our clients all the time. Whether it's demoing a new feature or for a presentation for an invester, they're often much more effective and pleasent than a phone call or screen sharing.

Keybase proof

I hereby claim:

  • I am zph on github.
  • I am zph (https://keybase.io/zph) on keybase.
  • I have a public key whose fingerprint is DA2E 01D7 4E17 8806 6910 794F 6CBA 1914 2E2E BACB

To claim this, I am signing this object:

# 20140327 - Backing up whole User directory from Macbook Air 2012 model.
# ``` shell
rsync -axv --numeric-ids --delete --progress \
--exclude 'Documents/Virtual Machines.localized' \
--exclude '.rvm/' \
--exclude '.vagrant.d/boxes/' \
--exclude '.vmdk' \
--exclude '.xbmc' \
--exclude 'Dropbox/' \
--exclude 'Application Support/Dash/' \
# 20140327 - Backing up whole User directory from Macbook Air 2012 model.
# ``` shell
rsync -axv --numeric-ids --delete --progress \
--exclude 'Documents/Virtual Machines.localized' \
--exclude '.rvm/' \
--exclude '.vagrant.d/boxes/' \
--exclude '.vmdk' \
--exclude '.xbmc' \
--exclude 'Dropbox/' \
--exclude 'Application Support/Dash/' \
# 20140327 - Backing up whole User directory from Macbook Air 2012 model.
# ``` shell
rsync -axv --numeric-ids --delete --progress \
--exclude 'Documents/Virtual Machines.localized' \
--exclude '.rvm/' \
--exclude '.vagrant.d/boxes/' \
--exclude '.vmdk' \
--exclude '.xbmc' \
--exclude 'Dropbox/' \
--exclude 'Application Support/Dash/' \
set noswapfile
" This folder is automatically created in zph's .zshrc
set backupdir=~/tmp/vim
set directory=~/tmp/vim " Don't clutter my dirs up with swp and tmp files
" EXPERIMENTAL
" Set persistent undo for vim using tempdir
set undodir=~/tmp/vim
set undofile
" Get rid of the delay when hitting esc!
set noesckeys
#
#require "iterator/version"
require 'ostruct' # => true
module Iterator
Context = Class.new(OpenStruct) # => Iterator::Context
def iterate(input, *filters)
#$iterator_context = Iterator::Context.build
@context = Context.new(input: input) # => #<Iterator::Context input="hi, what's up?">, #<Iterator::Context input="hi, what's up?">
res = Array(filters).flatten.reduce(input) do |acc, filter| # => [#<Proc:0x007fdf63935040@/Users/zph/tmp/seeing_is_believing_temp_dir20140409-37742-2bb4il/program.rb:34 (lambda)>, #<Proc:0x007fdf63934f50@/Users/zph/tmp/seeing_is_believing_temp_dir20140409-37742-2bb4il/program.rb:39 (lambda)>, #<Proc:0x007fdf63934e60@/Users/zph/tmp/seeing_is_believing_temp_dir20140409-37742-2bb4il/program.rb:43 (lambda)>, Remover], [#<Proc:0x007fdf63935040@/Users/zph/tmp/seeing_is_believing_temp_dir20140409-37742-2bb4il/program.rb:34 (lambda)>, #<Proc:0x007fdf63934f50@/Users/zph/tmp/seeing_is_believing_temp_dir20140409-37742-2
#!/usr/bin/python
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org)
# The author disclaims copyright to this source code.
import sys
import struct
import socket
import time
import select