Skip to content

Instantly share code, notes, and snippets.

View parkr's full-sized avatar
📡
E.T. Phone Home

Parker Moore parkr

📡
E.T. Phone Home
View GitHub Profile
+ brew doctor
Your system is raring to brew.
+ brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew
HEAD: 014c6dd119315eb70d694456c90838605334dad9
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit haswell
OS X: 10.9.1-x86_64

Keybase proof

I hereby claim:

  • I am parkr on github.
  • I am parkr (https://keybase.io/parkr) on keybase.
  • I have a public key whose fingerprint is 00D2 B366 BC9A 9B44 2D87 B59F 7AB4 982E 8099 3F1C

To claim this, I am signing this object:

@parkr
parkr / git-command-stats.txt
Created March 28, 2014 01:55
I was just trying out Max Ogden's npm package "git-command-stats" and was so amused with how often I fuck up that I wanted to share these results.
~$ git command-stats
{ ist: 1 }
{ be: 1 }
{ 'ls-files': 1 }
{ pgit: 1 }
{ pusgh: 1 }
{ at: 1 }
{ logg: 1 }
{ am: 1 }
{ siff: 1 }
@parkr
parkr / passenger_on_ubuntu.sh
Last active August 29, 2015 14:00
Install ze things
#! /bin/bash
set -e
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 561F9B9CAC40B2F7
sudo apt-get install apt-transport-https ca-certificates
sudo echo 'deb https://oss-binaries.phusionpassenger.com/apt/passenger trusty main' > /etc/apt/sources.list.d/passenger.list
sudo chown root: /etc/apt/sources.list.d/passenger.list
sudo chmod 600 /etc/apt/sources.list.d/passenger.list
---
layout: yearly
year: 2013
---
@parkr
parkr / test.md
Last active August 29, 2015 14:02

Test

This is a test gist.

#!/usr/bin/env bash
DEFINITION_PATH="2.1.1-github"
RUBY_BUILD_DEFINITIONS="$HOME/code/rbenv-custom-definitions/support"
RUBY_BUILD_DEFINITIONS="/usr/local/share/ruby-build:${RUBY_BUILD_DEFINITIONS}"
echo "$RUBY_BUILD_DEFINITIONS" | tr ":" "\n" | sed '/^$/d' | while read DEFINITION_DIRECTORY; do
echo "Testing ${DEFINITION_DIRECTORY}/${DEFINITION_PATH}"
if [ -e "${DEFINITION_DIRECTORY}/${DEFINITION_PATH}" ]; then
echo "It worked!"
/usr/local/lib/python2.7/site-packages/numpy/core/_methods.py:55: RuntimeWarning: Mean of empty slice.
warnings.warn("Mean of empty slice.", RuntimeWarning)
/usr/local/lib/python2.7/site-packages/numpy/core/_methods.py:67: RuntimeWarning: invalid value encountered in double_scalars
ret = ret.dtype.type(ret / rcount)
Aug 9 23:38:03 Parkers-MacBook-Pro.local Python[75776] <Error>: void CGPathCloseSubpath(CGMutablePathRef): no current point.
Aug 9 23:38:03 Parkers-MacBook-Pro.local Python[75776] <Error>: void CGPathCloseSubpath(CGMutablePathRef): no current point.
Aug 9 23:38:03 Parkers-MacBook-Pro.local Python[75776] <Error>: void CGPathCloseSubpath(CGMutablePathRef): no current point.
Aug 9 23:38:03 Parkers-MacBook-Pro.local Python[75776] <Error>: void CGPathCloseSubpath(CGMutablePathRef): no current point.
Aug 9 23:38:03 Parkers-MacBook-Pro.local Python[75776] <Error>: void CGPathCloseSubpath(CGMutablePathRef): no current point.
Aug 9 23:38:03 Parkers-MacBook-Pro.local Python[75776] <Error>: void CG
**************************
Prosody was unable to find luaexpat
This package can be obtained in the following ways:
luarocks: luarocks install luaexpat
Debian/Ubuntu: sudo apt-get install liblua5.1-expat0
Source: http://www.keplerproject.org/luaexpat/
luaexpat is required for Prosody to run, so we will now exit.
require 'benchmark/ips'
def alter(obj)
return obj if obj.respond_to?(:strftime)
obj.downcase! if obj.is_a?(String)
case obj
when 'now'.freeze, 'today'.freeze
Time.now