How do I stop Apple Music from launching whenever I connect a Bluetooth headset to my MacBook?
I use a bluetooth headset for video calls using video conferencing software on macOS.
Override Docker Compose volumes in an Amazee.io Drupal example to use NFS mounts.
This can substantially improve the disk I/O performance when running disk heavy
operations inside Docker containers. Specifically, we're looking to improve
performance for operations like php composer install
and composer update
.
The following scripts can be used to disable common security compliance software that blocks access to the Internet on corporate managed macOS computers. These scripts will not uninstall the software.
You may be asked to enter a password for command operations that require
elevated privileges via sudo
. If you do not have permission to run commands
as a root user with sudo
then these scripts will not work for you.
This is an example ~/.ssh/config
file showing a common set-up with the following features:
#!/usr/bin/env bash | |
# vim: ai ts=2 sw=2 et sts=2 ft=sh | |
# Delete remote branches that have been merged to master. | |
# | |
# Usage: | |
# | |
# git-remote-merged.sh -f | |
# |
# vagrant-hostmanager https://github.com/devopsgroup-io/vagrant-hostmanager | |
Cmnd_Alias VAGRANT_HOSTMANAGER_UPDATE = /bin/cp /home/*/.vagrant.d/tmp/hosts.local /etc/hosts | |
%admin ALL=(root) NOPASSWD: VAGRANT_HOSTMANAGER_UPDATE | |
# See https://github.com/cogitatio/vagrant-hostsupdater#readme | |
# vagrant plugin vagrant-hostsupdater. | |
Cmnd_Alias VAGRANT_HOSTS_ADD = /bin/sh -c echo "*" >> /etc/hosts |
#!/bin/bash | |
# vim: ai ts=2 sw=2 et sts=2 ft=sh | |
# | |
# macOS Desktop Finder Files Toggle | |
# | |
# Toggle the use of Finder to display the contents of the Desktop folder as | |
# icons on the macOS desktop. Hides or Shows all Finder files icons on the | |
# Desktop. | |
# | |
# https://ss64.com/osx/defaults.html |
#!/usr/bin/env bash | |
# ----- | |
# Read domains from a file and test HTTP GET request. | |
# | |
set -o errtrace | |
set -o pipefail | |
set -o errexit | |
set -o nounset |
# HTTP response header testing. | |
# wget | |
# - method: GET | |
# - output: response headers only | |
wget --server-response --quiet \ | |
--output-document=/dev/null --output-file=- \ | |
https://example.com/api/endpoint | |