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 |
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/python3 | |
import os | |
russianToPolishMap = { | |
"а": "a", | |
"б": "b", | |
"в": "w", | |
"г": "g", | |
"д": "d", | |
"е": "ie", |
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": "э", | |
"ę": "ѫ", | |
"f": "ф", |