Skip to content

Instantly share code, notes, and snippets.

View sae13's full-sized avatar

Saeb sae13

View GitHub Profile
@sae13
sae13 / SubtitleFIX
Last active September 22, 2019 04:19
Fix Subtitle encoding to UTF-8
#!/bin/bash
fullPATH=$1
echo $fullPATH >/tmp/subtitleFIX.log
encode=`file -ib $fullPATH|cut -d= -f 2`
echo "encode is : "$encode >>/tmp/subtitleFIX.log
if [ "$encode" == 'unknown-8bit' ];then
encode="WINDOWS-1256"
elif [ "$encode" == "utf-8" ];then
notify-send "فایل مشکلی نداره"
exit
@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 / 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/
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 / 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()
@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');
}
@sae13
sae13 / rastikerdar-fonts.sh
Last active November 30, 2018 18:04
Download and install Saber rastikerdar fonts in Linux Distros
#!/bin/bash
#Myblog: http://sae13.ir
#Saber RastikerdarBlog: https://rastikerdar.blog.ir/
which unzip >/dev/null 2>&1
if [ $? -ne 0 ];then
echo "You Need Install unzip package"
exit
fi
which wget >/dev/null 2>&1
if [ $? -ne 0 ];then
@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)
@sae13
sae13 / style.css
Last active October 26, 2020 12:27
Vazir shabnam sahel css
@font-face {
font-family: Vazir;
src: url('https://cdn.rawgit.com/rastikerdar/vazir-font/3fce13ac/dist/Vazir.eot');
src: url('https://cdn.rawgit.com/rastikerdar/vazir-font/3fce13ac/dist/Vazir.eot?#iefix') format('embedded-opentype'),
url('https://cdn.rawgit.com/rastikerdar/vazir-font/3fce13ac/dist/Vazir.woff2') format('woff2'),
url('https://cdn.rawgit.com/rastikerdar/vazir-font/3fce13ac/dist/Vazir.woff') format('woff'),
url('https://cdn.rawgit.com/rastikerdar/vazir-font/3fce13ac/dist/Vazir.ttf') format('truetype');
font-weight: normal;
}