This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Origal Soruce: https://gist.github.com/Lazza/bbc15561b65c16db8ca8 | |
"""Pick server and start connection with VPNGate (http://www.vpngate.net/en/)""" | |
import requests, os, sys, tempfile, subprocess, base64, time | |
__author__ = "Andrea Lazzarotto" | |
__copyright__ = "Copyright 2014+, Andrea Lazzarotto" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with open('urls.txt','w') as f: | |
for i in range(1000_000): | |
f.write('https://example.com'+'\n') | |
from urllib.parse import urlparse | |
from threading import Thread | |
import http.client, sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import threading | |
from time import sleep | |
from threading import Thread | |
def doSleep(): | |
sleep(300) | |
i = 0 | |
while True: | |
i += 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Reuire More than 12 GB ram to process all the request.. | |
''' | |
import asyncio | |
from aiohttp import ClientSession | |
import nest_asyncio | |
nest_asyncio.apply() | |
async def hello(url): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import nest_asyncio | |
nest_asyncio.apply() | |
async def task(batch_no,roll_no): | |
return batch_no,roll_no | |
async def batch_creator(batch_no): | |
result = [] | |
for roll_no in range(BATCH_SIZE): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def generate_sequence(stop_arr): | |
arr_for_combination = [] | |
arr = [] | |
max_iteration = 1 | |
for one_stop in stop_arr: | |
arr.append(0) | |
max_iteration *= one_stop + 1 | |
max_iteration_copy = max_iteration | |
max_iteration = int(max_iteration / len(arr) + 1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
from selenium.webdriver.chrome.options import Options | |
CHROME_PATH = '/usr/bin/google-chrome' | |
CHROMEDRIVER_PATH = './chromedriver' | |
url = 'https://google.com' | |
chrome_options = Options() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: utf-8 | |
# In[1]: | |
get_ipython().system('python -m pip install dask[dataframe] --upgrade') | |
get_ipython().system('python -m pip install Flask') | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from itertools import permutations | |
password = [ | |
'rahul', | |
'kumar', | |
'rina', | |
'kumari', | |
'2001', | |
'2001', | |
'loves' |
OlderNewer