Skip to content

Instantly share code, notes, and snippets.

View scottjacobsen's full-sized avatar

Scott Jacobsen scottjacobsen

View GitHub Profile
scottjacobsen / post-merge
Last active August 29, 2015 13:55
bundle check || bundle
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.
scottjacobsen / anonymous-gist.
Last active August 29, 2015 14:07
path weirdness
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/" "/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:
scottjacobsen / test.rb
Last active August 29, 2015 14:13
require "benchmark"
class ViewContext
def hello
class SimpleMethodMissing
def initialize
scottjacobsen / sudoers
Created April 2, 2015 22:55
scottjacobsen / error.txt
Created April 2, 2015 23:14
vagrant@vagrant% sudo -u postgres ls
Sorry, user vagrant is not allowed to execute '/bin/ls' as postgres on vagrant.vm.
* 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 / Ubuntu, Rails, Passenger setp from scratch.textile
Created March 15, 2010 18:35
Ubuntu/Rails/Apache/Passenger install instructions

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 / gist:338014
Created March 19, 2010 18:40
sqlite database.yml
adapter: sqlite3
database: db/development.sqlite3
timeout: 15000
adapter: sqlite3
database: db/test.sqlite3
timeout: 15000
scottjacobsen / out.txt
Created April 30, 2010 17:30
old nestersocks dns records
; <<>> DiG 9.6.1-P2 <<>> 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