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
set -e | |
WORKDIR=/home/.appsupport_systemimg_patch | |
TMPWORKDIR="$WORKDIR/tmp" | |
SQUASHFS_ROOT="$TMPWORKDIR/squashfs-root" | |
MOUNT_ROOT="$TMPWORKDIR/systemimg_mount" | |
SYSTEM_IMG=/opt/appsupport/system.img | |
ORIG_IMG_FILE=orig_img_path.txt | |
FEDORA22_REPO=https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/30/Everything/aarch64/os/Packages |
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/python | |
# Copyright 2007 by Tobia Conforto <tobia.conforto@gmail.com> | |
# | |
# This program is free software; you can redistribute it and/or modify it under the terms of the GNU General | |
# Public License as published by the Free Software Foundation; either version 2 of the License, or (at your | |
# option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the | |
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
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
/** | |
* Default coupon editor to enable individual use. | |
* Avoid stacked coupon discount abuse / admin mistakes. | |
* | |
* @see https://gist.github.com/bryceadams/6bb8ff287e1016b933c593d755e25a86 | |
* @since 2020.04.07 | |
*/ | |
add_action( 'woocommerce_coupon_options', static function( $coupon_id, $coupon ) { | |
if ( 'auto-draft' === get_post_status( $coupon_id ) ) { | |
$coupon->set_individual_use( true ); |
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
# This grub.cfg file was created by Lance http://www.pendrivelinux.com | |
# Suggested Entries and the suggestor, if available, will also be noted. | |
# Adding an Unlisted ISO: To try ISO Files that are not yet listed, use | |
# the existing menuentry examples in /boot/grub/grub.cfg and append any | |
# options normally found in the distributions syslinux.cfg file on the | |
# "append" line to the "linux" line of the menu entry. | |
set timeout=10 | |
set default=0 |
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
<?xml version="1.0"?> | |
<psalm | |
errorLevel="1" | |
reportMixedIssues="false" | |
resolveFromConfigFile="true" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns="https://getpsalm.org/schema/config" | |
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd" | |
> | |
<projectFiles> |
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 | |
/* | |
Plugin Name: Less Rewrite Rules | |
Plugin URI: https://conversionready.com | |
Description: Less matching, more speed. Removes "attachment", "feed", "trackback" rewrites. | |
Author: Leho Kraav | |
Author URI: https://conversionready.com | |
Version: 2015.05.01 | |
License: MIT | |
*/ |
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
try { | |
$counts = $client->counts->getCounts( [] ); | |
if ( isset( $counts->type ) && 'count.hash' === $counts->type ) { | |
$pod_name = 'metric'; | |
$pod = pods( | |
$pod_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
diff --git a/embedded/inc/views-templates/wpv-template.class.php b/embedded/inc/views-templates/wpv-template.class.php | |
index 62586ce..52c2ea4 100644 | |
--- a/embedded/inc/views-templates/wpv-template.class.php |
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
<script> | |
(function( $, window, document, undefined ) { | |
/** | |
* `VariationForm.update_variation_values` can only differentiate | |
* variations by `value` attributes. Our secondary dimension is | |
* `data-variation-id`. Memoize original selection here. | |
* | |
* @see {@link https://github.com/woocommerce/woocommerce/blob/2.6.14/assets/js/frontend/add-to-cart-variation.js} | |
* @see {@link https://github.com/woocommerce/woocommerce/issues/12929} |
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
(function(){ | |
// @version 2016.03.11 | |
var experimentID = COPY_PASTE_ID_FROM_URL; | |
window.optimizely = window.optimizely || []; | |
// avoid firing in editor | |
if (window.optimizely.activeExperiments.indexOf(experimentID.toString()) == -1) return; | |
if (typeof window.optimizely.data.experiments[experimentID] !== 'undefined') { |
NewerOlder