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
# Add group `everyone` to `lpadmin` group | |
dseditgroup -o edit -n /Local/Default -a everyone -t group lpadmin |
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
# Allow text selection in Quicklook | |
defaults write com.apple.finder QLEnableTextSelection -bool true && killall Finder |
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 | |
xmllint --format "/Library/Application Support/JAMF/.blacklist.xml" | |
# JSON | |
cat "/Library/Application Support/JAMF/.jmf_settings.json" |
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
# Mount EFI partiton (Windows, Linux etc) | |
sudo bless --folder /Volumes/efi/EFI/Boot/ --label "wegopc" | |
# With SIP disabled | |
sudo bless --folder /System/Library/CoreServices --label "wegomac" |
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
username="" | |
sudo dscl . -passwd /Users/"${username}" <password1> <password2> |
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
# Connect to server | |
grep sshd.\*Failed /var/log/auth.log | less |
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
# As other user | |
open smb://other_username:*@server.name.here |
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
read -p "Session name: " nameOfSession | |
# Create socket | |
touch /tmp/${nameOfSession} && chgrp serveradmins /tmp/${nameOfSession} | |
# Create session | |
tmux -CC -S /tmp/${nameOfSession} new -s ${nameOfSession} | |
# Connect to the session from the second terminal | |
tmux -S /tmp/${nameOfSession} attach -t ${nameOfSession} |
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 /System/Library/CoreServices/Setup\ Assistant.app/Contents/MacOS/Setup\ Assistant -MBDebug |
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
Get-Content "C:\Program Files\JSS\Logs\JAMFSoftwareServer.log" -Wait |
OlderNewer