Skip to content

Instantly share code, notes, and snippets.

View sae13's full-sized avatar

Saeb sae13

View GitHub Profile
http://cdnmaktab.takhtesefid.org/videos/hq271221413905.mp4?name=hq-rkhosravi-ap-1.mp4
http://cdnmaktab.takhtesefid.org/videos/hq986686135896.mp4?name=hq-rkhosravi-ap-2.mp4
http://cdnmaktab.takhtesefid.org/videos/hq209596017493.mp4?name=hq-rkhosravi-ap-3.mp4
http://cdnmaktab.takhtesefid.org/videos/hq226782908736.mp4?name=hq-rkhosravi-ap-4.mp4
http://cdnmaktab.takhtesefid.org/videos/hq294023206931.mp4?name=hq-rkhosravi-ap-5.mp4
http://cdnmaktab.takhtesefid.org/videos/hq155880155825.mp4?name=hq-rkhosravi-ap-6.mp4
http://cdnmaktab.takhtesefid.org/videos/hq959790170274.mp4?name=hq-rkhosravi-ap-7.mp4
http://cdnmaktab.takhtesefid.org/videos/hq0150971132681.mp4?name=hq-rkhosravi-ap-8.mp4
http://cdnmaktab.takhtesefid.org/videos/hq987265172815.mp4?name=hq-rkhosravi-ap-9.mp4
http://cdnmaktab.takhtesefid.org/videos/hq111775140958.mp4?name=hq-rkhosravi-ap-10.mp4
@sae13
sae13 / ohmyzsh
Last active April 17, 2017 03:39
main() {
# Use colors, but only if connected to a terminal, and that terminal
# supports them.
if which tput >/dev/null 2>&1; then
ncolors=$(tput colors)
fi
if [ -t 1 ] && [ -n "$ncolors" ] && [ "$ncolors" -ge 8 ]; then
RED="$(tput setaf 1)"
GREEN="$(tput setaf 2)"
YELLOW="$(tput setaf 3)"
@sae13
sae13 / passwdrobot.py
Last active June 12, 2017 20:50
Telegram bot for generating password. http://t.me/passwdrobot
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Simple Bot to reply to Telegram messages. This is built on the API wrapper, see
# echobot2.py to see the same example built on the telegram.ext bot framework.
# This program is dedicated to the public domain under the CC0 license.
import logging
import telegram
from telegram.error import NetworkError, Unauthorized
from time import sleep
@sae13
sae13 / bitlybot.py
Last active June 14, 2017 07:39
a telegram bot for making long url short
import urllib.parse, urllib.request
import telegram
import logging
from telegram.error import NetworkError, Unauthorized
from time import sleep
from khayyam import JalaliDatetime
import validators
import json
update_id = None
bot_started = JalaliDatetime.now()
@sae13
sae13 / apkdlbot.py
Created November 11, 2017 12:07
a bot for deleting android applications which sent to telegram messenger groups
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from telegram.ext import (Updater, CommandHandler, MessageHandler, Filters)
import logging
group_admins = {}
# Enable logging
logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
level=logging.INFO)
#!/usr/bin/env python3
from subprocess import run, getoutput
from time import sleep
from pytg.sender import Sender
dlDir = "/tmp/es6/dl"
sentDir = "/tmp/es6/sent"
sender = Sender('localhost',6670)
to = "$050000007d208f3f0115b300fb607ab4"
ls = getoutput('find {} -name "*.*"'.format(dlDir)).splitlines()
@sae13
sae13 / bestoon-jadi-Download-link
Last active May 19, 2018 06:07
توضیحات توی وبسایت کیبرد آزاد http://jadi.net/tag/%d8%a8%d8%b3%d8%aa%d9%88%d9%86/
@sae13
sae13 / JobRunOnce.py
Created June 1, 2018 13:05
python-telegram-bot job run_once example
from telegram.ext import Updater, Dispatcher, Job, CommandHandler
import logging
# Enable logging
logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
level=logging.INFO)
logger = logging.getLogger(__name__)
def error(bot, update, error):
"""Log Errors caused by Updates."""
@sae13
sae13 / fontStyle.css
Last active November 10, 2018 21:42
@font-face {
font-family: Sahel;
src: url('https://cdn.rawgit.com/rastikerdar/sahel-font/5d124266/dist/Farsi-Digits/Sahel-FD.eot');
src: url('https://cdn.rawgit.com/rastikerdar/sahel-font/5d124266/dist/Farsi-Digits/Sahel-FD.eot?#iefix') format('embedded-opentype'),
url('https://cdn.rawgit.com/rastikerdar/sahel-font/5d124266/dist/Farsi-Digits/Sahel-FD.woff') format('woff'),
url('https://cdn.rawgit.com/rastikerdar/sahel-font/5d124266/dist/Farsi-Digits/Sahel-FD.ttf') format('truetype');
font-weight: normal;
}
@font-face {
@font-face {
font-family: Vazir;
src: url('https://cdn.rawgit.com/rastikerdar/vazir-font/v8.2.1/dist/Vazir.woff') format('woff');
}
@font-face {
font-family: Samim;
src: url('https://cdn.rawgit.com/rastikerdar/samim-font/v1.0.2/dist/Samim.woff') format('woff');
}