Skip to content

Instantly share code, notes, and snippets.

View Rebenton's full-sized avatar

Ken Rebenton

  • St. Louis
View GitHub Profile
@BrentOzar
BrentOzar / WaitCategories.sql
Created September 20, 2017 18:06
Create ##WaitCategories table to categorize SQL Server wait stats
/*
Wait stat categories from: https://docs.microsoft.com/en-us/sql/relational-databases/system-catalog-views/sys-query-store-wait-stats-transact-sql
Updated on: 2017/09/20
*/
IF OBJECT_ID('tempdb..##WaitCategories') IS NULL
BEGIN
/* We reuse this one by default rather than recreate it every time. */
CREATE TABLE ##WaitCategories
(
@hissy
hissy / importer-class-filter-example.php
Last active July 2, 2020 10:47
[Really Simple CSV Importer] add-on: Update row based on a custom field ID/key match
<?php
/*
Plugin Name: Update row based on a custom field ID/key match
Plugin URI: https://wordpress.org/support/topic/update-row-based-on-a-custom-field-idkey-match
*/
add_filter('really_simple_csv_importer_class', function() {
return "ImporterCustomize";
});