Skip to content

Instantly share code, notes, and snippets.

View MayankFawkes's full-sized avatar
🎓
Open to work on github projects

Mayank Gupta MayankFawkes

🎓
Open to work on github projects
View GitHub Profile
@MayankFawkes
MayankFawkes / voice_recognition.py
Created October 1, 2019 20:00
lets talk with your program script for voice recognition
#!/usr/bin/env python
# encoding=utf-8
# pip install pyaudio and pip install SpeechRecognition
import speech_recognition as sr
r = sr.Recognizer()
with sr.Microphone() as source:
print("Speak Anything :")
audio = r.listen(source)
try:
@MayankFawkes
MayankFawkes / decoder.py
Created October 1, 2019 20:07
best way to use decoders
import threading
import time
from functools import wraps
def thread(printd):
def wrapper(function):
def pw(*args, **kwargs):
def process(*args, **kwargs):
print("Started")
function(*args, **kwargs)
t=threading.Thread(target=process,args=args, kwargs=kwargs)
from time import ctime,sleep
while True:
print(ctime(),end="\r")
sleep(0.1)
@MayankFawkes
MayankFawkes / leetcode.py
Created October 29, 2019 08:24
Run your code somewhere else.
code='''
import hashlib
result = hashlib.sha256(b"Password")
print("The byte equivalent of hash is : ", end ="")
print(result.hexdigest())
'''
import requests
from time import sleep
data={"lang":"python3","typed_code":str(code[1:-1].replace('"','\"').replace("'","\'")),"data_input":"[1, 2, 3]"}
url="https://leetcode.com/playground/api/runcode"
#!/usr/bin/env python
import requests
def upload(filename):
URL = "http://api.anonfile.com/upload"
with open(filename) as f:
r = requests.post(url=URL, files={'file': f})
print(r.json())
def info(id):
URL="https://api.anonfile.com/v2/file/{id}/info".format(id=id)
r = requests.get(url=URL)
import time
import random
import ctypes
import platform
if platform.system() == 'Windows':
kernel32 = ctypes.windll.kernel32
kernel32.SetConsoleMode(kernel32.GetStdHandle(-11), 7)
col=[30,31,32,33,34,35,36,37,38,39,90,91,92,93,94,95,96,97]
while True:
print('\033[{}m{}\033[0m'.format(random.choice(col),time.ctime()),end="\r")
import requests,re
pinid="116671446577537458"
print(["https://i.pinimg.com/originals/"+n for n in re.findall('"url":"https://i.pinimg.com/originals/(.*?)"',str(re.findall('<script id="initial-state" type="application/json">(.*?)</script>',requests.get("https://www.pinterest.com/pin/{}/".format(pinid)).text)[0]))][0])
import requests,re
pinid="116671446577537458"
html=requests.get("https://www.pinterest.com/pin/{}/".format(pinid)).text
ok=str(re.findall('<script id="initial-state" type="application/json">(.*?)</script>',html)[0])
data=["https://i.pinimg.com/originals/"+n for n in re.findall('"url":"https://i.pinimg.com/originals/(.*?)"',ok)][0]
print(data)
@MayankFawkes
MayankFawkes / PornServer.py
Last active August 13, 2024 08:15
Its a clone of xnxx.com
# -*- coding: utf-8 -*-
__author__ = 'Mayank Gupta'
__version__ = '1.0P1'
__license__ = 'License :: MIT License'
import socket
import threading,ssl
import re
class porn():
'''
Credit : https://temp-mail.io/en
'''
__author__='Mayank Gupta'
import requests
from time import sleep
class TempMail(object):
def __init__(self):
self.Handle()
def Handle(self):