Skip to content

Instantly share code, notes, and snippets.

View brandondrew's full-sized avatar

Brandon Zylstra brandondrew

  • UC Berkeley
  • the tubes
View GitHub Profile
@brandondrew
brandondrew / README
Last active August 1, 2016 18:35 — forked from rwest/README
Convert OS X Keychain exported entries into logins for 1Password import
These two files should help you to export passwords from a Mac OS X keychain for import into 1password.
Assumptions:
1) You have some experience with scripting/are a power-user. These scripts worked for me
but they haven't been extensively tested and if they don't work, you're on your own!
Please read this whole document before starting this process. If any of it seems
incomprehensible/frightening/over your head please do not use these scripts. You will
probably do something Very Bad and I wouldn't want that.
2) You have ruby 1.9.2 installed on your machine. This comes as standard with Lion, previous
versions of OS X may have earlier versions of ruby, which *may* work, but then again, they
@brandondrew
brandondrew / textmate_environment_variables.rb
Created June 20, 2015 03:52
TextMate environment variable reference
#!/usr/bin/env ruby
###############################################################
#
# Paste this into a TextMate document,
# press ⇧^⌥R and choose 'Ruby' from the menu that appears,
# and then press ⌘R to run this in the context of TextMate
# to see all TextMate environment variables and their values
#
###############################################################
#!/usr/bin/env ruby
# This is a very rough proof-of-concept for an interactive automated checklist
# of things that you need to check to get iHat running properly.
#
# A new item can be easily added as a manual step for the developer to check.
# But each step can also have an automated check added to it, so that the
# developer doesn't need to spend time checking, or even know how to check
# a particular item in the list.
#
@brandondrew
brandondrew / capybara cheat sheet
Last active April 26, 2018 19:12 — forked from zhengjia/capybara cheat sheet
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@brandondrew
brandondrew / tmux_local_install.sh
Created October 19, 2012 00:18 — forked from ryin/tmux_local_install.sh
bash script for installing tmux without root access
#!/bin/bash
TMUX_VERSION="1.7"
LIBEVENT_VERSION="2.0.20"
NCURSES_VERSION="5.9"
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
@brandondrew
brandondrew / SketchSystems.spec
Created September 16, 2018 23:37 — forked from lynaghk/SketchSystems.spec
Search Bar*
Search Bar*
Inactive*
focused -> Active
Active
canceled -> Inactive
typed -> Text Entry
Empty*
require 'readline'
require 'parser/current'
# TODO: detect version of Ruby being used, and require the appropriate parser
# require 'parser/rubyXY'
# opt into newer AST format since we're not maintaining backward compatibility with old formats!
Parser::Builders::Default.emit_lambda = true
Parser::Builders::Default.emit_procarg0 = true
Parser::Builders::Default.emit_encoding = true
Parser::Builders::Default.emit_index = true
@brandondrew
brandondrew / SketchSystems.spec
Last active October 3, 2018 17:04
Current Performance Pilot Workflow x
Current Performance Pilot Workflow x
Supervisor Starts Form
Share with Employee -> Supervisor & Employee Comment
Supervisor & Employee Comment
Supervisor Signs
Employee Signs
@brandondrew
brandondrew / SketchSystems.spec
Last active October 4, 2018 02:53
Proposed Performance Pilot Workflow - States
Proposed Performance Pilot Workflow - States
No Review Exists*
Create New Form -> New
Review In Process
Save as Draft -> Draft
Share with Employee -> Awaiting Comments
Delete -> No Review Exists
New
Draft
Awaiting Comments
@brandondrew
brandondrew / SketchSystems.spec
Last active October 4, 2018 02:54
Proposed Performance Pilot Workflow - Complete
Proposed Performance Pilot Workflow - Complete
No Review Exists*
Create New Form -> Supervisor Starts Conversation
Review In Process
Supervisor Starts Conversation
Save as Draft -> Draft
Share with Employee -> Participants Comment
New*
Draft
Participants Comment