Skip to content

Instantly share code, notes, and snippets.

View mahdizojaji's full-sized avatar
:octocat:

Mahdi Zojaji mahdizojaji

:octocat:
View GitHub Profile
@mahdizojaji
mahdizojaji / disable-keyborad.desktop
Created March 10, 2024 07:13
Disable specific keyboard
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Name=Clavier ON-OFF
Exec=bash disable-keyborad.sh
Path=/home/mahdi/Music/
NoDisplay=false
Categories=Utility;
StartupNotify=false
@mahdizojaji
mahdizojaji / README.md
Last active August 23, 2024 09:42
buynow paid calculator
@mahdizojaji
mahdizojaji / README.md
Last active August 23, 2024 10:17
Gitlab CE self hosted

Gitlab CE self hosted

@mahdizojaji
mahdizojaji / README.md
Last active August 23, 2024 10:19
Generate captcha image

Captcha image generator

@mahdizojaji
mahdizojaji / movie_finder.py
Created October 21, 2019 12:18
find movie
from requests import get
from bs4 import BeautifulSoup
from re import search
def get_all_urls():
urls = [
'http://dl8.sabadl.xyz/ali/',
'http://dl8.sabadl.xyz/ali/1/',
'http://dl8.sabadl.xyz/ali/2/',
@mahdizojaji
mahdizojaji / README.md
Last active April 15, 2021 23:12
delete self messages

Delete all self messages (when user not admin of telegram group) [with pyrogram]

  • Requirements:

    1. pip3 install pyrogram
    2. pip3 install -U pyrogram[fast]
  • Usag:

    1. Get your api-id & api-hash then Insert these on Client parameters.
    2. Enter command python3 delete_self_msg.py (if your region has limited: torsocks python3 delete_self_msg.py)
  • Community:

#!/usr/bin/python2
import requests
import os
import sys
import random
import string
FILTERS = [
"smile",
"smile_2",
@mahdizojaji
mahdizojaji / CheckPayment.py
Created September 2, 2018 21:36
چک کردن تراکنش کارت به کارت بانک ملی
# trans_id -> شماره ارجاع یا پیگیری
# card -> چهار رقم آخر شماره کارت بانکی
# amount -> مبلغ تراکنش به ریال
# با تغییر در کد میتوانید کلیه تراکنش هارو چک کنید. ولی این فقط برای تراکنش های ورودی کارت به کارت هستش
def check_payment(trans_id, card, amount):
login_url = 'https://my.bmi.ir/portalserver/j_spring_security_check'
headers = {'Content-Type': 'application/x-www-form-urlencoded', 'Accept': 'application/json'}
username = ''