This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python2.7 | |
#Loop through available Virtual Machines and setup for JAMF policy run | |
import subprocess | |
from argparse import ArgumentParser | |
vmrun_path = "/Applications/VMware Fusion.app/Contents/Library/vmrun" | |
#If a vm file is not in the list of running VMs, power it on | |
vm_files = ['/Users//Documents/Virtual Machines.localized/OS X 10.10.vmwarevm/OS X 10.10.vmx', | |
'/Users//Documents/Virtual Machines.localized/OS X 10.11.vmwarevm/OS X 10.11.vmx'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The following recipes failed: | |
NetHack.jss.recipe | |
Error in com.github.jss-recipes.jss.NetHack: Processor: URLTextSearcher: Error: No match found on URL: http://sourceforge.net/projects/nethack/files/nethack/3.6.0/ | |
Numbers.jss.recipe | |
Error in com.github.jss-recipes.jss.Numbers: Processor: JSSImporter: Error: 'NoneType' object has no attribute 'find' | |
The following items were queried from VirusTotal database: | |
Name Ratio Permalink | |
---- ----- --------- | |
AdobeFlashPlayer.dmg 0/56 https://www.virustotal.com/file/342ebd92ebc651f62c9cd621b1a84d4f2ed01b73aa49b647a5b881dd5652871d/analysis/1457716213/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The following items were queried from VirusTotal database: | |
Name Ratio Permalink | |
---- ----- --------- | |
AdobeFlashPlayer.dmg 0/56 https://www.virustotal.com/file/342ebd92ebc651f62c9cd621b1a84d4f2ed01b73aa49b647a5b881dd5652871d/analysis/1457716213/ | |
Alfred_2.8.3_435.zip 0/57 https://www.virustotal.com/file/d3ff9dd4a3a889cf689f817feed6bc06b49346cfcf4985cf6a3b4c1639fb2c55/analysis/1458128657/ | |
Atom.zip 0/55 https://www.virustotal.com/file/e1b58f0ba185c78c7697511db1ab7882a39f26a2e08dd73ade7c47d5d2cf5d26/analysis/1458056489/ | |
AutoDMG.dmg 0/54 https://www.virustotal.com/file/ab6af0acdb3a7047f3108175e78519192703d61161923610c98713930d3cf1b7/analysis/1455028375/ | |
charles-proxy-3.11.4.dmg 0/55 https://www.virustotal.com/file/82195ef507dd7d3921d24dd787c51704e2cd9cb559f55e975b089ab3c7e7bfeb/analysis/1456838268/ | |
Divvy_1.4.2.zip 0/55 https://www.virustotal.com/file/4e30a42d50a5e484ae410d1ed14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ autopkg run -v --recipe-list AutoPKGList.txt | |
Processing Firefox.jss.recipe... | |
MozillaURLProvider | |
MozillaURLProvider: Found URL https://download.mozilla.org/?product=firefox-latest&os=osx&lang=en-US | |
URLDownloader | |
URLDownloader: Item at URL is unchanged. | |
URLDownloader: Using existing /Users/yelpadmin/Library/AutoPkg/Cache/com.github.rtrouton.jss.Firefox/downloads/Firefox.dmg | |
EndOfCheckPhase | |
CodeSignatureVerifier | |
CodeSignatureVerifier: Mounted disk image /Users/yelpadmin/Library/AutoPkg/Cache/com.github.rtrouton.jss.Firefox/downloads/Firefox.dmg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> list_installers = glob.glob('/Applications/Install OS X *') | |
>>> print list_installers | |
['/Applications/Install OS X El Capitan.app', '/Applications/Install OS X Yosemite.app'] | |
>>> | |
>>> elcap_plist_path = '/Applications/Install OS X El Capitan.app/Contents/Info.plist' | |
>>> plist_key = 'BuildMachineOSBuild' | |
>>> def read_plist(plist_path, plist_key): | |
... """Return key from plist or None.""" | |
... try: | |
... plist = plistlib.readPlist(plist_path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
docker pull macadmins/tftpd | |
docker pull macadmins/netboot-httpd | |
docker pull bruienne/bsdpy:1.0 | |
docker stop $(docker ps -a -q) | |
docker rm $(docker ps -a -q) | |
chmod -R 777 /usr/local/docker/nbi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Uninstall Network Connect | |
#sudo /usr/local/juniper/nc/install/uninstall_nc.sh | |
# Determine working directory | |
install_dir=`dirname $0` | |
# Installing Junos Pulse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Send output to System Log | |
exec >>/var/log/system.log 2>&1 | |
#Define Path to QuickADD package | |
PATH_TO_QA_PKG=/etc/QuickAdd.pkg | |
#Define URL and checking values | |
JSS_URL="URLGOESHERE 8443 >>/dev/null 2>&1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
HiddenUsers=$(defaults read /Library/Preferences/com.apple.loginwindow HiddenUsersList) | |
for USER_NAME in $(dscl . -ls /Users | grep "prv-*"); do | |
if [[ $HiddenUsers == *$USER_NAME* ]]; then | |
echo "User $USER_NAME already present" | |
else | |
echo "Adding $USER_NAME to array" | |
/usr/bin/defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList -array-add $USER_NAME | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Description</key> | |
<string>Downloads the current release version of ScummVM.</string> | |
<key>Identifier</key> | |
<string>com.github.autopkg.download.ScummVM</string> | |
<key>Input</key> | |
<dict> |
NewerOlder