Skip to content

Instantly share code, notes, and snippets.

View jamesray's full-sized avatar
🤫
Move quiet, ship heavy.

James Ray jamesray

🤫
Move quiet, ship heavy.
View GitHub Profile
// TODO: remove the following code after we have a better solution for CSP and script injection
// const crazyeggScript =
// TODO: Skip loading Crazy Egg if we're running on localhost. This var is fed to the head.script object below.
// TODO: Figure out how to do something similar for Google Analytics / DAP.
// SITE_HOSTNAME !== 'http://localhost:3000'
// ? {
// type: 'text/javascript',
// src: process.env.NUXT_PUBLIC_ANALYTICS_CRAZYEGG_SCRIPT || 'https://script.crazyegg.com/pages/scripts/0105/9831.js',
// async: true,
// }
@jamesray
jamesray / wp_site
Created July 8, 2023 01:39
wp cli site commands
NAME
wp site
DESCRIPTION
Creates, deletes, empties, moderates, and lists one or more sites on a multisite installation.
SYNOPSIS
@jamesray
jamesray / gist:7edf4dce4967b1e47f78fd9f90a25435
Created April 14, 2023 17:26
write a google form that connects to a github issue template?
You can't directly create a Google Form that connects to a GitHub issue template. However, you can achieve this by using Google Apps Script to create a custom form submission handler that sends the form data to the GitHub API, which in turn creates a new issue using a specific template.
First, create your Google Form and collect the necessary information for the issue.
Next, follow these steps to create a Google Apps Script to handle form submissions and create a GitHub issue:
Open the Google Form.
Click the three-dot menu in the top right corner and select "Script editor."
In the script editor, replace the default code with the following code:
javascript