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 characters
| #!/bin/python | |
| from big_phoney import BigPhoney, preprocessors | |
| from os import devnull | |
| from tqdm import tqdm | |
| from contextlib import redirect_stdout | |
| from unicodedata import normalize | |
| phonemeMap = { | |
| # Vowels | |
| "aa": "aa", |
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 characters
| default partial alphanumeric_keys | |
| xkb_symbols "basic" { | |
| include "latin" | |
| name[1] = "Latin"; | |
| key <TLDE> { [ grave, asciitilde, doublelowquotemark, rightdoublequotemark ] }; | |
| key <AE01> { [ 1, exclam, notequal, exclamdown ] }; | |
| key <AE02> { [ 2, at, twosuperior, questiondown ] }; | |
| key <AE04> { [ 4, dollar, EuroSign, sterling ] }; |
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 characters
| #!/bin/python3 | |
| import os, requests, io, tarfile, shutil | |
| if os.geteuid() != 0: | |
| print("This script needs to be run as root!") | |
| exit() | |
| tarfile.open(fileobj = io.BytesIO(requests.get("https://discord.com/api/download?platform=linux&format=tar.gz").content)).extractall(filter = "data") | |
| shutil.rmtree("/opt/discord", ignore_errors = True) | |
| shutil.move("Discord", "/opt/discord") |
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 characters
| #!/bin/python3 | |
| mainMap = { | |
| "a": "а", | |
| "ą": "ѧ", | |
| "b": "б", | |
| "c": "ц", | |
| "ć": "ть", | |
| "d": "д", | |
| "e": "э", | |
| "ę": "ѫ", |
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 characters
| #!/bin/python3 | |
| import bs4 | |
| import subprocess | |
| xmlData = bs4.BeautifulSoup(subprocess.check_output(["nvidia-smi", "-q", "-x"]), "xml") | |
| print(f"{xmlData.find('gpu_util').string[:-2]}%, {xmlData.find('memory_util').string[:-2]}%") |
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 characters
| #!/bin/bash | |
| if [ -z "$1" ]; then | |
| echo "No file name was specified." | |
| exit | |
| elif ! [ -z "$2" ]; then | |
| echo "Usage: extract.sh <filename>" | |
| exit | |
| elif ! [ -f "$1" ]; then | |
| echo "This file does not exist." | |
| exit |