Skip to content

Instantly share code, notes, and snippets.

View lucasgomide's full-sized avatar

Lucas Gomide lucasgomide

View GitHub Profile
a = 0
b = 0
(1..10000).each do
g = group_index('test_92_course_page', Time.zone.now.to_i, AbTest::AnonymousService::VARIANTS_NON_LOGGED_IN)
if g == 0
a += 1
else
b += 1
end
end
@lucasgomide
lucasgomide / zanox_pixel_curl
Last active May 18, 2017 14:40
How to use Zanox Pixel via cURL
// DON'T FORGET
// You have to use the User Agent on headers to simulate browser request
curl https://ad.zanox.com/pps/?YourToken&CustomerID=YourCustomer&OrderID=YourOrderID&TotalPrice=1000.00&ReviewNote=Credit-Card&mode=2&CurrencySymbol=BRL \
-H 'User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36'
@lucasgomide
lucasgomide / script de agendamento de cobranças
Created April 19, 2017 17:43
script de agendamento de cobranças
subscriptions = [160,161,751,1308,1505,1545,1557,1565,1577,1588,1589,1604,1642,1722,1815,1992,2010,2056,2060,2139,2156,2167,2261,2266,2282,2296,2311,2319,2342,2372,2391,2401,2417,2419,2435,2462,2466,2470,2471,2488,2498,2513,2529,2535,2545,2578,2582,2592,2620,2634,2666,2691,2702,2732,2735,2745,2766,2795,2815,2817,2848,2867,2893,2894,3006,3225,3468,3558,3793,4137,4394,4874,5093,5103,5112,5115,5126,5128,5169,5203,5218,5231,5284,5290,5294,5308,5327,5339,5343,5353,5358,5371,5374,5412,5424,5435,5459,5473,5480,5489,5527,5543,5546,5555,5574,5584,5588,5591,5598,5602,5603,5610,5611,5665,5694,5700,5709,5721,5729,5772,5788,5814,5824,5830,5838,5839,5842,5851,5864,5879,5881,5886,5891,5896,5902,5904,5908,5914,5915,5933,5956,5959,5967,6026,6106,6127,6144,6156,6202,6214,6235,6262,6263,6271,6311,6339,6419,6431,6451,6457,6469,6487,6522,6540,6552,6601,6615,6621,6623,6631,6635,6641,6648,6662,6671,6675,6678,6683,6721,6741,6798,6800,6820,6822,6832,6835,6872,6886,6902,6947,6960,6966,7041,7056,7089,7092,7110,7114,7136,7156,7172,7245
@lucasgomide
lucasgomide / gist:cf4756d3807150d0e52b
Created June 19, 2015 13:51
execute-command-lines-from-standard-input
git status |grep '\(.t[[:digit:]]\)$' | xargs git tag -d