(coming soon)
- on raspberry pi 4 the default hdmi1 is actually set as PLUGHW setting in the audio card in the interface hdmi2 is SYSDEFAULT
#!/bin/bash | |
## note: change version to whatever comes back for softwareupdate --list-full-installers | |
softwareupdate --fetch-full-installer --full-installer-version 12.4 | |
## create tmp drive | |
hdiutil create -o /tmp/MacMonterey -size 12500m -volname MacMonterey -layout SPUD -fs HFS+J | |
## mount it | |
hdiutil attach /tmp/MacMonterey.dmg -noverify -mountpoint /Volumes/MacMonterey | |
## install to volume | |
sudo /Applications/Install\ macOS\ Monterey.app/Contents/Resources/createinstallmedia --volume /Volumes/MacMonterey --nointeraction |
According to this article: https://kb.parallels.com/en/128842 | |
create a config.ini and add to the package folder then run. |
def package_tar(configpath="~/MATERIALS/", filename="compressed.zip") -> None: | |
"""zips up the container tars | |
Args: | |
configpath (str, optional): _description_. Defaults to "~/MATERIALS/". | |
filename (str, optional): _description_. Defaults to "compressed.zip". | |
""" | |
import zipfile | |
import shutil | |
input_dir = Path(configpath) |
import re | |
class IsIPv4Address: | |
# noinspection PyPep8Naming | |
@classmethod | |
def is_IPv4_address(cls, input_str: str) -> bool: | |
pattern = r"\b((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\.|$)){4}\b" | |
if re.fullmatch(pattern, input_str): | |
return True |
4r5e | |
5h1t | |
5hit | |
a55 | |
anal | |
anus | |
ar5e | |
arrse | |
arse | |
ass |
def greedyphoneparse(basetext="I can haz phone number? +14126723436") -> list(): | |
"""Very flexible phone number parser that does not require country code. | |
Args: | |
basetext (string, optional): The text to parse. | |
Defaults to "I can haz phone number? +14126723436". | |
Returns: | |
list: List of phonenumbers found or empty list. | |
""" |
ip a | grep eth0 | cut -d " " --fields=6 | sed '2q;d' | awk -F'/' '{print $1}' | |
# curl -L https://cutt.ly/UUYcT1r | /bin/bash |
wget https://dl.minio.io/server/minio/release/linux-amd64/minio | |
chmod +x minio | |
sudo ./minio server /minio | |
wget https://dl.minio.io/client/mc/release/linux-amd64/mc | |
chmod +x mc | |
./mc config host add minio http://127.0.0.1:9000 Access_key Secret_key | |
sudo ln -s /home/jc/Downloads/mc /usr/bin/mc | |
sudo ln -s /home/jc/Downloads/minio /usr/bin/minio | |
#### create systemd minio #### |