Skip to content

Instantly share code, notes, and snippets.

View endersonmenezes's full-sized avatar
:octocat:
Focusing

Enderson Menezes (Mr. Enderson) endersonmenezes

:octocat:
Focusing
View GitHub Profile
@endersonmenezes
endersonmenezes / bruteforce.py
Last active August 23, 2019 21:53
Brute Force Discont for TicNova
# Copyright (c) 2018. Enderson Menezes Cândido [www.endersonmenezes.com.br]
# Your console will display a list of available discount coupons.
# Do not use this code to gain advantage or illegally enter the event.
# Code just to demonstrate that creating discount coupons in sympla using simple word combinations can be hacked.
# This gist serves to show how social engineering be taken care of by event organizations.
# To event organizers please create discount coupon processes and tracking processes.
# Working Since 2018
import requests
import itertools
@endersonmenezes
endersonmenezes / 0listas.gif
Last active February 14, 2023 19:02
I really like lists!
0listas.gif
@endersonmenezes
endersonmenezes / views.py
Created April 24, 2019 12:17
Django - Cursor MongoDB to Pandas DataFrame
import pymongo
import pandas as pd
from pymongo import MongoClient
def test_view(request):
client = MongoClient('Mongo URI') # Conexão ao Banco
db = client['database_name'] # Seleção de Banco de Dados
test = db.test # Seleção da Coleção de Dados
test = pd.DataFrame(list(test.find())) #Consulta tudo na Coleção -> Lista (python) -> DataFrame (pandas)
@endersonmenezes
endersonmenezes / forms.py
Last active April 24, 2019 12:18
Django Forms with Args making query in model
# Enderson Menezes
# Django Brasil
# 05/04/2019
# Django 2.2
from django import forms
from .models import CadastroSubEntidades
# Declare your form
class EscalarOcorrenciaRespForm(forms.Form):