Skip to content

Instantly share code, notes, and snippets.

View curtisbelt's full-sized avatar

Curtis Belt curtisbelt

View GitHub Profile
@curtisbelt
curtisbelt / notes.md
Created April 28, 2022 05:44
WordPress: Migrate individual sites into new multisite

Database Migration

create or replace database wp_site3 character set utf8mb4 collate utf8mb4_unicode_520_ci;
create or replace database wp_site4 character set utf8mb4 collate utf8mb4_unicode_520_ci;
create or replace database wp_site5 character set utf8mb4 collate utf8mb4_unicode_520_ci;
create or replace database wp_site6 character set utf8mb4 collate utf8mb4_unicode_520_ci;
create or replace database wp_site7 character set utf8mb4 collate utf8mb4_unicode_520_ci;
@curtisbelt
curtisbelt / 1.js
Created June 9, 2022 02:43
nylas-support-engineer-challenge
/**
* 1. Retrieve `thread_id` 1ykhop6itgiao6rxyqu10a5g and share your request and the API response.
*/
import nylas from "./index.js";
const thread = await nylas.threads.find("1ykhop6itgiao6rxyqu10a5g");
console.log(thread);
@curtisbelt
curtisbelt / headlessWordPress.conf
Last active November 12, 2022 16:17
Node.js/PHP NGINX Config for Headless WordPress
server {
server_name climb.localhost *.climb.localhost;
root /home/curtis/Wordpress;
listen 80;
listen [::]:80;
# Catch all php files first