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/zsh | |
packagesDir="/Library/Addigy/ansible/packages" | |
if [ ! -d "${packagesDir}" ]; then | |
echo "0B" | |
else | |
/usr/bin/du -h -d 0 /Library/Addigy/ansible/packages | awk '{print $1}' | |
fi |
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/zsh | |
# Wacom Files | |
declare -a systemFiles=('/Applications/Wacom Tablet' | |
'/Library/Application Support/Tablet' | |
'/Library/Frameworks/WacomMultiTouch.framework' | |
'/Library/Internet Plugins/WacomTabletPlugin.plugin' | |
'/Library/Launch Agents/com.wacom.wacomtablet.plist' | |
'/Library/LaunchDaemons/com.wacom.displayhelper.plist' | |
'/Library/LaunchDaemons/com.wacom.RemoveTabletHelper.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
// | |
// IOKit Discovery.swift | |
// | |
// Created by Andrew Worth Carson on 7/13/21. | |
// | |
import Foundation | |
import IOKit | |
enum CFType { |
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
#!/usr/bin/env python | |
import math | |
# Function: numberFromWord | |
# - wordString: a String representative of the word | |
# Returns: | |
# - number: an Integer representative of the screen based on map | |
def numberFromWord(wordStr): | |
phoneMap = {"a": 2, "b": 2, "c": 2, |
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/zsh | |
for user in $(dscl . list /Users UniqueID | awk '$2 >= 500 {print $1}'); do | |
userHome=$(dscl . read /Users/"$user" NFSHomeDirectory | sed 's/NFSHomeDirectory://' | grep "/" | sed 's/^[ \t]*//') | |
if [ -d "$userHome" ]; then | |
size=$(/usr/bin/du -h -d 0 "$userHome" 2> /dev/null | awk '{print $1}') | |
echo "$user:$userHome:$size" | |
fi | |
done |
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
error | 22:07:37.003796-0700 | Finder | LAUNCH: No architectures specified in launch archictectures [ NULL ] for app=file:///Applications/RuneLite.app which likely is an error. | |
---|---|---|---|---|
default | 22:07:37.004149-0700 | runningboardd | Executing launch request for app<application.net.runelite.launcher.6564800.6564806(501)> (LS launch net.runelite.launcher) | |
default | 22:07:37.004201-0700 | runningboardd | Creating and launching job for: app<application.net.runelite.launcher.6564800.6564806(501)> | |
default | 22:07:37.009486-0700 | runningboardd | [app<application.net.runelite.launcher.6564800.6564806(501)>:7150] This process will not be managed. | |
default | 22:07:37.009515-0700 | runningboardd | Now tracking process: [app<application.net.runelite.launcher.6564800.6564806(501)>:7150] | |
default | 22:07:37.009558-0700 | runningboardd | Using default underlying assertion for app: [app<application.net.runelite.launcher.6564800.6564806(501)>:7150] | |
default | 22:07:37.009598-0700 | runningboardd | Calculated state for app<application.net.runelite.launcher.6564800.6564806(501 |
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
#!/usr/bin/python | |
import CoreLocation | |
CLValidAuth = [CoreLocation.kCLAuthorizationStatusAuthorized] | |
def locationServicesEnabled(): | |
if CoreLocation.CLLocationManager.locationServicesEnabled(): | |
return True | |
else: |
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 | |
osascript << EOF | |
tell application "Terminal" | |
activate | |
set user to do shell script "stat -f%Su /dev/console" | |
do script "sudo -u " & user & ' /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"' in window 2 | |
tell application "System Events" to key code 36 | |
end tell | |
EOF |
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
# Tested on 10.11 | |
# Note: | |
# The marketing information embedded in the ServerInformation.framework is not the same as what | |
# About This Mac displays - there are differences. | |
# | |
# For example: | |
# ServerInformation: 15" MacBook Pro with Retina display (Mid 2015) | |
# About This Mac: MacBook Pro (Retina, 15-inch, Mid 2015) | |
# |
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 | |
user=$(/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");') | |
dseditgroup -o edit -a "$(user)" _lpoperator |
NewerOlder