How To Disable Automatic Updates in WordPress

To disable automatic updates in WordPress, simply edit the wp-config.php file in your WordPress root directory and add the following line:
1 |
define( 'WP_AUTO_UPDATE_CORE', false ); |
![]() |
To disable automatic updates in WordPress, simply edit the wp-config.php file in your WordPress root directory and add the following line:
1 |
define( 'WP_AUTO_UPDATE_CORE', false ); |
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
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.
1 |
fuser -u /Volumes/Archive03 |
At first, I tried to disable the indexing via the mdutil command, but that just gave me […]
Disable NOW in vim:
1 |
:set formatoptions-=cro |
To disable auto-comments permanently, add the following line to ~/.vimrc:
1 |
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o |
To see the current settings:
1 |
:set formatoptions? |
Visit https://vim.fandom.com/wiki/Disable_automatic_comment_insertion for more information!
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 […]
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 […]
The script to check and restart apache…works on CentOS – YMMV!
1 2 3 4 5 6 7 8 9 10 11 |
#!/bin/bash MAXLOAD=6 check=$(uptime | awk -F'average: ' '{print $2}' | awk '{print $1}' | tr -d ',') if [[ $check > $MAXLOAD ]]; then /sbin/service httpd stop HOST=`hostname` echo $HOST | mailx -s "$HOST load alert - apache STOPPED by cron script" load.alert@your.domain sleep 300 /sbin/service httpd start echo $HOST | mailx -s "$HOST load alert - apache STARTED by cron script" load.alert@your.domain fi |
Add to cron * * * * * /root/restart_apache_if_load_hits_threshold.sh >> /var/log/restart_apache_if_load_hits_threshold.log 2>&1
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 […]
List current iptables entries: iptables -L /etc/init.d/firewall stop ~or~ /etc/init.d/iptables stop ~or~ fwstop.sh
1 2 3 4 5 6 7 8 9 10 11 |
#!/bin/sh echo "Stopping firewall and allowing everyone..." iptables -F iptables -X iptables -t nat -F iptables -t nat -X iptables -t mangle -F iptables -t mangle -X iptables -P INPUT ACCEPT iptables -P FORWARD ACCEPT iptables -P OUTPUT ACCEPT |