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 'rubygems' | |
| require 'ticketmaster' | |
| require 'ticketmaster-lighthouse' | |
| Lighthouse.account = ARGV[0] | |
| Lighthouse.authenticate(ARGV[1],ARGV[2]) | |
| all_tickets = Lighthouse::Ticket.find(:all, :params => { :project_id => ARGV[3] }) | |
| begin | |
| File.delete("export.html") |
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
| # Exclude the file upload and WP CRON scripts from authentication | |
| <FilesMatch "(async-upload\.php|wp-cron\.php|xmlrpc\.php)$"> | |
| Satisfy Any | |
| Order allow,deny | |
| Allow from all | |
| Deny from none | |
| </FilesMatch> |
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 'devart' | |
| run Sinatra::Application |
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
| import sys | |
| import getopt | |
| import telnetlib | |
| import re | |
| class Varnish: | |
| def __init__(self, agentConfig, checksLogger, rawConfig): | |
| self.agentConfig = agentConfig | |
| self.checksLogger = checksLogger | |
| self.rawConfig = rawConfig |
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 'formula' | |
| class Varnish <Formula | |
| url 'http://downloads.sourceforge.net/project/varnish/varnish/2.0.6/varnish-2.0.6.tar.gz' | |
| homepage 'http://varnish.projects.linpro.no/' | |
| md5 'd91dc21c636db61c69b5e8f061c5bb95' | |
| depends_on 'pkg-config' => :build | |
| depends_on 'pcre' |
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
| sub vcl_recv { | |
| if (req.url == "/something") { | |
| unset req.http.Accept-Encoding; | |
| } | |
| } |
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
| Balla:zeitgeist tom$ ruby scripts/smq bridge --input twitter_sample | |
| [bridge_twitter_sample_to_stdio] 2010-09-28 22:35:43 - INFO : start processing: twitter_sample => bridge => stdio | |
| [bridge_twitter_sample_to_stdio] 2010-09-28 22:35:43 - INFO : name: bridge_twitter_sample_to_stdio | |
| [bridge_twitter_sample_to_stdio] 2010-09-28 22:35:43 - INFO : input config: twitter_sample | |
| [bridge_twitter_sample_to_stdio] 2010-09-28 22:35:43 - INFO : output config: stdio | |
| [bridge_twitter_sample_to_stdio] 2010-09-28 22:35:43 - INFO : input queue name: twitter.sample | |
| [bridge_twitter_sample_to_stdio] 2010-09-28 22:35:43 - INFO : output queue name: | |
| [bridge_twitter_sample_to_stdio] 2010-09-28 22:35:43 - INFO : json params: {} | |
| [bridge_twitter_sample_to_stdio] 2010-09-28 22:35:43 - INFO : parsed params: {} | |
| {:output_queue=> |
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
| <?php | |
| $cm->debug_level = 1; | |
| print_r($cm); |
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 'rubygems' | |
| require 'nokogiri' | |
| require 'open-uri' | |
| doc = Nokogiri::HTML(open('http://www.vodkaemporium.com/gin/gin.php')) | |
| product_list = doc.css("#mainContent tr") | |
| product_list.each do |product| | |
| product_title = product.css('a strong') |
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
| .clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } | |
| .clearfix{ display: inline-table; } | |
| .clearfix{ display: block; } |