Skip to content

Instantly share code, notes, and snippets.

View jhbush's full-sized avatar

Jason Bush jhbush

  • Coffee Cats Consulting
  • San Francisco Bay Area
  • 23:27 (UTC -07:00)
  • X @jasonhbush
View GitHub Profile
JAMF Helper Help Page
Usage: jamfHelper -windowType [-windowPostion] [-title] [-heading] [-description] [-icon] [-button1] [-button2] [-defaultButton] [-cancelButton] [-showDelayOptions] [-alignDescription] [-alignHeading] [-alignCountdown] [-timeout] [-countdown] [-iconSize] [-lockHUD] [-startLaunchd] [-fullScreenIcon] [-kill]
-windowType [hud | utility | fs]
hud: creates an Apple "Heads Up Display" style window
utility: creates an Apple "Utility" style window
fs: creates a full screen window the restricts all user input
WARNING: Remote access must be used to unlock machines in this mode
ciphers="TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA,TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDH_RSA_WITH_AES_256_CBC_SHA,TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA,TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256,TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDH_RSA_WITH_AES_128_CBC_SHA,TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA"
@jhbush
jhbush / cipher.sh
Last active August 29, 2015 14:25 — forked from opragel/cipher.sh
#!/bin/bash
# It's your funeral
LINUX_SERVER_XML_PATH="/usr/local/jss/tomcat/conf/server.xml"
LINUX_SERVER_XML_BACKUP_PATH="/usr/local/jss/tomcat/conf/server.xml.bak"
MAC_SERVER_XML_PATH="/Library/JSS/Tomcat/conf/server.xml"
MAC_SERVER_XML_BACKUP_PATH="/Library/JSS/Tomcat/conf/server.xml.bak"
if [ -f "$LINUX_SERVER_XML_PATH" ]; then
service jamf.tomcat7 stop
cp "$LINUX_SERVER_XML_PATH" "$LINUX_SERVER_XML_BACKUP_PATH"
sed -i 's/ciphers=".[^"]*/ciphers="TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA,TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDH_RSA_WITH_AES_256_CB
@jhbush
jhbush / office-2016-post-install.sh
Last active April 13, 2016 14:28 — forked from rtrouton/gist:18231c5065bcd7f7e973
Office 2016 15.12.3 postinstall file
#!/bin/bash
# Determine working directory
install_dir=`dirname $0`
# Location of Microsoft Office 2016 Volume License file
office_license="$3/Library/Preferences/com.microsoft.office.licensingV2.plist"
@jhbush
jhbush / install_microsoft_office_15.12.3.sh
Last active April 24, 2017 08:25 — forked from opragel/laziest_install_microsoft_office2016.sh
install_microsoft_office_15.12.3.sh
#!/bin/bash
DOWNLOAD_URLS=( \
#Outlook
"http://download.microsoft.com/download/A/2/C/A2C967A4-8B34-48FE-BC3D-E6532CC2DCD0/Microsoft_Outlook_15.12.3_Updater.pkg" \
# Word
"http://download.microsoft.com/download/8/F/0/8F0A32FB-A355-41D1-BBFB-55C734814787/Microsoft_Word_15.12.3_Updater.pkg" \
# Excel
"http://download.microsoft.com/download/8/F/4/8F4AB813-DEFA-4603-9397-D2C73F1EE5BF/Microsoft_Excel_15.12.3_Updater.pkg" \
# Powerpoint
"http://download.microsoft.com/download/3/3/9/33959026-296A-449D-97E3-3FA7944AC373/Microsoft_PowerPoint_15.12.3_Updater.pkg" \
-- 1. Place in ~/Library/Scripts and enable the Applescript menu via the Applescript Editor
-- (Or export to .app to run from spotlight.)
-- 2. Substitute "vpn.example.com" and "redacted" for your VPN server and password
-- 3. Open Security & Privacy System Preferences, go to Privacy, Accessibility
-- 4. Enable Applescript Editor and System UI Server (or for this .app if so exported)
-- 5. Trigger script from the menu (or run from spotlight)
-- 6. Enjoy being connected
-- 7. Run script again to close connection
@jhbush
jhbush / OneDrive2016.sh
Created February 23, 2016 16:45 — forked from cshepp1211/OneDrive2016.sh
OneDrive through Self Service
#!/bin/bash
# Author : Chris Sheppard
# Set up log file, folder and function
LOGFOLDER="/private/var/log/gov.fnal"
LOG=$LOGFOLDER"/OneDrive-2016-Install.log"
error=0
@jhbush
jhbush / office2016_SS_script.sh
Created February 24, 2016 23:29 — forked from cshepp1211/office2016_SS_script.sh
Office 2016 Installation script for use with Self Service
#!/bin/bash
# Set up log file, folder and function
LOGFOLDER="/private/var/log/gov.fnal"
LOG=$LOGFOLDER"/Office-2016-Install.log"
error=0
if [ ! -d "$LOGFOLDER" ];
@jhbush
jhbush / sudo_jamf_help_all.txt
Created April 13, 2016 14:20 — forked from rtrouton/sudo_jamf_help_all.txt
Output of running `jamf help all` with root privileges
Usage: jamf verb [options]
verb is one of the following:
about Displays information about the jamf binary
bind Binds this computer to a directory service
bless Blesses a System or a NetBoot Server
canRunOnThisOSXVersion Prints YES if this version is compatible with this OSX version.
checkJSSConnection Checks the availability of the JSS
@jhbush
jhbush / loginwindow_events.py
Created May 26, 2016 00:24 — forked from pudquick/loginwindow_events.py
Send polite Logout / "really" Logout / Restart / Shutdown Apple Events to loginwindow via python and pyObjC
import struct, objc
from Foundation import NSBundle
from Cocoa import NSAppleEventDescriptor
def OSType(s):
# Convert 4 character code into 4 byte integer
return struct.unpack('>I', s)[0]
# Create an opaque pointer type to mask the raw AEDesc pointers we'll throw around
AEDescRef = objc.createOpaquePointerType('AEDescRef', '^{AEDesc=I^^{OpaqueAEDataStorageType}}')