Skip to content

Instantly share code, notes, and snippets.

View mtovmassian's full-sized avatar

Martin Tovmassian mtovmassian

View GitHub Profile
@mtovmassian
mtovmassian / clock.py
Created December 8, 2020 08:46
Continuous display of time
#!/usr/bin/python3
from datetime import datetime
from time import sleep
while True:
time_ = datetime.now().strftime("%H:%M:%S:%f")[:-3]
print(f"\r{time_}", end="")
sleep(0.1)
@mtovmassian
mtovmassian / sign-vmware-vmmon-vmnet.sh
Created December 8, 2020 08:42
VMware drivers, such as vmmon and vmnet, are not able to be loaded if not signed before (this is likely to happen after update). This script helps to automaticly sign vmon and vmnet drivers.
#!/usr/bin/env bash
main() {
today_date=$(date +%Y%m%d)
key_filename="VMWARE${today_date}.priv"
cert_filename="VMWARE${today_date}.der"
openssl req -new -x509 -newkey rsa:2048 -keyout "${key_filename}" -outform DER -out "${cert_filename}" -nodes -days 36500 -subj "/CN=VMWARE/"