Skip to content

Instantly share code, notes, and snippets.

View dgaidula's full-sized avatar

Dan Gaidula dgaidula

View GitHub Profile
<?php
/*
Plugin Name: UTF8mb4-convert
Version: 1.0
*/
function update_db_to_utf8mb4() {
if ( ! isset( $_GET['update-utf8mb4'] ) ) {
return;
}
@dgaidula
dgaidula / makewpsuck.sh
Created June 15, 2024 18:39 — forked from kennyeliason/makewpsuck.sh
Make WP Suck Less or More
#!/bin/bash
# Make sites into bedrock or normal WordPress
# Version 2.0
# Copyright (c) Kenny Eliason
set -a
source .env
set +a
@dgaidula
dgaidula / DefaultCSS_Markdown.css
Created July 27, 2026 11:37 — forked from splorp/DefaultCSS_Markdown.css
A default stylesheet based on GitHub’s Markdown formatting for use with BBEdit’s Preview CSS feature.
body {
background-color: #FFF;
color: #333;
font: 15px Helvetica, arial, freesans, clean, sans-serif;
word-wrap: break-word;
line-height: 1.7;
padding: 0 20px 20px 20px;
width: 722px;
-webkit-font-smoothing: antialiased;
}