This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created to download Zoom Cloud recordings that do not have downloads enabled | |
* Intended to be used as a bookmarklet - fetches embedded player video source and makes it available as a link to download. | |
* July 2022 | |
**/ | |
(function(){ | |
//get all <video> tags from the page -- this will return an HTMLCollection, NOT an Array | |
let videos = document.getElementsByTagName('video'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/ * | |
Add modified to list of acceptable options for orderby param | |
Allows you to fetch orders at /wp-json/wc/v3/orders/?orderby=modified&order=desc|asc | |
*/ | |
add_filter( "rest_shop_order_collection_params", 'air_add_modified_to_param_validation',10); | |
function air_add_modified_to_param_validation($params){ | |
if(isset($params['orderby']) && isset($params['orderby']['enum']) && is_array($params['orderby']['enum'])) | |
$params['orderby']['enum'][] = "modified"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Fallback logic for image alt tags | |
* Ref: https://wordpress.stackexchange.com/a/175179/10269 | |
* Filter each get_post_meta request - if it's a request for image alt tag, we make sure it exists or supply a fallback. | |
* Fallback is saved to the image to reduce overhead on future requests | |
* To get really fancy, consider future use of AWS Rekognition APIs or https://cloud.google.com/vision/ for otehr SEO-specific image APIs | |
*/ | |
function air_image_alt_tag_fallback($metadata, $object_id, $meta_key, $single){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
listen 443 ssl; | |
server_name {{DOMAINS_HERE}}; | |
root {vvv_path_to_site}/wordpress; | |
error_log {vvv_path_to_site}/log/error.log; | |
access_log {vvv_path_to_site}/log/access.log; | |
set $upstream {upstream}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Provision WordPress Stable | |
DOMAIN=`get_primary_host "${VVV_SITE_NAME}".test` | |
DOMAINS=`get_hosts "${DOMAIN}"` | |
SITE_TITLE=`get_config_value 'site_title' "${DOMAIN}"` | |
WP_VERSION=`get_config_value 'wp_version' 'latest'` | |
WP_TYPE=`get_config_value 'wp_type' "single"` | |
DB_NAME=`get_config_value 'db_name' "${VVV_SITE_NAME}"` | |
DB_NAME=${DB_NAME//[\\\/\.\<\>\:\"\'\|\?\!\*-]/} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="alumnispaces-map" data-university="unc_" style="height: 700px;" ></div> | |
<script src="https://d3dhhryxzq9zg6.cloudfront.net/satellite/js/as_satellite-1.3.5.min.js" type="text/javascript"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="http://madeinsgf.com/?ref=madeinsgf" class="MIS_MARK MIS_DARK" style="font-family: 'Helvetica', sans-serif; text-transform: uppercase; font-weight: 400; text-align: center; font-size: 14px; line-height: 18px; letter-spacing: 0.08em; text-decoration: none; color: #444444; padding: 5px; box-sizing: border-box;" title="Made in Springfield, MO">made in <svg class="MIS_LOGO" style="margin-bottom: -10px; fill: #444444 !important; enable-background:new 0 0 80 80;" width="30" height="30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 80 80" xml:space="preserve"><path d="M74.9,57.1l-2.2-0.7c-0.1,0-0.3-0.1-0.3-0.3l-1.3-2.7c0-0.1-0.1-0.1-0.1-0.2L70.9,49c0-0.1-0.1-0.3-0.2-0.4l-3.4-3.4 c0,0,0,0-0.1-0.1L62,41.4c-0.1-0.1-0.2-0.2-0.2-0.4l-0.4-2.5c0-0.1,0-0.2,0-0.3l1.9-5.3c0.1-0.2,0-0.5-0.2-0.6l-2.6-1.4 c-0.2-0.1-0.4-0.1-0.6,0L59,31.6c-0.3,0.2-0.7,0.1-0.8-0.3L56.7,27c0-0.1-0.1-0.2-0.1-0.2l-6.5-6.2c-0.1-0.1-0.1-0.1-0.1-0.2 l-1.4-4.8c0-0.1,0-0.2, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="http://madeinsgf.com/?ref=madeinsgf" class="MIS_MARK MIS_LIGHT" style="font-family: 'Helvetica', sans-serif; text-transform: uppercase; font-weight: 400; text-align: center; font-size: 14px; line-height: 18px; letter-spacing: 0.08em; text-decoration: none; color: #FFFFFF; padding: 5px; box-sizing: border-box;" title="Made in Springfield, MO">made in <svg class="MIS_LOGO" style="margin-bottom: -10px; fill: #FFFFFF !important; enable-background:new 0 0 80 80;" width="30" height="30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 80 80" xml:space="preserve"><path d="M74.9,57.1l-2.2-0.7c-0.1,0-0.3-0.1-0.3-0.3l-1.3-2.7c0-0.1-0.1-0.1-0.1-0.2L70.9,49c0-0.1-0.1-0.3-0.2-0.4l-3.4-3.4 c0,0,0,0-0.1-0.1L62,41.4c-0.1-0.1-0.2-0.2-0.2-0.4l-0.4-2.5c0-0.1,0-0.2,0-0.3l1.9-5.3c0.1-0.2,0-0.5-0.2-0.6l-2.6-1.4 c-0.2-0.1-0.4-0.1-0.6,0L59,31.6c-0.3,0.2-0.7,0.1-0.8-0.3L56.7,27c0-0.1-0.1-0.2-0.1-0.2l-6.5-6.2c-0.1-0.1-0.1-0.1-0.1-0.2 l-1.4-4.8c0-0.1,0-0.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="satdemo"></div> | |
<script src="https://d3dhhryxzq9zg6.cloudfront.net/satellite/scripts/AlumniSpacesSatellite-1.1.1.min.js?network=mizzou_&id=satdemo&color=F1B82D&label=club&logo=https://d3dhhryxzq9zg6.cloudfront.net/satellite/images/MAA.svg" type="text/javascript"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "bigstate_100", | |
"fields": { | |
"total_events": "0", | |
"site_name": "Tornado Alley Tigers", | |
"total_comments": "0", | |
"as_site_id": "bigstate_100", | |
"twitter": "0", | |
"linkedin": "0", |
NewerOlder