This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Provinces = { | |
"آذربایجان شرقى": "Eastern Azarbayjan", | |
"آذرباىجان غربى": "Western Azarbayjan", | |
"اردبیل": "Ardebil", | |
"اصفهان": "Isfahan", | |
"البرز": "Alborz", | |
"ایلام": "Ilam", | |
"بوشهر": "Bousher", | |
"تهران": "Tehran", | |
"چهارمحال و بختیارى": "Chahar Mahal o Bakhtiari", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################ | |
apt | |
################################ | |
________________ | |
< hello dear > | |
---------------- | |
\ (__) | |
(oo) | |
/------\/ | |
/ | || |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
209.244.0.3 | |
209.244.0.4 | |
64.6.64.6 | |
64.6.65.6 | |
8.8.8.8 | |
8.8.4.4 | |
9.9.9.9 | |
149.112.112.112 | |
84.200.69.80 | |
84.200.70.40 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
set -o nounset | |
set -o errexit | |
sanitize () { | |
sed 's/[^[:print:]]//g' | xargs | |
} | |
error_no=$(mysql -uroot -proot --database smcli --execute 'show slave status\G' | grep 'Last_SQL_Errno:' | awk -F: '{print $2}' | sanitize) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def check(code): | |
"""This is the python version of the javascript function from `https://www.samanese.ir/checknin` | |
for validating iranian national code | |
function validateNIN(snin) { | |
// if string nin length is less than 10 character | |
if (snin.length < 10) { | |
// wrong nin | |
return false; |