Last active
January 5, 2022 17:26
-
-
Save baseplate-admin/cfd4d76f91c39ed74aeebadef6e0325d to your computer and use it in GitHub Desktop.
Revisions
-
baseplate-admin revised this gist
Jan 5, 2022 . 1 changed file with 0 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -5,11 +5,6 @@ from io import BytesIO # Python 3 import zipfile,base64,os,shutil FONT_FILE = f'{os.getcwd()}/Kohinoor Bangla/' USER_SHARE_FONT = '/usr/share/fonts/' -
baseplate-admin revised this gist
Jan 5, 2022 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -6,9 +6,8 @@ import zipfile,base64,os,shutil from pathlib import Path os.chdir(os.path.join(Path.home(), "Downloads")) FONT_FILE = f'{os.getcwd()}/Kohinoor Bangla/' -
baseplate-admin revised this gist
Jan 5, 2022 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -5,6 +5,12 @@ from io import BytesIO # Python 3 import zipfile,base64,os,shutil from pathlib import Path downloads_path = str(Path.home() / "Downloads") os.chdir(downloads_path) FONT_FILE = f'{os.getcwd()}/Kohinoor Bangla/' USER_SHARE_FONT = '/usr/share/fonts/' -
baseplate-admin revised this gist
Jan 5, 2022 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -15,7 +15,7 @@ pass try: shutil.rmtree('/usr/share/fonts/Kohinoor Bangla') except: pass @@ -27,3 +27,4 @@ zipfile_ob.extractall(os.getcwd()) shutil.move(FONT_FILE,USER_SHARE_FONT) -
baseplate-admin revised this gist
Jan 5, 2022 . 1 changed file with 6 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -10,12 +10,17 @@ try: shutil.rmtree(FONT_FILE) except: pass try: shutil.rmtree(f'{USER_SHARE_FONT}/Kohinoor Bangla/') except: pass in_memory_object = BytesIO(base64.b64decode(BASE64_FONT_ZIP)) zipfile_ob = zipfile.ZipFile(in_memory_object) -
baseplate-admin created this gist
Jan 5, 2022 .There are no files selected for viewing