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
#!/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
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- |
NewerOlder