Skip to content

Instantly share code, notes, and snippets.

View dhyegocalota's full-sized avatar
🎯
I build results through Software Engineering.

Dhyego Calota dhyegocalota

🎯
I build results through Software Engineering.
View GitHub Profile
@dhyegocalota
dhyegocalota / prompt.md
Created August 13, 2026 19:53
13/08/2026 | Instagram: Prompt Plano de Teste com MCP Playwright

Você é especialista em verificação de software com agente: montar o ambiente onde a IA prova o que entregou antes de dizer que terminou.

Regra de ouro: você nunca marca check em item que você mesmo executou. Sem prova crua colada, o item continua aberto. Mock não conta como prova.

FASE 1, PLANO DE TESTE COMPLETO Antes de escrever qualquer código, escreva docs/prd//test-plan.md cobrindo:

  • todo fluxo do usuário, passo a passo, com o resultado esperado de cada passo
  • as funcionalidades óbvias e principalmente as NÃO óbvias: estado de carregamento, mensagem de erro visível pro usuário, foco e teclado, recarregar no meio do fluxo, voltar do navegador, clique duplo, e tudo que já existia e não pode quebrar
  • os edge cases: campo vazio, valor zero, valor negativo, texto onde espera número, lista vazia, item duplicado, sessão expirada, rede lenta, resposta de erro da API Cada item vira uma linha com caixa de check e um id curto. Se você não conseguir imaginar como aquele item quebra, ele ainda não está be
@dhyegocalota
dhyegocalota / alibaba-vendor.md
Created November 29, 2024 16:25 — forked from emilio-martinez/alibaba-vendor.md
Topin 365GPS Server config

365GPS office address Contact: Erik Liu Address: 505 Block B, Donglian Building, Chuangye Second Road, Baoan District, Shenzhen, Guangdong, China(广东省深圳市宝安区创业二路东联大厦B座505,洪浪北地铁站旁) Mobile/ wechat/ whatsapp: +86-13480999031
Alibaba: 365gps.en.alibaba.com Skype: topin.sales
E-mail: topin.sales3@qq.com

============================================================= Hi

@dhyegocalota
dhyegocalota / tracking-codes.html
Last active January 8, 2024 19:21
2024.01.03 | Snapshot | Tracking Codes of ThriftyTraveler.com/Premium
<html>
<head>
<!-- Start of Google 1 -->
<script>
(function (w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({ "gtm.start": new Date().getTime(), event: "gtm.js" });
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != "dataLayer" ? "&l=" + l : "";
@dhyegocalota
dhyegocalota / Webhook | Draft Orders Update | Total of Requests | 300.txt
Last active September 1, 2022 22:23
2022.08.23 | Load Test | Shopify Webhook Endpoints
{
"version": 1,
"variables": [
{
"names": [
"shopify_request_payload_hmac_sha256",
"shopify_draft_order_id",
"shopify_order_id"
],
"values": [
@dhyegocalota
dhyegocalota / folder_structure.txt
Created March 11, 2019 19:26
DevMT Members Sample
.
├── README.md
├── app.json
├── package.json
├── public
│   ├── favicon.ico
│   ├── index.html
│   └── manifest.json
├── src
│   ├── Config.js
console.log(JSON.stringify(Object.values(Array.from(document.querySelectorAll('table:nth-child(2) tbody tr')).filter((x, i) => i > 2).map(x => ({ code: x.querySelector('td:nth-child(1)').innerText.trim(), name: x.querySelector('td:nth-child(2)').innerText.trim() })).filter(x => x.code.length).reduce((acc, x) => { acc[x.code] = x; return acc }, {})), null, 2));
@dhyegocalota
dhyegocalota / highligh.sh
Created May 6, 2017 14:06
Syntax Highlight
# Custom functions
function light() {
if [ -z "$2" ]
then src="pbpaste"
else
src="cat $2"
fi
$src | highlight -O rtf --syntax $1 --style solarized-light --font-size 18 | pbcopy
}
@dhyegocalota
dhyegocalota / picker.js
Created April 18, 2017 20:51
[React Native] Picker for Native Base + React Native Navigation (by Wix)
// @flow
import React, { Component } from 'react';
import {
connectStyle,
Container,
Content,
ListItem,
Text,
Radio,
@dhyegocalota
dhyegocalota / hackaflag.js
Created March 19, 2017 21:01
[Hackflag] Web server
var wrongContent = 'nadaaquinadaaquinadaaquinadaaquinadaaquinadaaquinadaaquinadaaquinadaaquinadaaquinadaaquinadaaquinadaaquinadaaquinadaaquinadaaquinadaaquinadaanadanadaaaannaannaanndnna';
var filesToTest = Array.from(document.querySelectorAll('td a')).filter(x => x.href.match(/\.php$/));
const testContent = (file) => {
return (response) => {
response.text()
.then(text => {
if (text.trim() != wrongContent) {
console.log(`O arquivo '${file.href}' tem o content: '${text}'`);
@dhyegocalota
dhyegocalota / migrate.sh
Created September 16, 2016 13:09
imapsync
#!/bin/sh
error() { echo "$@" 1>&2; }
file=$1
if [ -z $file ]; then
error "Usage \`./migrate credentials.txt\`"
exit 1
fi