Skip to content

Instantly share code, notes, and snippets.

View danp's full-sized avatar

Dan Peterson danp

View GitHub Profile
alias be='bundle exec'
alias ber='bundle exec rspec'
alias bi='bundle install'

Keybase proof

I hereby claim:

  • I am dpiddy on github.
  • I am dpiddy (https://keybase.io/dpiddy) on keybase.
  • I have a public key whose fingerprint is 6748 E5BA D087 7810 CD86 C6CB DAD1 E408 DB7C 172E

To claim this, I am signing this object:

(add-to-list 'load-path (concat user-emacs-directory "vendor/enhanced-ruby-mode"))
(setq enh-ruby-program "/opt/boxen/rbenv/versions/2.1.1/bin/ruby")
(autoload 'enh-ruby-mode "enh-ruby-mode" "Major mode for ruby files" t)
(add-to-list 'auto-mode-alist '("\\.rb$" . enh-ruby-mode))
(add-to-list 'auto-mode-alist '("\\.rake$" . enh-ruby-mode))
(add-to-list 'auto-mode-alist '("Rakefile$" . enh-ruby-mode))
(add-to-list 'auto-mode-alist '("\\.gemspec$" . enh-ruby-mode))
(add-to-list 'auto-mode-alist '("\\.ru$" . enh-ruby-mode))
(add-to-list 'auto-mode-alist '("Gemfile$" . enh-ruby-mode))
(add-to-list 'interpreter-mode-alist '("ruby" . enh-ruby-mode))
(setenv "GOPATH" (expand-file-name "$HOME/Projects/go/gopath"))
(setenv "PATH" "/Users/dan/bin:/opt/boxen/rbenv/bin:/opt/boxen/bin:/opt/boxen/homebrew/bin:/opt/boxen/homebrew/sbin:/Applications/Emacs.app/Contents/MacOS/bin:/Applications/Postgres.app/Contents/Versions/9.3/bin:/usr/local/bin:/usr/local/google-cloud-sdk/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/dan/Projects/go/gopath/bin:/usr/local/go/bin")
(setq exec-path (append (list (expand-file-name "~/Projects/go/gopath/bin") "/usr/local/go/bin" "/opt/boxen/rbenv/bin") exec-path))
; I installed go-mode via package-install
; I installed goflymake with `go get -u github.com/dougm/goflymake`
(add-to-list 'load-path "~/Projects/go/gopath/src/github.com/dougm/goflymake")
(require 'go-flymake)
(defun new-notes-buffer ()
"Create and switch to a new notes buffer. Name based on current timestamp."
(interactive)
(switch-to-buffer
(find-file-noselect
(expand-file-name
(concat
"~/Documents/notes/notes-"
(format-time-string "%Y-%m-%d-%H-%M-%S")
".txt")))))
% git push staging master
Fetching repository, done.
Counting objects: 1, done.
Writing objects: 100% (1/1), 188 bytes, done.
Total 1 (delta 0), reused 0 (delta 0)
-----> Fetching custom git buildpack... done
-----> Ruby app detected
+ set -e
+ set -o pipefail
% git push heroku master
Fetching repository, done.
Counting objects: 1, done.
Writing objects: 100% (1/1), 187 bytes, done.
Total 1 (delta 0), reused 0 (delta 0)
-----> Fetching custom git buildpack... done
-----> Ruby app detected
+ set -e
+ set -o pipefail
@danp
danp / a.txt
Last active January 2, 2016 19:39
with 1.3.2:
hub push [email protected]:dan-foobar.git master 0.26s user 0.40s system 0% cpu 2:06.91 total
hub push [email protected]:dan-foobar.git master 0.23s user 0.18s system 0% cpu 1:48.28 total
hub push [email protected]:dan-foobar.git master 0.25s user 0.22s system 0% cpu 1:36.01 total
hub push [email protected]:dan-foobar.git master 0.25s user 0.20s system 0% cpu 1:49.60 total
hub push [email protected]:dan-foobar.git master 0.23s user 0.19s system 0% cpu 1:47.56 total
hub push [email protected]:dan-foobar.git master 0.23s user 0.17s system 0% cpu 3:16.25 total
hub push [email protected]:dan-foobar.git master 0.24s user 0.21s system 0% cpu 2:37.66 total
hub push [email protected]:dan-foobar.git master 0.23s user 0.17s system 0% cpu 1:59.15 total
% export GEM_PATH=`pwd` GEM_HOME=`pwd`
% gem env
RubyGems Environment:
- RUBYGEMS VERSION: 2.0.14
- RUBY VERSION: 2.0.0 (2013-11-22 patchlevel 353) [x86_64-darwin12.5.0]
- INSTALLATION DIRECTORY: /Users/dan/Projects/ruby/gem-install-compare/2.0
- RUBY EXECUTABLE: /opt/boxen/rbenv/versions/2.0.0-p353/bin/ruby
- EXECUTABLE DIRECTORY: /Users/dan/Projects/ruby/gem-install-compare/2.0/bin
- RUBYGEMS PLATFORMS:
- ruby