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 | |
XCODE_VERSION="$4" | |
XCODE_TRIGGER="$5" | |
XCODE_NAME="Xcode-${XCODE_VERSION}" | |
XCODE_XIP_CACHE="/Library/Application Support/JAMF/Waiting Room/${XCODE_NAME}.xip.pkg" | |
XCODE_XIP_PATH="/Library/Management/${XCODE_NAME}.xip" | |
UNXIP="/Library/Management/Tools/unxip" | |
LOG_FOLDER="/private/var/log" |
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 | |
echo_logger() { | |
log_folder="${log_folder:=/private/var/log}" | |
log_name="${log_name:=log.log}" | |
mkdir -p $log_folder | |
echo -e "$(date) - $1" | tee -a $log_folder/$log_name | |
} |
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 | |
plistbuddy=/usr/libexec/PlistBuddy | |
logged_in_user=$( scutil <<< "show State:/Users/ConsoleUser" | awk '/Name :/ && ! /loginwindow/ { print $3 }' ) | |
plist="/Users/$logged_in_user/Library/Preferences/com.microsoft.autoupdate2.plist" | |
field_name=":ChannelName" | |
if [[ -f "$plist" ]]; then | |
# Check if user is on Beta or Preview Track | |
field_value=$($plistbuddy -c "Print $field_name" "$plist") |
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
{ | |
"rooms":[ | |
{ | |
"name":"Room One", | |
"status":0, | |
"adr":"Building C", | |
"current_meeting": { | |
"name": "Standup", | |
"start_time":"10am", | |
"end_time":"11am" |
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
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist | |
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist |
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
tell application "Alfred 2" to search | |
tell application "System Events" | |
keystroke "ch" | |
keystroke return | |
key code 125 | |
key code 125 | |
keystroke return | |
end tell |
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
Breaking Bad - S05E13 - To'hajiilee.mkv |
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
<item> | |
<name>Double Control</name> | |
<appendix>Doubletap ^ to ⇧^⌥⌘0</appendix> | |
<identifier>private.smithjw.DoubleControl</identifier> | |
<autogen> | |
--DoublePressModifier-- | |
KeyCode::CONTROL_L, | |
KeyCode::CONTROL_L, | |
KeyCode::KEY_0, ModifierFlag::SHIFT_L | ModifierFlag::CONTROL_L | ModifierFlag::OPTION_L | ModifierFlag::COMMAND_L | |
</autogen> |
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
tell application "System Events" to set FrontAppName to name of first process where frontmost is true | |
if FrontAppName is "Logic Pro X" then | |
tell application "System Events" | |
keystroke "k" using {control down} | |
end tell | |
else | |
tell application "Logic Pro X" to activate | |
tell application "System Events" | |
keystroke "k" using {control down} | |
delay 0.5 |
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
python /Applications/CouchPotatoServer/CouchPotato.py --daemon | |
python /Applications/Headphones/Headphones.py -d | |
python /Applications/Sick\ Beard/sickbeard.py -d | |
exit |
NewerOlder