Skip to content

Instantly share code, notes, and snippets.

@gustavosf
gustavosf / Falha ListarCondicoesPagamento
Created July 25, 2017 20:46
Falha ListarCondicoesPagamento
2017-07-25 17:45:29,508 ([ACTIVE] ExecuteThread: '11' for queue: 'weblogic.kernel.Default (self-tuning)') [ SOAPLoggingHandler.java:45 :INFO ] Outbound message:
2017-07-25 17:45:29,514 ([ACTIVE] ExecuteThread: '11' for queue: 'weblogic.kernel.Default (self-tuning)') [ SOAPLoggingHandler.java:63 :INFO ] <S:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><wsse:Security xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" wsu:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:id="unt_uHZ95Zwnftr5YPCL"><wsse:Username>ATGUser</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">mplus2@13</wsse:Password></wsse:UsernameToken></wsse:Security>
/**
* Usage:
* Go to https://objectedge.slack.com/files/{username}
* and run this code in the browser console
*
* To remove only files older than a given date, configure "older_than" with appropriate value
* Ex: "2016-12-14", "2015-12-31 17:35:14"
*
* To delete only images, configure types as "image"
* To delete all kind of files, configure types as "all"
@gustavosf
gustavosf / thumbgen.py
Created August 13, 2014 21:58
Proxyzinha para gerar thumbnails recursivamente para um grande número de imagens
#coding: utf8
import os, fnmatch, sys
from argparse import ArgumentParser
import Image
def recursive_glob(treeroot, pattern):
# Função para buscar recursivamente todos os arquivos seguindo
# um determinado formato dentro de um diretório
results = []
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@gustavosf
gustavosf / brstat.php
Created August 10, 2011 02:32
Gerador de estatísticas básicas do brasileirão
#!/usr/bin/php
<?php
/** Gerador de estatísticas básicas do brasileirão
*
* Os dados são extraídos diretamente do site da CBF, através do webservice
* em http://www.cbf.com.br/ServiceJogosDaRodadaCampeonatoBrasileiro
*
* Primeira execução do código os dados são buscados diretamente no servidor,
* o que deve resultar em demora para o resultado.
*