Skip to content

Instantly share code, notes, and snippets.

View jathayde's full-sized avatar
🚜

John Athayde jathayde

🚜
View GitHub Profile
Soho:dam jathayde$ sudo gem install bundler
Password:
Successfully installed bundler-1.0.3
1 gem installed
Installing ri documentation for bundler-1.0.3...
Installing RDoc documentation for bundler-1.0.3...
Soho:dam jathayde$ bundle install
Fetching source index for http://rubygems.org/
/usr/local/lib/ruby/1.8/fileutils.rb:243:in `mkdir': Permission denied - /Users/jathayde/.gem/specs (Errno::EACCES)
from /usr/local/lib/ruby/1.8/fileutils.rb:243:in `fu_mkdir'
oho:dam jathayde$ sudo chown -R jathayde /Users/jathayde/.gem/
Password:
Soho:dam jathayde$ bundle install
Fetching source index for http://rubygems.org/
Using rake (0.8.7)
Using abstract (1.0.0)
/Users/jathayde/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems/remote_fetcher.rb:124:in `initialize': Permission denied - /Users/jathayde/.rvm/gems/ruby-1.9.2-p0/cache/activesupport-3.0.0.gem (Errno::EACCES)
from /Users/jathayde/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems/remote_fetcher.rb:124:in `open'
from /Users/jathayde/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems/remote_fetcher.rb:124:in `download'
from /Users/jathayde/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.3/lib/bundler/source.rb:252:in `download_gem_from_uri'
Mar 1 17:45:35 Canaveral Installer[1039]: @(#)PROGRAM:Install PROJECT:Install-594.1
Mar 1 17:45:35 Canaveral Installer[1039]: @(#)PROGRAM:Installer PROJECT:Installer-430.1
Mar 1 17:45:35 Canaveral Installer[1039]: Hardware: MacPro3,1 @ 2.80 GHz (x 8), 18432 MB RAM
Mar 1 17:45:35 Canaveral Installer[1039]: Running OS Build: Mac OS X 10.6.6 (10J567)
Mar 1 17:45:35 Canaveral Installer[1039]: Env: PATH=/usr/bin:/bin:/usr/sbin:/sbin
Mar 1 17:45:35 Canaveral Installer[1039]: Env: TMPDIR=/var/folders/v0/v0b5uFw+EfuJvO5f9qxwj++++TI/-Tmp-/
Mar 1 17:45:35 Canaveral Installer[1039]: Env: SHELL=/bin/bash
Mar 1 17:45:35 Canaveral Installer[1039]: Env: HOME=/Users/jathayde
Mar 1 17:45:35 Canaveral Installer[1039]: Env: USER=jathayde
Mar 1 17:45:35 Canaveral Installer[1039]: Env: LOGNAME=jathayde
Mar 3 11:20:49 Canaveral Software Update[27043]: JS: 10.6.6
Mar 3 12:45:53 Canaveral Software Update[27043]: Calculated need 445 MB; 1245450 MB free.
Mar 3 12:45:55 Canaveral installd[28457]: PackageKit: ----- Begin install -----
Mar 3 12:45:55 Canaveral installd[28457]: PackageKit: request=PKInstallRequest <4 packages, destination=/>
Mar 3 12:45:55 Canaveral installd[28457]: PackageKit: packages=(\n "PKLeopardPackage <file://localhost/Library/Updates/zzzz041-0306/AppleMobileDeviceSupportDelta.pkg>",\n "PKLeopardPackage <file://localhost/Library/Updates/zzzz041-0306/CoreFPDelta.pkg>",\n "PKLeopardPackage <file://localhost/Library/Updates/zzzz041-0306/iTunesXPatch.pkg>",\n "PKLeopardPackage <file://localhost/Library/Updates/zzzz041-0306/iTunesAccessDelta.pkg>"\n)
Mar 3 12:45:58 Canaveral installd[28457]: PackageKit: Extracting file://localhost/Library/Updates/zzzz041-0306/AppleMobileDeviceSupportDelta.pkg (destination=/var/folders/zz/zzzivhrRnAmviuee+++++++++++/Cleanup At Startup/PKInstallSan
canaveral:git jathayde$ brew install nginx
==> Downloading http://nginx.org/download/nginx-1.0.6.tar.gz
File already downloaded in /Users/jathayde/Library/Caches/Homebrew
==> Patching
patching file auto/lib/pcre/conf
patching file conf/nginx.conf
==> ./configure --prefix=/usr/local/Cellar/nginx/1.0.6 --with-http_ssl_module --with-pcre --conf-path=/usr/local/etc/nginx
==> make install
make -f objs/Makefile install
/usr/bin/llvm-gcc -c -O3 -march=core2 -msse4.1 -w -pipe -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
@jathayde
jathayde / gist:1262511
Created October 4, 2011 19:16
whois apple.com
jathayde$ whois apple.com
Whois Server Version 2.0
Domain names in the .com and .net domains can now be registered
with many different competing registrars. Go to http://www.internic.net
for detailed information.
APPLE.COM.WWW.BEYONDWHOIS.COM
APPLE.COM.WAS.PWNED.BY.M1CROSOFT.COM
Found libtidy in: /usr/lib/libtidy.A.dylib
Exiting
/Users/jathayde/.rvm/gems/ruby-1.9.2-p290@artflow/gems/tidy-1.1.2/lib/tidy/tidybuf.rb:5:in `<class:Tidybuf>': uninitialized constant DL::Importable (NameError)
from /Users/jathayde/.rvm/gems/ruby-1.9.2-p290@artflow/gems/tidy-1.1.2/lib/tidy/tidybuf.rb:3:in `<top (required)>'
from /Users/jathayde/.rvm/gems/ruby-1.9.2-p290@artflow/gems/tidy-1.1.2/lib/tidy.rb:25:in `<module:Tidy>'
from /Users/jathayde/.rvm/gems/ruby-1.9.2-p290@artflow/gems/tidy-1.1.2/lib/tidy.rb:21:in `<top (required)>'
from /Users/jathayde/.rvm/gems/ruby-1.9.2-p290@artflow/gems/html5-rack-tidy-0.2.4/lib/rack/tidy/cleaner.rb:1:in `<top (required)>'
from /Users/jathayde/.rvm/gems/ruby-1.9.2-p290@artflow/gems/html5-rack-tidy-0.2.4/lib/rack/tidy.rb:64:in `new'
from /Users/jathayde/.rvm/gems/ruby-1.9.2-p290@artflow/gems/actionpack-3.1.0/lib/action_dispatch/middleware/stack.rb:43:in `build'
from /Users/jathayde/.rvm/gems/ruby-1.9.2-p290@artflow/gems/actionpack-3.1.0/lib/action_dispatch/middlewa
selector {
position: absolute;
top: 100px;
left: 50px;
width: 400px;
}
class Category < ActiveRecord::Base
has_many :categories, :class_name => "Category"
belongs_to :category, :class_name => "Category",
:foreign_key => "parent_id"
has_many :line_items
end
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js ie ie6 lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie ie7" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie ie8" lang="en"> <![endif]-->
<!-- Consider adding a manifest.appcache: h5bp.com/d/Offline -->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">