Skip to content

Instantly share code, notes, and snippets.

View davidjray's full-sized avatar

David Ray davidjray

View GitHub Profile
@davidjray
davidjray / MetaDeplySchema.yml
Created January 20, 2023 00:28
MetDeploy OpenAPI Schema
openapi: 3.0.3
info:
title: Salesforce MetaDeploy API Documentation
version: 1.0.0
description: MetaDeploy
paths:
/admin/rest/plans:
get:
operationId: admin_rest_plans_list
parameters:
@davidjray
davidjray / launch.js
Last active April 1, 2024 19:20
Wheel Decide Google Meet Auto Generate
var url = 'http://www.wheeldecide.com/index.php?';
$$('*[data-sort-key]').forEach(function(el, i) {
url += 'c' + (i + 1) + '=' + encodeURIComponent(el.dataset.sortKey.replace(/ spaces.*$/, '')) + '&';
});
url += '&col=pastel&t=Who+it+be%3F&time=10&width=1200&remove=1';
window.open(url, '_blank');
/*** 20 Questions ***/
let questions = ['the aliens that make first contact be robotic or organic?',
'lose the ability to read or lose the ability to speak?',
@davidjray
davidjray / wp-migrate
Last active August 29, 2015 14:06
Migrating Wordpress URL SQL statements
# Run after import to replace URLs - Don't forget to reset permalinks after this too!
UPDATE wp_options SET option_value = replace(option_value, 'http://www.old.com', 'http://www.new.com') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'http://www.old.com', 'http://www.new.com');
UPDATE wp_postmeta SET meta_value = replace(meta_value, 'http://www.old.com', 'http://www.new.com');
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.old.com', 'http://www.new.com');