I hereby claim:
- I am phillymjs on github.
- I am phillymjs (https://keybase.io/phillymjs) on keybase.
- I have a public key ASDRM3S8o3Nk6_ZJPTMkpItmtiErV6m6CavPnr6PUxHPHgo
To claim this, I am signing this object:
| #!/bin/bash | |
| set -u | |
| prefFile="com.github.macadmins.Nudge.plist" | |
| tmpFile="/tmp/com.github.macadmins.Nudge.Settings.plist" | |
| remoteAssetBaseURL="https://yourwebserver.com/nudge_assets" | |
| # Assets we need to pull locally | |
| declare -a valueArray=("iconDarkPath" "iconLightPath" "screenShotDarkPath" "screenShotLightPath") |
| #!/bin/bash | |
| # Find directories in /Volumes with .DS_Store files | |
| # See if each directory with a .DS_Store file is currently mounted | |
| # If it is, skip it. If it's not, it's an orphaned mount, so increment the counter | |
| # Fail on undefined variables, since we're running "rm" commands | |
| set -u | |
| orphanCount=0 |
I hereby claim:
To claim this, I am signing this object:
| try | |
| --Check the Cisco AnyConnect client state | |
| (do shell script "/opt/cisco/anyconnect/bin/vpn state | grep \"state: Connected\"") as string | |
| --If we get here then we're connected, so return the Cisco IP information | |
| set activeNetworkPortName to "Cisco AnyConnect VPN" | |
| set currentIP to do shell script "/opt/cisco/anyconnect/bin/vpn stats | grep \"Client Address (IPv4):\" | awk '{print $4}'" | |
| on error |
| on is_running(appName) | |
| tell application "System Events" to (name of processes) contains appName | |
| end is_running | |
| repeat while is_running("AdobeAcrobat") | |
| try | |
| tell application "Adobe Acrobat Pro" | |
| set unsavedDocs to count of (documents where modified is true) | |
| set openDocs to count of documents | |
| end tell |
| global mac_path, win_path | |
| tell application "Finder" | |
| try | |
| set theFilePOSIX to POSIX path of (selection as string) | |
| on error | |
| display dialog "Please select a file on a server volume before running this script." buttons {"OK"} default button "OK" with icon 0 with title "Error - Nothing Selected" | |
| return | |
| end try | |
| set TempTID to AppleScript's text item delimiters |
| #!/bin/sh | |
| # File locations - Change as needed | |
| list="/tmp/updatelist.txt" # List of updates not in any branches | |
| email="/tmp/updatemail.txt" # Temp file to hold the email message | |
| mailbinary="/usr/sbin/sendmail" # Location of the binary that sends mail | |
| repoutil="/usr/local/reposado/repoutil" # Location of the repoutil binary | |
| # Options for automatically adding new updates to a branch - Change as desired | |
| autoadd=true |