Skip to content

Instantly share code, notes, and snippets.

Nacho Garrone nachogarrone

Block or report user

Report or block nachogarrone

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View collider-request.txt
curl -X POST \
http://api.internal.ml.com/internal/validation-hub/feedback \
-H 'Content-Type: application/json' \
-d '{"id":"100","site_id":"MLA","title":"Guitarra Acustica [prueba - no comprar]","category_id":"MLA4274","official_store_id":null,"price":10115.49,"currency_id":"ARS","available_quantity":909,"sale_terms":[],"buying_mode":"buy_it_now","listing_type_id":"gold_special","condition":"new","pictures":[{"id":"839406-MLA28140168269_092018","url":"http://mla-s1-p.mlstatic.com/839406-MLA28140168269_092018-O.jpg","secure_url":"https://mla-s1-p.mlstatic.com/839406-MLA28140168269_092018-O.jpg","size":"500x500","max_size":"800x800","quality":""}],"video_id":"D8XbJEuoZtw","accepts_mercadopago":true,"non_mercado_pago_payment_methods":[],"shipping":{"mode":"me2","free_methods":[{"id":73328,"rule":{"default":true,"free_mode":"country","free_shipping_flag":true,"value":null}}],"tags":["self_service_in","mandatory_free_shipping"],"dimensions":null,"local_pick_up":true,"free_shipping":true,"logistic_type":"cr
View MyForkJoinPool.java
@Component
public class MyForkJoinPool {
private static final Logger LOGGER = LoggerFactory.getLogger(MyForkJoinPool.class);
private ForkJoinPool forkJoinPool;
private ForkJoinPool hardForkJoinPool;
@PostConstruct
public void init() {
this.forkJoinPool = new ForkJoinPool(2);
View obtener vecinos de cluster
public class ClustersHelper {
private ObjectMapper mapper = new ObjectMapper();
private List<String> neighbours;
public List<String> getNeighbours() {
if (CollectionUtils.isNotEmpty(this.neighbours)) {
return this.neighbours;
} else {
this.neighbours = new ArrayList<>();
View refreshoverlapped.sh
#!/bin/bash
declare -a arr=("clt-guard-00" "clt-guard-01" "clt-guard-02" "clt-guard-08" "clt-guard-09" "clt-guard-10" "clt-guard-11" "clt-guard-12" "clt-guard-13")
for cluster in "${arr[@]}"
do
echo "PUT http://${cluster}:9290/collect/payment-methods/cache/overlapped/reload"
curl -X PUT \
http://${cluster}:9290/collect/payment-methods/cache/overlapped/reload \
-H 'Cache-Control: no-cache' \
View locus-load.py
import base64
import json
import random
from datetime import date, timedelta
import requests
from locust import HttpLocust, TaskSet, task
events = []
You can’t perform that action at this time.