Author:
erics, August 6th, 2020
Disable NOW in vim:
To disable auto-comments permanently, add the following line to ~/.vimrc:
|
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o |
To see the current settings:
Visit https://vim.fandom.com/wiki/Disable_automatic_comment_insertion for more information!
Categories: How-To's, Technology Tags: Auto-Comment, Comment, Comment Insertion, Comments, Disable, howto, Stop, tips, turn off, vim
|
No comments
Author:
erics, January 24th, 2020
|
add_action('admin_init', 'redirect_non_admin_users' ); function redirect_non_admin_users() { if ( ! current_user_can( ‘manage_options’ ) && (‘/wp-admin/admin-ajax.php’ != $_SERVER[‘PHP_SELF’]) ) { wp_redirect ("Your_Destination_URL_Here"); die(); exit; } } |
Categories: How-To's, Technology Tags: /wp-admin/profile.php, Access, ajax, Disable, manage_options, Profile, profile.php, redirect, Subscriber, WordPress, WP, wp_redirect, wp-admin
|
No comments
Author:
erics, 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 […]
Categories: How-To's, Technology Tags: add_filter, Auto-Paragraph, autop, Disable, Filter, howto, Page, POST, Prevent, remove_filter, Stop, tips, turn off, WordPress, wpautop
|
No comments
Author:
erics, August 4th, 2019
To prevent vim from added net comments, edit the .vimrc file in your home directory, and add:
|
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o |
Categories: How-To's, Technology Tags: Auto-Comment, Comment, Disable, disable auto-comment, howto, line, new, new line, new line comment, tips, vim
|
No comments
Author:
erics, 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 […]
Categories: How-To's, Technology Tags: Adobe, apple, daemon, Disable, howto, Kill, launchctl, MacOS, macosx, Shell, Stop, Terminal, tips, Unload
|
No comments
Author:
erics, June 15th, 2018
remove_filter( ‘the_content’, ‘wpautop’ ); add_filter( ‘the_content’, ‘smart_autop’ ); function smart_autop($content) { $post = get_post(); if($post->post_type != ‘post’) return $content; // if not a post, leave $content untouched return wpautop($content); }
Categories: How-To's, Technology Tags: add_filter, autop, Disable, howto, para, POST, remove_filter, tips, WordPress, wpautop
|
No comments
Author:
erics, April 17th, 2017
If you are missing either your “Dashboard > Updates” menu choice, or the “Add New” button or menu choice in the Plugins section, do this to correct it: Edit the wp-config.php file, and change two lines to be false instead of true: For example, here are the two lines fixed:
|
define('DISALLOW_FILE_EDIT', false); define('DISALLOW_FILE_MODS',false); |
Categories: How-To's, Technology Tags: Add, Add New, Button, Disable, DISALLOW, DISALLOW_FILE_EDIT, DISALLOW_FILE_MODS, false, howto, Missing, tips, update, WordPress
|
No comments
Author:
erics, June 15th, 2015
|
defaults write com.apple.Terminal no-bouncing -bool TRUE killall Dock |
Categories: How-To's, Technology Tags: apple, Badge, Bell, Bounce, defaults, Disable, Dock, howto, Icon, killall, macosx, Notification, Terminal, tips
|
No comments
Author:
erics, March 24th, 2015
System Preferences » Keyboard » Text » Uncheck “Correct Spelling Automatically”
Categories: How-To's, Technology Tags: 10.10, apple, Check, Correct, Correct Spelling Automatically, Disable, Keyboard, macosx, Spell, Spellcheck, System Preferences, text(), turn off, Yosemite
|
No comments
Author:
erics, November 20th, 2014
Enter the following command in Terminal… To turn it OFF: launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist To turn it ON: launchctl load -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist
Categories: How-To's, Technology Tags: Disable, howto, macosx, Notification, Notify, tips, Yosemite
|
No comments