Skip to content

Instantly share code, notes, and snippets.

View Alababdiy's full-sized avatar

Muli-Users Alababdiy

View GitHub Profile
@Alababdiy
Alababdiy / plate translation
Created May 31, 2020 17:50
plate translation
def english_plat(number: str, chars: str):
# https://en.wikipedia.org/wiki/Vehicle_registration_plates_of_Saudi_Arabia
numbers_map = {
'١': '1', '٢': '2', '٣': '3',
'٤': '4', '٥': '5', '٦': '6',
'٧': '7', '٨': '8', '٩': '9',
'٠': '0',
}
for k, v in numbers_map.items():
number = re.sub(k, v, number)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
LANG=en_US.UTF-8
panelPort="7800"
if [ $(whoami) != "root" ]; then
echo "Please use the [root] user to execute the aapanel installation script!"
exit 1
fi