If you're using a high-end bluetooth headset on your Macbook Pro it's likely your mac is using an audio codec which favors battery efficiency over high quality. This results in a drastic degradation of sound, the SBC codec is the likely culprit, read more about it here.
| // | |
| // AudioPlayer.swift | |
| // | |
| // Created by MDobekidis | |
| // | |
| import Foundation | |
| import AVFoundation | |
| import UIKit | |
| import Signals |
I've never had great understanding of launchctl but the deprecation of the old commands with launchctl 2 (10.10) has been terrible as all resources only cover the old commands, and documentation for Apple utilities is generally disgracefully bad, with launchctl not dissembling.
Mad props to https://babodee.wordpress.com/2016/04/09/launchctl-2-0-syntax/ which contains most details
Internally, launchd has several domains, but launchctl 1 would only ask for service names,
| 11:55:09 AM ↗️ 0x15900 /Users/zev/Library/Preferences/com.apple.spaces.plist.P2AbRcF | |
| 11:55:09 AM ↘️ 0x10800 /Users/zev/Library/Preferences/com.apple.spaces.plist | |
| 11:55:09 AM ↗️ 0x15900 /Users/zev/Library/Preferences/com.tristan.FSMonitor.plist.cR5WRLP | |
| 11:55:09 AM ↘️ 0x10800 /Users/zev/Library/Preferences/com.tristan.FSMonitor.plist | |
| 11:55:09 AM 🆕 0x14100 /Users/zev/Library/Preferences/ByHost/com.apple.loginwindow.0922F432-94E3-55A1-8672-6B66E786F21B.plist.8jDpEFP | |
| 11:55:10 AM ↗️ 0x15900 /Users/zev/Library/Preferences/ByHost/com.apple.loginwindow.0922F432-94E3-55A1-8672-6B66E786F21B.plist.8jDpEFP | |
| 11:55:10 AM ↘️ 0x10800 /Users/zev/Library/Preferences/ByHost/com.apple.loginwindow.0922F432-94E3-55A1-8672-6B66E786F21B.plist | |
| 11:55:10 AM 🛠 0x18000 /private/var/db/diagnostics/Persist/0000000000000283.tracev3 | |
| 11:55:10 AM 🆕 0x14100 /Users/zev/Library/Preferences/com.tristan.FSMonitor.plist.tbghtkX | |
| 11:55:10 AM ❌ 0x11300 /Users/zev/Library/Caches/at.obdev.LaunchBar/IndexingProgressLog.plist |
| HTTPPort 8090 | |
| HTTPBindAddress 0.0.0.0 | |
| MaxHTTPConnections 200 | |
| MaxClients 100 | |
| MaxBandWidth 500000 | |
| CustomLog - | |
| <Feed camera.ffm> | |
| File /tmp/camera.ffm | |
| FileMaxSize 200M |
| #!/bin/bash | |
| ps axuwww | grep Adobe --exclude='grep' | awk '{print $2}' | xargs sudo kill -9 |
| const express = require('express') | |
| const app = express() | |
| const path = require('path') | |
| const fetch = require('node-fetch') | |
| const PORT = process.env.PORT || 3000 | |
| app.get('/api/user', (req, res) => { | |
| res.json({ name: 'Richard' }); | |
| }); |
| # Get Sudo. | |
| if [ $EUID != 0 ]; then | |
| sudo "$0" "$@" | |
| exit $? | |
| fi | |
| # Install Xcode first - https://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12 | |
| # Install Xcode command line tools. | |
| xcode-select --install |
| //Tutorial https://www.objc.io/issues/17-security/inside-code-signing/ | |
| //Print which signing certificates are on computer | |
| security find-identity -v -p codesigning | |
| //Print what was used to codesign an app | |
| codesign -vv -d Example.app | |
| //Print what entitlements are enabled for app | |
| codesign -d --entitlements - Example.app |
Disclaimer: I'm not the original author of this sheet, but can't recall where I found it. If you know the author, please let me know so I give the attribution.
The original author seems to be Charles Edge, here's the original content, as pointed out by @percisely.
Note: Since this seems to be helpful to some people, I formatted it to improve readability of the original. Also, note that this is from 2016, many things may have changed, and I don't use macOS anymore, so I probably can't help in case of questions, but maybe someone else can.
After writing up the presentation for MacSysAdmin in Sweden, I decided to go ahead and throw these into a quick cheat sheet for anyone who’d like to have them all in one place. Good luck out there, and s
