Skip to content

Instantly share code, notes, and snippets.

View taija's full-sized avatar

Taija Tevia-Clark taija

View GitHub Profile
@taija
taija / gist:acf2ee09875b8550b89866bdae2897c1
Last active June 28, 2022 21:19
Helpful WP CLI Commands
# Update Timezone for all sites in Multitise:
wp site list --field=url | xargs -n1 -I % wp --url=% option update timezone_string "America/Los_Angeles"
# Regenerate All Thumbnails everywhere!
wp site list --field=url | xargs -n1 -I % wp --url=% media regenerate --skip-delete --only-missing --yes
# Delete user from Multisite. Reassign should be wp-admin's user ID. 83 is for forms.bellevuecollege.edu
wp site list --field=url | xargs -n1 -I % wp --url=% user delete 38 --reassign=83
wp user delete 38 --network
openapi: 3.0.1
info:
title: BC Data API
description: Get BC Data!
version: "1.3"
servers:
- url: 'https://www2.bellevuecollege.edu'
paths:
/data/api/v1/classes/{quarter}/{subject}:
get:
@taija
taija / Contract Killer 3.md
Created March 23, 2019 17:31
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

@taija
taija / uptime-robot-microsoft-teams
Created May 15, 2017 14:31
Webhook for integrating Uptime Robot with Microsoft Teams
{
"text": " *alertDetails* - ID: *monitorID*. URL: [*monitorURL*](*monitorURL*)",
"title": "*monitorFriendlyName* is *alertTypeFriendlyName*"
}
sudo chown -R www-data:www-data wpm/
<% if rs("UnusualActionID") ="XX" then
response.write " Please contact the Cashier's Office to discuss the block on your records."
elseif rs("UnusualActionID") ="CE" Then
response.write " Please contact the Career Education Options Office to discuss the block on your records at 425-564-4035"
elseif rs("UnusualActionID") ="CM" then
response.write " Please contact the Registration Office for further information at 425-564-2222 or [email protected]"
elseif rs("UnusualActionID") ="CO" then
response.write " Please contact the Registration Office for further information at 425-564-2222 or [email protected]"
elseif rs("UnusualActionID") ="WR" then
response.write " Please contact the Worker Retraining Office in B131 for further information at 425-564-4054"
@taija
taija / release.sh
Created August 1, 2016 23:11 — forked from bclinkinbeard/release.sh
Bash script to automate the Git Flow tag/release process
#!/bin/bash
# current Git branch
branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
# v1.0.0, v1.5.2, etc.
versionLabel=v$1
# establish branch and tag name variables
devBranch=develop
/* Test functiom to disable all Gravity Forms */
add_filter( 'gform_pre_render', 'disable_all_forms' );
function disable_all_forms( $form ) {
//$form = htmlentities($form);
echo '<pre>';
print_r($form);
echo '</pre>';
$form['title'] = 'This form is temporarily disabled';
<?php
/*
Plugin Name: Email Fixes
Plugin URI: http://www.bellevuecollege.edu
Description: This plugin prevents 'password changed' emails in response to CAS updating data. Workaround for bug introduced in WP 4.3.
Author: Bellevue College Information Technology Services
Version: 1.1
Author URI: http://www.bellevuecollege.edu
*/
@taija
taija / gist:5c4a68ed8c18f7482c7c
Last active August 29, 2015 14:24
Clubs Plugin flush fix
function clubs_rewrite_flush() {
// First, we "add" the custom post type via the above written function.
// Note: "add" is written with quotes, as CPTs don't get added to the DB,
// They are only referenced in the post_type column with a post entry,
// when you add a post of this CPT.
// Both the custom post type and the custom taxonomy need to be called in this instance
create_club_post_type();
create_clubs_taxonomies();