This file contains 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
openssl s_client -showcerts -connect www.caboenvivo.com:443 -servername caboenvivo.com 2>/dev/null | openssl x509 -noout -dates |
This file contains 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 cancel!(tour_id) | |
events = Tour.find(tour_id).events | |
events.each do |e| | |
orders_to_cancel = Purchase::Order.where(event_id: e.id).where(order_status: ["accepted","completed"]) | |
if orders_to_cancel.length == 0 | |
p "Skipping event with 0 orders to cancel" | |
next | |
end | |
p "Please confirm you would like to cancel #{orders_to_cancel.count} orders for event #{e.id} by typing 'CONFIRM'" | |
input = gets |
This file contains 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 io.gatling.core.Predef._ | |
import io.gatling.http.Predef._ | |
import scala.concurrent.duration._ | |
import java.util.Date._ | |
import java.text.SimpleDateFormat._ | |
// Mandatory, you must import Flood libraries | |
import flood._ |
This file contains 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 'nokogiri' | |
class ProcessSvgVenueMap | |
def initialize(file) | |
@file = file | |
@doc=Nokogiri::XML.parse(@file) | |
end | |
def remove_css | |
@doc.search("svg", "defs").remove | |
background_image = @doc.xpath('//@style') |
This file contains 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
<div class='tour-management tour-management-container vip-meet-and-greet-inventory'> | |
<div class='row'> | |
<div class='col-sm-12'> | |
<h4>Pricing</h4> | |
</div> | |
</div> | |
<div class="itinerary-table"> |
This file contains 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
#running resque jobs for all queues from a one-off console | |
worker = Resque::Worker.new("*") | |
worker.work | |
#getting all delayed jobs from old resque scheduler | |
all = Resque.delayed_queue_peek(0,2000).map{|ts| Resque.delayed_timestamp_peek(ts, 0, 2000).map{|it| it[:ts] = ts;it} } | |
#switch to new redis | |
Resque.redis = ENV['RESQUE_REDIS_URL'] |
This file contains 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
<script type="text/javascript"> | |
$('.center-content-container').hide(); | |
var widgetCallback = function(){ | |
$('[data-event-id=354126] a').replaceWith("On Sale Coming Soon"); | |
$('[data-event-id=354136] a').replaceWith("On Sale Coming Soon"); | |
$('[data-event-id=354128] a').replaceWith("On Sale Coming Soon"); | |
} | |
var _hello_applauze = []; | |
_hello_applauze.push({ | |
task: 'subscribe', |
This file contains 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
class EmergencyCache | |
CACHE_WAS_USED_VERY_RECENTLY_KEY = "event-document-emergency-cache-was-used-recently" | |
def is_in_emergency_mode? | |
Rails.cache.exists(CACHE_WAS_USED_VERY_RECENTLY_KEY) | |
end | |
def enable_emergency_mode | |
Rails.logger.error("[EventDocumentEmergencyCache] Using emergency event document cache for next 15 seconds") |
This file contains 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
<style> | |
/******* APPLAUZE WIDGET *********/ | |
/******* Drop in HTML HEAD *********/ | |
.az-widget-custom-th-notes{ | |
opacity: 0; | |
} | |
.az-widget-custom-table{ |
NewerOlder