Skip to content

Instantly share code, notes, and snippets.

View post-merge
#!/bin/sh
bundle check || bundle
View eterm-color.ti
eterm-color|Emacs term.el terminal emulator term-protocol-version 0.96,
#
# The code here is forced by the interface, and is not subject to
# copyright, constituting the only possible expression of the algorithm
# in this format.
#
# When updating this file, etc/e/eterm-color should be regenerated by
# running "make e/eterm-color" in the etc directory.
# Any change to this file should be done at the same time with a
# corresponding change to the TERMCAP environment variable in term.el.
View anonymous-gist.
exec-path is a variable defined in `C source code'.
Its value is
("/Users/scott/.rubies/ruby-2.1.3/bin" "/Users/scott/.gem/ruby/2.0.0/bin" "/opt/local/bin" "/Users/scott/.gem/ruby/2.1.3/bin" "/Users/scott/.rubies/ruby-2.1.3/lib/ruby/gems/2.1.0/bin" "/Users/scott/devhome/git/neighborland.com/bin" "/Users/scott/bin" "/Users/scott/.cask/bin" "/usr/local/bin" "/usr/local/sbin" "/usr/bin" "/bin" "/usr/sbin" "/sbin" "/usr/local/bin" "/opt/X11/bin" "/Users/scott/scripts/bin" "/Users/scott/node_modules/.bin" "/usr/local/Cellar/emacs/HEAD/libexec/emacs/25.0.50/x86_64-apple-darwin13.4.0")
value from shell-command env:
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/Users/scott/.gem/ruby/2.0.0/bin:/Users/scott/.rubies/ruby-2.1.3/bin:/opt/local/bin:/Users/scott/.gem/ruby/2.1.3/bin:/Users/scott/.rubies/ruby-2.1.3/lib/ruby/gems/2.1.0/bin:/Users/scott/devhome/git/neighborland.com/bin:/Users/scott/bin:/Users/scott/.cask/bin:/usr/local/sbin:/Users/scott/scripts/bin:/Users/scott/node_modules/.bin
@scottjacobsen
scottjacobsen / test.rb
Last active Aug 29, 2015
benchmark_method_missing
View test.rb
require "benchmark"
class ViewContext
def hello
"hello"
end
end
class SimpleMethodMissing
def initialize
@scottjacobsen
scottjacobsen / error.txt
Created Apr 2, 2015
parallels-vagrant-error
View error.txt
vagrant@vagrant% sudo -u postgres ls
Sorry, user vagrant is not allowed to execute '/bin/ls' as postgres on vagrant.vm.
@scottjacobsen
scottjacobsen / sudoers
Created Apr 2, 2015
parallels-vagrant-sudo
View sudoers
vagrant ALL=(ALL) NOPASSWD:ALL
View gdb_trigger.c
/*
* is this cool enough that it warrants a blog post?
*
* trigger breakpoint in GDB, from code.
*/
#include <stdio.h>
int main(int argc, char *argv[]) {
@scottjacobsen
scottjacobsen / Ubuntu, Rails, Passenger setp from scratch.textile
Created Mar 15, 2010
Ubuntu/Rails/Apache/Passenger install instructions
View Ubuntu, Rails, Passenger setp from scratch.textile

Rails Web Server Stack Setup

Install Ruby, Apache, and some required utility packages

sudo aptitude install ruby apache2-mpm-prefork build-essential ruby-dev libopenssl-ruby \
apache2-prefork-dev libapr1-dev libaprutil1-dev git-core irb

Install the Ruby Gem package manager:

  • Get the latest Gem package manager (the file ending in .tgz) from the gem distribution.
@scottjacobsen
scottjacobsen / gist:338014
Created Mar 19, 2010
sqlite database.yml
View gist:338014
development:
adapter: sqlite3
database: db/development.sqlite3
timeout: 15000
test:
adapter: sqlite3
database: db/test.sqlite3
timeout: 15000
@scottjacobsen
scottjacobsen / out.txt
Created Apr 30, 2010
old nestersocks dns records
View out.txt
; <<>> DiG 9.6.1-P2 <<>> nestersocks.com ANY
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54197
;; flags: qr rd ra; QUERY: 1, ANSWER: 7, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;nestersocks.com. IN ANY