Skip to content

Instantly share code, notes, and snippets.

@mdoroudi
mdoroudi / gist:de9cd1a6c45901cab6dd
Created April 13, 2015 19:07
jbundle install appintel
$ jbundle install
...
...
Using test-unit (2.5.4)
Using timecop (0.7.1)
Using warbler (1.4.5)
Using webmock (1.15.2)
Using will_paginate (3.0.5)
Using zip (2.0.2)
Your bundle is complete!
@mdoroudi
mdoroudi / gist:d2bc3d41f7f0346fb9db
Created April 7, 2015 21:08
AppIntel - running rake task on the war file
[~/workspace/app_intel][warbler*]sudo java -jar app_intel.war -S rake -P
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
rake aborted!
SyntaxError: /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/jruby5648055035306800588extract/gems/gems/cdc_carrier-2.14.155/lib/cdc_carrier/resource.rb:14: syntax error, unexpected ':'
get "#{collection_url}/#{id}.json", headers: auth_headers
^/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/jruby5648055035306800588extract/gems/gems/cdc_carrier-2.14.155/lib/cdc_carrier/resource.rb:11:in `(root)'
/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/jruby5648055035306800588extract/gems/gems/cdc_carrier-2.14.155/lib/cdc_carrier.rb:76:in `require'
/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/jruby5648055035306800588extract/gems/gems/bundler-1.5.1/lib/bundler/runtime.rb:72:in `require'
/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/jruby5648055035306800588extra
@mdoroudi
mdoroudi / charon.conf
Created September 8, 2014 23:47
/etc/apache2/sites-enabled/charon.conf adding export of TMPDIR
<VirtualHost *:3000>
ServerName ip-10-96-7-180
DocumentRoot /srv/charon/current/public
RailsBaseURI /
RailsEnv production
<Directory /srv/charon/current/public>
Order allow,deny
Allow from all
@mdoroudi
mdoroudi / gist:1646085
Created January 20, 2012 08:11
Installing the ruby-debug-base19-0.11.26.gem on Ruby 1.9.3-p0, Mac OS X Lion 10.7.2 and Xcode 4.2.1
Hi,
I followed the instruction from http://blog.wyeworks.com/2011/11/1/ruby-1-9-3-and-ruby-debug and all the comments under it. But I still have problems with installing ruby-debug-base19. I have tried all the following and I still get this error.
gem install ruby-debug-base19-0.11.26.gem -- --with-ruby-dir=/Users/mdoroudi/.rvm/rubies/ruby-1.9.3-p0/
gem install ruby-debug-base19-0.11.26.gem -- --with-ruby- include=/Users/mdoroudi/.rvm/rubies/ruby-1.9.3-p0/include/ruby-1.9.1/ruby-1.9.3-p0/
gem install ruby-debug-base19-0.11.26.gem -- --with-ruby- include=/Users/mdoroudi/.rvm/rubies/ruby-1.9.3-p0/
gem install ruby-debug-base19-0.11.26.gem -- --with-ruby- include=/Users/mdoroudi/.rvm/src/ruby-1.9.3-p0/
Building native extensions. This could take a while...
ERROR: Error installing ruby-debug-base19-0.11.26.gem: