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
#!/usr/bin/env bash | |
# | |
# HOW TO: | |
# curl -fSs https://gist.githubusercontent.com/kallookoo/09df0bb28aa3c7927fb40c474923a411/raw/systemd-hgfs.sh | sudo bash | |
# | |
# INFO: | |
# https://knowledge.broadcom.com/external/article/316336/enabling-hgfs-shared-folders-on-fusion-o.html | |
if [[ "$(id -u)" -ne "0" ]]; then | |
echo "This script must be run as root, please run this script again with the root user or sudo." |
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
#!/usr/bin/env python3 | |
import re | |
import argparse | |
import shutil | |
from pathlib import Path | |
def split_escaped(s, delimiter): | |
"""Split a string by a delimiter, ignoring escaped delimiters.""" | |
parts = [] |
OlderNewer