How To Restart a Hung Top Menu Bar in MacOS

Author: , April 23rd, 2021

Ever get the spinning beachball when trying to access the top menu on your Mac? SOLUTIONS Use the GUI Open the Activity Monitor application Select All Processes from the View menu Click on the SystemUIServer process, then click Force Quit. ~or~ Via CLI In Terminal, execute killall SystemUIServer

How To Prevent Spotlight From Indexing External Drives on MacOS

Author: , February 26th, 2021

On MacOSX 10.10.5 Yosemite, I was having trouble with Spotlight preventing the clean eject of an attached hard drive. Using the fuser command allowed me to see that it what the Spotlight-specific mds process preventing the eject.

At first, I tried to disable the indexing via the mdutil command, but that just gave me […]

How To Disable Automatic Comment Insertion In VIM

Author: , August 6th, 2020

Disable NOW in vim:

To disable auto-comments permanently, add the following line to ~/.vimrc:

To see the current settings:

Visit https://vim.fandom.com/wiki/Disable_automatic_comment_insertion for more information!

How To Prevent WordPress from Applying wpautop to a Page or Post

Author: , November 19th, 2019

All credit to Graham Walters for this excellent plugin and post, upon which this post is based – thank you, sir! https://grahamwalters.me/lab/disable-wpautop-on-specific-postspages/ Recently, a client was having problems using a plugin called by a shortcode. As it turned out, the JavaScript embedded in the returned content was being broken by the WordPress auto-paragraph feature known […]

How To Disable Adobe Daemons Using launchctl on MacOS

Author: , November 18th, 2018

I installed an old version of Adobe software on my new Mac and as usual, it installed some daemons that are undesirable. Here is how I got rid of them via the Terminal. Note: Adobe installs daemons in the user context, so do this as your regular user login, not as root. shell> launchctl list […]

How To Auto-Restart Apache If the Load Gets Too High

Author: , September 15th, 2015

The script to check and restart apache…works on CentOS – YMMV!

Add to cron * * * * * /root/restart_apache_if_load_hits_threshold.sh >> /var/log/restart_apache_if_load_hits_threshold.log 2>&1

How To Disable the Built-in iSight Camera

Author: , October 12th, 2013

I am tired of various programs taking control of my webcam, i.e. Skype, GoToMeeting and others… After searching for a while I found the following website with two awesome Applescripts, one for Snow Leopard and one for Lion. Open the script in the Applescript Editor, and do a Save As. Choose Application and save someplace […]

How To Disable iptables Completely

Author: , October 2nd, 2013

List current iptables entries: iptables -L /etc/init.d/firewall stop ~or~ /etc/init.d/iptables stop ~or~ fwstop.sh