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
2009-11-25 17:05:33,971 DEBUG [org.jboss.deployment.MainDeployer] Begin deployment start file:/home/user/jboss-eap-4.3/jboss-as/server/production/deploy/widget_server.war | |
2009-11-25 17:05:33,971 DEBUG [org.jboss.system.ServiceController] starting service jboss.web.deployment:war=widget_server.war,id=-1646016236 | |
2009-11-25 17:05:33,973 INFO [org.jboss.web.tomcat.service.TomcatDeployer] deploy, ctxPath=/widget_server, warUrl=.../tmp/deploy/tmp9156041349614009153widget_server-exp.war/ | |
2009-11-25 17:05:59,516 INFO [STDOUT] Failed to load library 'xml2': Could not open library 'libxml2.so' : libxml2.so: cannot open shared object file: No such file or directory\nFailed to load library 'xslt': Could not open library 'libxslt.so' : libxslt.so: cannot open shared object file: No such file or directory\nFailed to load library 'exslt': Could not open library 'libexslt.so' : libexslt.so: cannot open shared object file: No such file or directory | |
2009-11-25 17:05:59,517 INFO [STDOUT] file:/home/user/jboss-eap-4.3/jboss- |
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
#!/usr/bin/env ruby | |
# Run me like this: | |
# ./gifomatic.rb http://www.reddit.com/r/AskReddit/comments/asnx5/hey_reddit_what_is_your_favorite_gif_of_all_time/ | |
require 'rubygems' | |
require 'nokogiri' | |
require 'httparty' | |
response = HTTParty.get ARGV.first |
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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'httparty' | |
require 'nokogiri' | |
require 'cgi' | |
html = Nokogiri.parse HTTParty.get(ARGV[0]) | |
js = html.xpath('//script').select { |script| script.content =~ /fmt_url_map/ }.first.content | |
start_pos = (js =~ /"fmt_url_map":/) + 16 |
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
chris@ubuntu-vm:~/studio$ cat /home/chris/.gemrc | |
--- | |
gem: --no-rdoc --no-ri | |
:benchmark: false | |
:verbose: true | |
:backtrace: false | |
:update_sources: true | |
:sources: | |
- http://rubygems.org/ | |
- https://*****:********@gems.medioh.com/ |
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
#!/usr/bin/env ruby | |
require 'net/http' | |
require 'uri' | |
BLOCK_SIZE = 1048576 # bytes | |
URL = "http://localhost:8000/upload" | |
filename = ARGV[0] | |
f = File.open(filename, 'rb') |
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
chris@chris-dev:~$ ruby xmlbench.rb | |
17.970000 1.340000 19.310000 ( 19.329618) | |
15.690000 0.020000 15.710000 ( 15.727854) | |
15.810000 0.020000 15.830000 ( 15.844785) | |
15.790000 0.020000 15.810000 ( 15.831393) | |
^C/home/chris/.rvm/gems/ruby-1.9.3-p0/gems/nokogiri-1.5.0/lib/nokogiri/xml/document.rb:41:in `initialize': Interrupt | |
from /home/chris/.rvm/gems/ruby-1.9.3-p0/gems/nokogiri-1.5.0/lib/nokogiri/xml/document.rb:33:in `read_memory' | |
from /home/chris/.rvm/gems/ruby-1.9.3-p0/gems/nokogiri-1.5.0/lib/nokogiri/xml/document.rb:33:in `parse' | |
from /home/chris/.rvm/gems/ruby-1.9.3-p0/gems/nokogiri-1.5.0/lib/nokogiri/xml.rb:33:in `XML' | |
from xmlbench.rb:7:in `block (3 levels) in <main>' |
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
$ rake db:mongoid:create_indexes | |
rake aborted! | |
Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. | |
(See full trace by running task with --trace) |
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
chris@ubuntu64:~/compiled$ jruby -v | |
jruby 1.6.7 (ruby-1.8.7-p357) (2012-02-22 3e82bc8) (OpenJDK 64-Bit Server VM 1.7.0_147-icedtea) [linux-amd64-java] | |
chris@ubuntu64:~/compiled$ cat test.rb | |
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'sinatra' | |
require 'trinidad' | |
configure do |
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
#!/usr/bin/env ruby | |
royal_flushes = [ | |
[1,10,11,12,13], | |
[14,23,24,25,26], | |
[27,36,37,38,39], | |
[40,49,50,51,52]] | |
iterations = 50_000_000 |
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
C:\Users\chris>python c:\tahoe\bin\tahoe start -d c:\tahoe_data | |
STARTING 'c:\tahoe_data' | |
Unhandled Error | |
Traceback (most recent call last): | |
File "c:\tahoe\support\Lib\site-packages\twisted-11.0.0-py2.7-win32.egg\twiste | |
d\application\app.py", line 622, in run | |
runApp(config) | |
File "c:\tahoe\support\Lib\site-packages\twisted-11.0.0-py2.7-win32.egg\twiste | |
d\scripts\twistd.py", line 23, in runApp | |
_SomeApplicationRunner(config).run() |
OlderNewer