Skip to content

Instantly share code, notes, and snippets.

View deanoakley's full-sized avatar

Dean Oakley deanoakley

View GitHub Profile
@deanoakley
deanoakley / wp-disable-plugin-update.php
Last active October 5, 2024 16:03 — forked from rniswonger/wp-disable-plugin-update.php
WordPress - Disable specific plugin update check
/**
* Prevent update notification for plugin -
* http://www.thecreativedev.com/disable-updates-for-specific-plugin-in-wordpress/
* Add to the core plugin file
*/
function disable_plugin_updates( $value ) {
if ( isset($value) && is_object($value) ) {
$plugin_file_name = basename(__DIR__) . '/' . basename(__FILE__);
if ( isset( $value->response[$plugin_file_name] ) ) {
unset( $value->response[$plugin_file_name] );
@deanoakley
deanoakley / whois.php
Created February 26, 2020 05:01
PHP code to get WHOIS information of a domain
<?php
/*************************************************************************
php easy :: whois lookup script
==========================================================================
Author: php easy code, www.phpeasycode.com
Web Site: http://www.phpeasycode.com
Contact: webmaster@phpeasycode.com
*************************************************************************/
$domain = $_GET['domain'];
@deanoakley
deanoakley / disable-display-errors-serverpilot.sh
Last active March 10, 2026 02:19 — forked from Jinksi/gist:d9856f3a053ce7ff29e39d51d6941da0
Serverpilot disable display php errors server-wide
# One liner to disable display_errors for all installed ServerPilot PHP versions, then restart matching FPM services
for ini in /etc/php*-sp/php.ini; do [ -f "$ini" ] && sudo sed -i '/^display_errors\s*=/d' "$ini" && echo 'display_errors = false' | sudo tee -a "$ini" > /dev/null; done; for svc in /etc/init.d/php*-fpm-sp; do [ -e "$svc" ] && sudo service "$(basename "$svc")" restart; done