This gist is to remind me (and anyone else who it helps) how to quickly disable and re-enable Notification Center.
- Open your terminal (<⌘ + ␣ (spacebar)>, then type "terminal", then press <↩ (enter)>).
| #!/bin/sh | |
| # Script by rtrouton | |
| # Cleanup by Arjen van Bochoven (oct 2013) | |
| # Get major OS version (uses uname -r and bash substitution) | |
| # osvers is 10 for 10.6, 11 for 10.7, 12 for 10.8, etc. | |
| osversionlong=$(uname -r) | |
| osvers=${osversionlong/.*/} | |
| # Checks to see if the OS on the Mac is >= 10.7 |
| #!/usr/bin/env bash | |
| grep `/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport -I | awk '/BSSID/{print $2}'` /tmp/file.csv | head -n 1 | awk -F "," '{print $2}' |
| #!/bin/bash | |
| sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport | |
| sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport |
| # view as xml on standard out | |
| plutil -convert xml1 -o - ./com.apple.finder.plist |
| #!/bin/bash | |
| # Copyright 2018 Henri Shustak - [email protected] | |
| # Licence MIT : https://opensource.org/licenses/MIT | |
| # This script is tested and works on macOS 10.12.6 - It is used to keep the PaperCut | |
| # MobilityPrint service running and to regularly restart the MobilityPrint daemon. | |
| #!/usr/bin/env ruby | |
| # | |
| # (C)2009 Henri Shustak | |
| # Released Under the GNU GPL | |
| # Lucid Information Systems | |
| # http://www.lucidsystems.org | |
| # | |
| # More information on this script : http://www.lbackup.org/developer/mounting_attached_backup_devices | |
| # This version works on 10.13 with USB devices. Figured that setting up the gist would make it easier for people contribute | |
| # modifications back to a central location. |
| #!/usr/bin/env ruby | |
| # | |
| # Check print queue status if it is stopped restart and send out a notification email. | |
| # | |
| # (C)2017 Henri Shustak | |
| # Licenced Under the GNU GPL v3 or later <https://www.gnu.org/copyleft/gpl.html> | |
| # | |
| # Version 2.3 | |
| # | |
| # For email delivery, sendEmail <http://caspian.dotconf.net/menu/Software/SendEmail/> is required. |
| # Archiware Cheat Sheet - Backup2Go | |
| # These are some useful commands which I stumbled upon while setting up automatic P5 configurarions | |
| # web interface URL | |
| http://127.0.0.1:8000/lexxapp/login?u_app=client | |
| # start backup (from client) - depending on which server you wish to initate a backup with you may need to change this | |
| /usr/local/aw/bin/nsdchat -c Server 10001 start now | |
| # stop the deamon |
| # Once the shell / terminal is granted full disk access, you will be able to run this command | |
| sudo sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db 'select * from access' | grep AllFiles | awk -F '|' '{print $2}' |