This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ... | |
| # Fake a fuse install | |
| RUN apt-get install libfuse2 | |
| RUN cd /tmp ; apt-get download fuse | |
| RUN cd /tmp ; dpkg-deb -x fuse_* . | |
| RUN cd /tmp ; dpkg-deb -e fuse_* | |
| RUN cd /tmp ; rm fuse_*.deb | |
| RUN cd /tmp ; echo -en '#!/bin/bash\nexit 0\n' > DEBIAN/postinst | |
| RUN cd /tmp ; dpkg-deb -b . /fuse.deb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Credit http://stackoverflow.com/a/2514279 | |
| for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'fb_graph' | |
| array = FbGraph::Query.new( | |
| 'SELECT name FROM user WHERE uid = me()' | |
| ).fetch(ACCESS_TOKEN) | |
| p array |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'fb_graph' | |
| array = FbGraph::Query.new( | |
| 'SELECT name,pic FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1=me()' | |
| ).fetch(ACCESS_TOKEN) | |
| p array |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ... | |
| gem 'devise', | |
| :git => 'https://github.com/plataformatec/devise.git', | |
| :branch => 'omniauth' | |
| gem 'oa-oauth', :require => 'omniauth/oauth' | |
| ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| vagrant@precise64:~/Prog/android_data/projects/test1$ gem install jruby-jars --version 1.6.7.2 | |
| Fetching: jruby-jars-1.6.7.2.gem (100%) | |
| Successfully installed jruby-jars-1.6.7.2 | |
| 1 gem installed | |
| vagrant@precise64:~/Prog/android_data/projects/test$ rm libs/jruby-*.jar | |
| vagrant@precise64:~/Prog/android_data/projects/test$ ls libs | |
| dexmaker20120305.jar tmp | |
| vagrant@precise64:~/Prog/android_data/projects/test$ ruboto update jruby --force |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| vagrant@precise64:~/Prog/android_data/projects/test$ ruboto update jruby --force | |
| Copying /home/vagrant/.rvm/gems/jruby-1.6.7.2/gems/jruby-jars-1.7.0/lib/jruby-core-1.7.0.jar to libs...Done. | |
| Copying /home/vagrant/.rvm/gems/jruby-1.6.7.2/gems/jruby-jars-1.7.0/lib/jruby-stdlib-1.7.0.jar to libs...Done. | |
| Copying dexmaker.jar to libs...Done. | |
| Removing unneeded classes from jruby-core-1.7.0.jar...Done. | |
| Reformatting jruby-stdlib-1.7.0.jar..../lib/ruby : no such file or directory | |
| Done. | |
| JRuby version is now: 1.7.0 | |
| vagrant@precise64:~/Prog/android_data/projects/test$ rake | |
| /home/vagrant/Prog/android_data/projects/test/libs/jruby-stdlib-1.7.0.jar changed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| vagrant@precise64:~/Prog/android_data/projects/test$ ruby -v | |
| jruby 1.7.0 (1.9.3p203) 2012-10-22 ff1ebbe on OpenJDK 64-Bit Server VM 1.7.0_09-b30 [linux-amd64] | |
| vagrant@precise64:~/Prog/android_data/projects/test$ gem list | |
| *** LOCAL GEMS *** | |
| arrayfields (4.7.4) | |
| bouncy-castle-java (1.5.0146.1) | |
| bundler (1.2.1) | |
| chronic (0.6.7) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def calculate_perc(i, total) | |
| (i * 100 / total).to_i | |
| end | |
| def rate_limit_1_perc?(perc, last_perc, last_updated) | |
| # Changes of at least 1% | |
| # once every 20 seconds | |
| perc > last_perc && last_updated < Time.now.ago(20.seconds) | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| test_helper.rb | |
| require './test/additional_assertions' | |
| additional_assertions.rb | |
| module AdditionalAssertions | |
| module CaptureOutput | |
| # NOTE: MiniTest has capture_io and capture_subprocess_io |
OlderNewer