Skip to content

Instantly share code, notes, and snippets.

View charliesolomon's full-sized avatar
😎

Charlie Solomon charliesolomon

😎
View GitHub Profile
wmic bios get serialnumber
# Install Chocolatey package manager:
Set-ExecutionPolicy AllSigned
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
# Install Google Chrome browser:
choco install -y googlechrome
# Install SetDefaultBrowser utility:
@charliesolomon
charliesolomon / life-version.py
Last active January 1, 2020 18:29
Compute a version number for your life. Example, 25 years, 9 weeks = v35.9
from datetime import date
from datetime import datetime
import argparse
import calendar
# Hard coded birthdate!!
birthDate = date(1994, 1, 17)
# Look for --date (-d) argument (date to compute age, default is current date)
ap = argparse.ArgumentParser()