Skip to content

Instantly share code, notes, and snippets.

View BHushanRathod's full-sized avatar

BHushan Rathod BHushanRathod

  • Pune
View GitHub Profile
apiVersion: v1
kind: Pod
metadata:
name: memory-demo
namespace: mem-example
spec:
containers:
- name: memory-demo-ctr
image: polinux/stress
resources:
from bs4 import BeautifulSoup
from selenium import webdriver
import random
import time
file1 = open("Hotel_List.txt", "w")
headers = {
'Accept': 'text/javascript, text/html, application/xml, text/xml, */*',
@BHushanRathod
BHushanRathod / paranthesis_check.py
Last active May 23, 2020 14:00
Python code to check the balanced paranthesis
def check_paranthesis(expression):
para_list = []
is_paranthesis = True
paradict = dict()
paradict.update({')': '(', '}': '{', ']': '['})
opening = ['(', '{', '[']
closing = [')', '}', ']']
#!/usr/bin/env python
import os, random, sys, hashlib, struct, thread, socket
from pyftpdlib.authorizers import DummyAuthorizer
from pyftpdlib.handlers import FTPHandler
from pyftpdlib.servers import FTPServer
from Crypto.Cipher import AES
from Crypto.PublicKey import RSA
from Crypto.Cipher import PKCS1_OAEP