Skip to content

Instantly share code, notes, and snippets.

View saumiko's full-sized avatar
🤘
BOOM!

Asif Mohaimen saumiko

🤘
BOOM!
View GitHub Profile
version: '3'
services:
master:
image: locustio/locust
ports:
- "8089:8089"
volumes:
- ./:/mnt/locust
command: -f /mnt/locust/locustfile.py --master -H http://master:8089
import random
from locust import HttpUser, task, between
class WebsiteUser(HttpUser):
wait_time = between(5, 9)
@task(2)
def index(self):
self.client.get("/")
self.client.get("/ajax-notifications/")

Keybase proof

I hereby claim:

  • I am saumiko on github.
  • I am saumiko (https://keybase.io/saumiko) on keybase.
  • I have a public key whose fingerprint is 87F4 3D88 6F65 127F AE22 269A 29BA 8C5F 7CFA 1A10

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am saumiko on github.
  • I am saumiko (https://keybase.io/saumiko) on keybase.
  • I have a public key ASC5RcsT_b-BUqiTbGJsfXSAIwyWbEBRVaLFa0sGTiEz0go

To claim this, I am signing this object:

def dicEncoder(d):
stringed = ''
for key, value in d.items():
stringed += value
hash_object = hashlib.sha1(stringed.encode())
hex_dig = hash_object.hexdigest()
return hex_dig
@saumiko
saumiko / CaesarCipher.py
Created July 23, 2019 05:12
Caesar Cipher in Python
import string
def gen_dic(key):
cap_map = {}
small_map = {}
cap_shift = list(string.ascii_uppercase)
small_shift = list(string.ascii_lowercase)
cap_append = cap_shift[:key]
small_append = small_shift[:key]