This file contains hidden or 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 | |
| name=$(scutil --get ComputerName) | |
| qmasterprefs -stopSharing | |
| qmasterprefs -allowBonjourDiscovery on | |
| qmasterprefs -cluster off autorestart off servername "${name}" quickclusterservername "${name} Cluster" maxactivetargets 40 maxactivesegments 400 storagepath "/var/spool/qmaster" privatestorage off publishedstorage on storagecleanupthreshold 7 unmanagedservices on unmanagedmulticapturethreshold 0 networkinterface en0 log 3 truncate on |
This file contains hidden or 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 | |
| while read -r -d $'\0' item; do | |
| /usr/bin/xattr -s -d com.apple.quarantine "${item}" | |
| done < <(/usr/bin/find /Applications -xattrname com.apple.quarantine -print0) |
This file contains hidden or 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 | |
| # put extensions on Flash vids in browser caches | |
| for item in ./*; do | |
| if $(file $item | grep -q Flash); then | |
| mv $item $item.flv | |
| fi | |
| done |
This file contains hidden or 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 | |
| [ -z "$1" ] && echo "This script requires a path to output the app icons in PNG format." | |
| # Use /usr/bin/sips to copy the app icon out of the App bundle for each of the Adobe CC products | |
| # and convert into png format | |
| # Acrobat Pro 11 | |
| APP="/Applications/Adobe Acrobat DC/Adobe Acrobat.app" | |
| APP_ICON="ACP_App.icns" |
This file contains hidden or 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
| >>> import Foundation as F | |
| >>> foo = F.NSUUID.UUID() | |
| >>> print foo | |
| <__NSConcreteUUID 0x7f9a78df73b0> 19AE1973-8C5C-40D7-BBE4-073F6EA3B0D5 | |
| >>> foo[-1] | |
| Traceback (most recent call last): | |
| File "<stdin>", line 1, in <module> | |
| TypeError: '__NSConcreteUUID' object does not support indexing |
This file contains hidden or 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 | |
| bad_ssids=(GBHSD-Guest GBHSD D225-Guest glenbrook) | |
| port=$(/usr/sbin/networksetup -listallhardwareports | awk '/Ethernet/{flag=0}flag {print $2};/Airport|Wi-Fi/{flag=1}') | |
| # stole this sweet function from patrik's answer here | |
| # http://stackoverflow.com/questions/3685970/check-if-an-array-contains-a-value | |
| contains_element () { | |
| local e | |
| for e in "${@:2}"; do [[ "$e" == "$1" ]] && return 0; done |
This file contains hidden or 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
| USE_PKGBUILD=1 | |
| include /usr/local/share/luggage/luggage.make | |
| TITLE=icc_profiles | |
| PACKAGE_VERSION=3.0 | |
| REVERSE_DOMAIN=org.glenbrook225.S607 | |
| profiles=$(wildcard *.icc) | |
| PAYLOAD=$(foreach profile,$(profiles),pack-Library-ColorSync-Profiles-$(profile)) |
This file contains hidden or 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
| import sys | |
| sys.path.append('/usr/local/munki/munkilib') | |
| import fetch | |
| fetch.get_url('http://www.irs.gov/pub/irs-prior/f1040ez--2014.pdf', '/Users/ryan/Desktop/1040ez.pdf') | |
| fetch.get_url('https://www.gnu.org/software/wget/index.html', '/Users/ryan/Desktop/index.html') |
This file contains hidden or 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
| USE_PKGBUILD=1 | |
| include /usr/local/share/luggage/luggage.make | |
| TITLE=java_exceptions_A110 | |
| PACKAGE_VERSION=1.2 | |
| REVERSE_DOMAIN=org.glenbrook225.outset | |
| PAYLOAD=pack-usr-local-outset-login-every-exception_sites.py |