Skip to content

Instantly share code, notes, and snippets.

View phouverneyuff's full-sized avatar

Paulo Henrique phouverneyuff

  • Sao Paulo, SP
View GitHub Profile
nodejs 19.8.1
python 3.11.3
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes

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:

@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]
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"
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"}
#!/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 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(-)
# 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"]
[user]
name = Paulo Ouverney
email = ph.ouverney@gmail.com
[core]
editor = gedit
autocrlf = input
[credential]
helper = cache --timeout 7200