Skip to content

Instantly share code, notes, and snippets.

View phouverneyuff's full-sized avatar

Paulo Henrique phouverneyuff

  • Sao Paulo, SP
View GitHub Profile
#!/bin/bash
source $ZSH/plugins/git/git.plugin.zsh
emulate sh -c 'source /etc/profile'
############################## NVM CONFIG START ##############################
# NVM bundle
export NVM_LAZY_LOAD=true
############################## COMPINIT CONFIG START ##############################
# it seems that oh-my-zsh already call for it
#autoload -Uz compinit
#for dump in ~/.zcompdump(N.mh+24); do
[user]
name = Paulo Ouverney
email = ph.ouverney@gmail.com
[core]
editor = gedit
autocrlf = input
[credential]
helper = cache --timeout 7200
# This is Git's per-user configuration file.
[user]
# Please adapt and uncomment the following lines:
name = Fabio Leando
email = fabio.leandro@email.com.br
[merge]
tool = meld
[mergetool "meld"]
From 540217cf7f11a1798b0a3e143d16ca71c44f3893 Mon Sep 17 00:00:00 2001
From: Paulo Ouverney <ph.ouverney@gmail.com>
Date: Tue, 14 May 2019 23:21:37 -0300
Subject: [PATCH] 19.5.10
---
.SRCINFO | 6 +++---
PKGBUILD | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
#!/bin/bash
time for ((i=1;i<=300;i++)); do \
curl --silent -X POST \
--happy-eyeballs-timeout-ms \
-d'{"numero_conta": 1, "cpf": "12000", "valor_saldo": 1000000000.0, "nome_titular": "Zé pilintra"}' \
-H "Content-Type: application/json" \
http://localhost:8080/exemplo/contacorrente > /dev/null 2>&1 ; \
done
from locust import HttpLocust, TaskSet, task
class UserBehavior(TaskSet):
headers = {'content-type': 'application/json'}
@task(300)
def postContaCorrente(l):
payload = {"numero_conta": 1, "cpf": "12000", "valor_saldo": 1000000000.0, "nome_titular": "Zé pilintra"}
emulate sh -c '. ~/.profile'
#emulate sh -c '. /etc/profile'
function gitDeleteTagLocalAndRemote(){ #delete tag local and from remote
git push --delete "$1" "$2"
git tag -d $2
echo "tag $2 delete from remote $1 and local"
}
alias gtdo="gitDeleteTagLocalAndRemote"
@phouverneyuff
phouverneyuff / register_schema-tls.py
Last active August 6, 2019 17:33 — forked from aseigneurin/register_schema.py
Register an Avro schema against the Confluent Schema Registry
#!/usr/bin/python
import os
import sys
import requests
schema_registry_url = sys.argv[1]
topic = sys.argv[2]
schema_file = sys.argv[3]

Keybase proof

I hereby claim:

  • I am phouverneyuff on github.
  • I am phouverney (https://keybase.io/phouverney) on keybase.
  • I have a public key whose fingerprint is D2DC B857 C6D6 2F79 F69B A32D 2520 4BAB C9DC CE92

To claim this, I am signing this object: