Skip to content

Instantly share code, notes, and snippets.

diff --git a/lib/Trello/HttpClient/HttpClient.php b/lib/Trello/HttpClient/HttpClient.php
index 4171559..da8d654 100644
--- a/lib/Trello/HttpClient/HttpClient.php
+++ b/lib/Trello/HttpClient/HttpClient.php
@@ -212,7 +212,9 @@ class HttpClient implements HttpClientInterface
$path .= utf8_encode(http_build_query($body, '', '&'));
}
- $options['body'] = $body;
+ if ($httpMethod !== 'GET') {
@xsbr
xsbr / setup10x15.zpl
Created January 11, 2021 17:59
Setup Zebra GC420t for 100x150 labels
~SD20
~TA000
~JSN
^XA
^SZ2
^PW800
^LL1200
^PON
^PR4,4
^PMN
@xsbr
xsbr / meli_categories_taxes.csv
Created August 13, 2020 17:00
Taxas de Anúncios do MercadoLivre por Categoria - Extraído em 2020-08-13 - Script em https://gist.github.com/xsbr/b586d9f56c0e29c9c12fbb907b535bec
We can't make this file beautiful and searchable because it's too large.
category_id;classico;premium;domain;descricao
MLB122133;11.50;16.50;"MLB-BICYCLE_FORKS";"Esportes e Fitness|Ciclismo|Peças|Suspensões e Garfos|Suspensões e Garfos|Suspensões e Garfos|Suspensões e Garfos"
MLB278141;12.00;17.00;"MLB-METAL_DETECTORS";"Ferramentas e Construção|Ferramentas|Medições e Instrumentação|Detectores de Metais|Detectores de Metais|Detectores de Metais|Detectores de Metais"
MLB431449;11.00;16.00;"MLB-ELECTRONIC_PRODUCTS";"Eletrônicos, Áudio e Vídeo|Áudio|Toca Discos e Acessórios|Toca Discos e Acessórios|Toca Discos e Acessórios|Toca Discos e Acessórios|Toca Discos e Acessórios"
MLB277685;11.00;16.00;"MLB-GAME_CONSOLES_VIDEO_GAMES_AND_ARCADE_MACHINES";"Games|Acessórios para Consoles|Para Xbox|Xbox One|Controles e Joysticks|Controles Remotos Multimídia|Controles Remotos Multimídia"
MLB31039;11.50;16.50;"MLB-POUFS";"Casa, Móveis e Decoração|Móveis para Casa|Pufes|Pufes|Pufes|Pufes|Pufes"
MLB439537;11.00;16.00;"MLB-GAME_CONSOLES_VIDEO_GAMES_AND_ARCADE_MACHINES";"Games|Acessórios para Consoles|
@xsbr
xsbr / meli_categories_taxes.php
Last active August 13, 2020 16:55
Extrai do HTML um JSON com as taxas de anúncios do MercadoLivre por Categoria
<?php
$html = file('https://www.mercadolivre.com.br/landing/costos-venta-producto');
$find = 'window.__PRELOADED_STATE__ = ';
$json = false;
foreach($html as $row) {
$row = trim($row);
$pos = strpos($row, $find);
if($pos !== false) {
$json = @json_decode(substr($row, $pos+strlen($find), -1));
@xsbr
xsbr / gist:381a508e28665315a814d3fece09fa33
Created June 1, 2020 17:47
Sectigo_RSA_Domain_Validation_Secure_Server_CA.pem
-----BEGIN CERTIFICATE-----
MIIGEzCCA/ugAwIBAgIQfVtRJrR2uhHbdBYLvFMNpzANBgkqhkiG9w0BAQwFADCB
iDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0pl
cnNleSBDaXR5MR4wHAYDVQQKExVUaGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNV
BAMTJVVTRVJUcnVzdCBSU0EgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMTgx
MTAyMDAwMDAwWhcNMzAxMjMxMjM1OTU5WjCBjzELMAkGA1UEBhMCR0IxGzAZBgNV
BAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEYMBYGA1UE
ChMPU2VjdGlnbyBMaW1pdGVkMTcwNQYDVQQDEy5TZWN0aWdvIFJTQSBEb21haW4g
VmFsaWRhdGlvbiBTZWN1cmUgU2VydmVyIENBMIIBIjANBgkqhkiG9w0BAQEFAAOC
AQ8AMIIBCgKCAQEA1nMz1tc8INAA0hdFuNY+B6I/x0HuMjDJsGz99J/LEpgPLT+N
@xsbr
xsbr / standard.php
Last active July 24, 2017 22:57
v1.7.x/mercadopago/controllers/front/standard.php com suporte a MercadoEnvios
<?php
/**
* 2007-2015 PrestaShop.
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
@xsbr
xsbr / ml.script.js
Last active May 24, 2016 15:41
MercadoLivre Anúncios AdvancedView
// @name MercadoLivre Anúncios AdvancedView
// @author Ricardo Santos
// @version 0.1
var get_visits = function(data) {
html1 = '<tr>';
html2 = '<tr>';
for(var i=0; i<data.results.length; i++) {
v = data.results[i];
html1 += '<th><small>'+v.date.substring(8,10)+'/'+v.date.substring(5,7)+'</small></th>';
@xsbr
xsbr / gist:d7fc2f8f4c32b8f6d6a264e8b277ac3e
Created April 1, 2016 13:44
Upgrade Python to 2.7.x on Debian 6 Squeeze and Install letsencrypt
Hello,
This is a "copy/paste style" How To update Python and then install the LetsEncrypt Client on Debian 6 "Squeeze"
Install some dependencies:
apt-get install build-essential python-pip git libssl-dev libffi-dev python-dev
pip install pythonbrew
pythonbrew_install
source "$HOME/.pythonbrew/etc/bashrc"