Skip to content

Instantly share code, notes, and snippets.

View mehanalavimajd's full-sized avatar
🐧
Linux

mehan alavimajd mehanalavimajd

🐧
Linux
  • Tehran
View GitHub Profile
from random import randint
import requests as r
def rand (num):
string = ""
for i in range(num):
string += str(randint(0,9))
return string
num = rand(7)
headers = {
'User-Agent': 'Mozilla/5.0 (Linux; Android 12; SM-S906N Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/80.0.3987.119 Mobile Safari/537.36',
import requests as r
x = r.post("https://api.divar.ir/v5/auth/authenticate", json={"phone":"NUMBER_IN_STRING"})
print(x.text)
@mehanalavimajd
mehanalavimajd / kill.sh
Created July 16, 2022 11:09
Bash script to kill node js
#!/bin/bash
alias nodekill="sudo killall -9 node"
# add this to your .bashrc
# then restart terminal
# And use killall