I hereby claim:
- I am badstreff on github.
- I am badstreff (https://keybase.io/badstreff) on keybase.
- I have a public key ASAP-nlQL-xL8oNATLfmMXn4AJsP5lMauIyrkYxVV4BKFAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # Test for firmware password. If no firmware password set it. | |
| fwpwdset="$(firmwarepasswd -check | sed 's/^.*: / /')" | |
| if [ "$fwpwdset" = "No" ];then | |
| echo "Firmware Password not set. Setting firmware password." | |
| /usr/bin/expect << EOF | |
| spawn firmwarepasswd -setpasswd | |
| expect "Enter new password:" | |
| send "$4\r"; |
| #!/bin/bash | |
| # Apply Updates | |
| defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticCheckEnabled -bool true | |
| sleep 1 | |
| output="$(softwareupdate --install --all 2>&1)" | |
| sleep 1 | |
| defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticCheckEnabled -bool false | |
| # restart and notifcy user if needed |
| #!/usr/local/bin/python3 | |
| """ | |
| Custom inventory script for Ansible populated by the JSS | |
| """ | |
| from functools import lru_cache | |
| from os.path import dirname, realpath, join | |
| from urllib.parse import quote | |
| import argparse | |
| import json |
| """ | |
| Custom inventory script for Ansible populated by the JSS | |
| """ | |
| from os.path import dirname, realpath, join | |
| from urllib.parse import quote | |
| import argparse | |
| import json | |
| import configparser | |
| import requests |
| let win_shell = (has('win32') || has('win64')) && &shellcmdflag =~ '/' | |
| " if not on windows enable python2 and python3 support | |
| if !win_shell | |
| set pythonhome=$HOME/.pyenv/versions/2.7.11 | |
| set pythondll=$HOME/.pyenv/versions/2.7.11/lib/libpython2.7.dylib | |
| set pythonthreehome=$HOME/.pyenv/versions/3.6.0 | |
| set pythonthreedll=$HOME/.pyenv/versions/3.6.0/lib/libpython3.6m.dylib | |
| let g:python2_host_prog = '/usr/local/bin/python' | |
| let g:python3_host_prog = '/usr/local/bin/python3' |
| let win_shell = (has('win32') || has('win64')) && &shellcmdflag =~ '/' | |
| " if not on windows enable python2 and python3 support | |
| if !win_shell | |
| set pythonhome=$HOME/.pyenv/versions/2.7.11 | |
| set pythondll=$HOME/.pyenv/versions/2.7.11/lib/libpython2.7.dylib | |
| set pythonthreehome=$HOME/.pyenv/versions/3.6.0 | |
| set pythonthreedll=$HOME/.pyenv/versions/3.6.0/lib/libpython3.6m.dylib | |
| let g:python2_host_prog = '/usr/local/bin/python' | |
| let g:python3_host_prog = '/usr/local/bin/python3' |
| #!/usr/bin/python | |
| import sys | |
| from Foundation import NSUserNotification | |
| from Foundation import NSUserNotificationCenter | |
| from Foundation import NSUserNotificationDefaultSoundName | |
| from AppKit import NSImage | |
| def main(): |
| let win_shell = (has('win32') || has('win64')) && &shellcmdflag =~ '/' | |
| " if not on windows enable python2 and python3 support | |
| if !win_shell | |
| set pythonhome=$HOME/.pyenv/versions/2.7.11 | |
| set pythondll=$HOME/.pyenv/versions/2.7.11/lib/libpython2.7.dylib | |
| set pythonthreehome=$HOME/.pyenv/versions/3.6.0 | |
| set pythonthreedll=$HOME/.pyenv/versions/3.6.0/lib/libpython3.6m.dylib | |
| let g:python2_host_prog = '/usr/local/bin/python' | |
| let g:python3_host_prog = '/usr/local/bin/python3' |
| let win_shell = (has('win32') || has('win64')) && &shellcmdflag =~ '/' | |
| " if not on windows enable python2 and python3 support | |
| if !win_shell | |
| set pythonhome=$HOME/.pyenv/versions/2.7.11 | |
| set pythondll=$HOME/.pyenv/versions/2.7.11/lib/libpython2.7.dylib | |
| set pythonthreehome=$HOME/.pyenv/versions/3.6.0 | |
| set pythonthreedll=$HOME/.pyenv/versions/3.6.0/lib/libpython3.6m.dylib | |
| let g:python2_host_prog = '/usr/local/bin/python' | |
| let g:python3_host_prog = '/usr/local/bin/python3' |