Skip to content

Instantly share code, notes, and snippets.

View astupka's full-sized avatar
🏠
Working from home

Alex Stupka astupka

🏠
Working from home
View GitHub Profile
@astupka
astupka / gist:3ab769e40d41794f43d8
Last active December 17, 2015 10:16
Rails 3.2 branch benchmarks
https://github.com/customink/mms/tree/astupka/rails_32_bench
Rails 3.2 branch
get_object - Low level http request builder & connection
https://github.com/fog/fog-aws/blob/master/lib/fog/aws/requests/storage/get_object.rb#L57
Request cmd
wget -O tmp.jpg 'http://mms02.staging.customink.com/mms/images/catalog/styles/106900/catalog_detail_image.jpg'
@astupka
astupka / gist:4197496
Last active October 13, 2015 12:38
Delete queue using bunny
require 'bunny'
def delete_queue(queue_name)
Bunny.run(MessagingHelper.config.amqp) do |bunny|
queue = bunny.queue(queue_name, {:durable => true})
queue.delete
end
end
Merissa: Welcome to Gogo. My name is Merissa.
Alex Stupka: hello
Alex Stupka: I went on a flight on 11/20 and was charged 7.95, but the wifi disconnected about 10 mins into the flight
Merissa: Hello, Alex. I do apologize. Let's take a look at your account and see what I can do to help.
Alex Stupka: the flight attendants said we would not be charged, but a charge appeared on my cc bill
Alex Stupka: it was on 11/20
Merissa: While Gogo's products are non-refundable, we value you as a customer. Taking your situation under consideration, I will be happy to offer you a 100% promotional code to be used for the purchase and use of a Flight Pass the next time you travel.
Alex Stupka: ok. that works. for future reference, can I see the airline about getting a refund if no wifi is available after I purchase?
Alex Stupka: or is it a total gamble
Merissa: The airline wouldn't be able to refund you, as we're only partnered with the airline.