Skip to content

Instantly share code, notes, and snippets.

# Stop tailwatchd:
/scripts/restartsrv_tailwatchd --stop
# Renamed database:
mv /var/cpanel/eximstats_db.sqlite3 /var/cpanel/eximstats_db.sqlite3.original
# Recreate the database:
@nmkr
nmkr / gist:c7b48a6677724ae82456e18dfcb9c4ac
Last active October 31, 2020 13:48
Laravel 7 to 8 Routes Regex Phpstorm
string to search
, '(.*)@(.*)'\)-
string for replace
, [$1::class, '$2'])-
@nmkr
nmkr / enable-wp-debug.php
Created October 28, 2019 13:19
enable quick wp-debug php vars
define('WP_DEBUG', true);
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
<?xml version="1.0" encoding="utf-8"?>
<EVC2>
<!-- Application metadata -->
<Application>
<SoftwareVersion>9</SoftwareVersion>
<FileVersion>1</FileVersion>
</Application>
<!-- Device specification -->
<?php
/*
Plugin Name: WP_List_Table Class Example
Plugin URI: https://www.sitepoint.com/using-wp_list_table-to-create-wordpress-admin-tables/
Description: Demo on how WP_List_Table Class works
Version: 1.0
Author: Collins Agbonghama
Author URI: https://w3guy.com
*/