Skip to content

Instantly share code, notes, and snippets.

Lewis Lebentz LewisLebentz

Block or report user

Report or block LewisLebentz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am lewislebentz on github.
  • I am lewislebentz ( on keybase.
  • I have a public key ASDA6H_JHJmuE2YdZX6bOg02uhQCdRpxzCSWB4kusR2Dogo

To claim this, I am signing this object:

LewisLebentz /
Created Mar 10, 2017
Bash script to get the latest version number of Chrome for Mac
curl -s | awk -F',' '/mac,stable/{print $3; exit}'
LewisLebentz /
Created Mar 8, 2017
Downloads the latest Google Chrome DMG file and installs it on a Mac
volname="Google Chrome"
/bin/echo "--" >> ${logfile}
LewisLebentz /
Last active Mar 14, 2019
Python script to get the latest version number of Chrome from Google and compare it to the version of Chrome installed on the local Mac. Then updates an Extension Attribute in Jamf Pro with either 'Latest' or 'Old'.
import json
import urllib2
import os.path
import plistlib
url = ''
resp = urllib2.urlopen(url)
LewisLebentz / groups.html
Created Feb 7, 2017
Form submit to
View groups.html
<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<div align="center">
<!--<body bgcolor='ce010b'>-->
<font color="fa0029" face="ubuntu">
LewisLebentz /
Created Feb 7, 2017
Google Apps Script to find all members in a group
function doGet(e){
var input =;
if (input == "")
return HtmlService.createHtmlOutput("<h2>fail</h2>")
return HtmlService.createHtmlOutput(listGroupMembers(input))
#!/usr/bin/env python
import json
from urllib2 import Request, urlopen
def post(event, context):
V2TOKEN = 'enter_token_here'
ROOMID = enter_room_id_here
# API V2, send message to room:
url = '' % ROOMID
You can’t perform that action at this time.