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
#!/usr/bin/python | |
# | |
# Written by Drew Diver 2019 | |
# Create a policy in Jamf to run the following script from Self Service. | |
# | |
# Inspired by https://twitter.com/lapcatsoftware/status/1182350562123227136?s=20 | |
# Named by Armen Briegel | |
import random | |
import subprocess |
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/sh | |
currentUser=$(/usr/bin/python -c 'from SystemConfiguration import SCDynamicStoreCopyConsoleUser; import sys; \ | |
username = (SCDynamicStoreCopyConsoleUser(None, None, None) or [None])[0]; username = [username,""][username in [u"loginwindow", None, u""]]; \ | |
sys.stdout.write(username + "\n");') | |
wavesAURegUtil=/Applications/Waves/WaveShells\ V9/Waves\ AU\ Reg\ Utility1\ 9.92.app | |
# Make sure Logic isn't running | |
if ps aux | grep '[L]ogic' >> /dev/null 2>&1 |
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
# add to /etc/modprobe.d/50-sound.conf | |
# changes default audio order, for some reason HDMI is picked up as main audio device. | |
options snd-hda-intel index=0 model=auto vid=8086 pid=8c20 | |
options snd-hda-intel index=1 model=auto vid=8086 pid=0c0c |
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
set processName to text returned of ¬ | |
(display dialog ¬ | |
"Enter process name" default answer ¬ | |
"Preview" buttons {"OK", "Cancel"} default button 1) | |
tell application "System Events" | |
if exists (window 1 of process processName) then | |
tell process processName | |
set visible to true | |
return every UI element of front window |
NewerOlder