Skip to content

Instantly share code, notes, and snippets.

View phillymjs's full-sized avatar

Michael Stango phillymjs

  • Philadelphia, PA
  • 06:23 (UTC -05:00)
  • X @PhillyMJS
View GitHub Profile
@gerwin3
gerwin3 / make-vcard.py
Created January 23, 2021 16:16
Generate vCard using Python
"""
This little script can generate a valid .vcf (vCard). It will ask you to fill
in some details and write the vcf-file.
"""
def main():
print('Please enter contact details:')
first_name = input(' - First name : ')
last_name = input(' - Last name : ')
email = input(' - E-mail address : ')
@talkingmoose
talkingmoose / Match Version Number or Higher.bash
Last active September 25, 2025 18:19
Generates a regular expression (regex) that matches the provided version number or higher. Useful for Jamf Pro's "matches regex" operator in searches and smart groups where the results need to be the current version of an app or higher.
#!/bin/bash
<<ABOUT_THIS_SCRIPT
-------------------------------------------------------------------------------
Written by:William Smith
Professional Services Engineer
Jamf
[email protected]
https://gist.github.com/2cf20236e665fcd7ec41311d50c89c0e