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
Klipper has a TON of commands you can use to query the configuration, setup your hardware, and use in your macros. | |
However, the commands are buried within pages of text and easy enough to overlook. This list is not exhaustive, | |
these are just the ones I need to remember but due to age, I dont. | |
The ones used for setup/tuning are near the top. | |
Klipper Commands: | |
QUERY_ENDSTOPS |
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 | |
/** | |
* Adds a WP-CLI command fa:tools export-acf-field. | |
* | |
* @package FA-Toolkit | |
* @since 1.0.8 | |
*/ | |
namespace FAToolkit\Tools; |
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 | |
const STREAM_OPEN_FOR_INCLUDE = 128; | |
final class HardCoreDebugLogger | |
{ | |
public static function register(string $output = 'php://stdout') | |
{ | |
register_tick_function(function () use ($output) { | |
$bt = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1); |
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: Delete Schema WP-CLI Command | |
* Description: Deletes 'rank_math_rich_snippet' meta key and runs delete_schema function for WooCommerce products with 'rank_math_schema_Off' value. | |
* Version: 1.0.0 | |
* Author: Stephen Feather | |
* Copywrite: 2023 Stephen Feather | |
* License: GPL2 | |
* | |
* @comment As a Rank Math Pro customer we were pretty pissed to find over 60k products with schema disabled. This plugin is a one-off to fix that. |
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 | |
/** | |
* Modification to allow the filtering of products in PW Bulk Edit based | |
* upon the number of categories a product is in. | |
* | |
* REF: https://www.pimwick.com/pw-bulk-edit/ | |
* | |
* @author Stephen Feather | |
* @copyright Copyright (c) 2023 | |
*/ |
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
#!/bin/bash | |
# Script: grep_and_remove.sh | |
# Author: Stephen Feather | |
# Co-author: OpenAI (ChatGPT) | |
# Copyright (c) 2023 | |
# All rights reserved. | |
# License: CC-BY-SA (https://creativecommons.org/licenses/by-sa/4.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
/** | |
* Parses the FFL number and extracts relevant information. | |
* | |
* @param {string} fflNumber - The FFL number to parse. | |
* @returns {object} - An object containing the parsed FFL information or an error object. | |
* If parsing is successful, the object will have the following properties: | |
* - ffl_number: The full FFL number. | |
* - region: The region of the FFL. | |
* - irs_district: The IRS district of the FFL. | |
* - fips_code: The FIPS code of the FFL. |
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
/** | |
* Parses the FFL number and extracts relevant information. | |
* | |
* @param string $fflNumber The FFL number to parse. | |
* @return array An array containing the parsed FFL information or an error object. | |
* If parsing is successful, the array will have the following keys: | |
* - ffl_number: The full FFL number. | |
* - region: The region of the FFL. | |
* - irs_district: The IRS district of the FFL. | |
* - fips_code: The FIPS code of the FFL. |
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
<deviceMapping backends="rawInput;directInput;macosXSdl"> | |
<productKey productId="1422" vendorId="1038" /> | |
<productName vendorId="1038"> | |
<keyword text="nimbus+" /> | |
</productName> | |
<category>gamepad</category> <!-- gamepad, wheel, joystick, farmWheel, farmSidePanel --> | |
<buttonMappings> | |
<buttonMapping physical="0" logical="0" label="A" /> | |
<buttonMapping physical="1" logical="1" label="B" /> | |
<buttonMapping physical="2" logical="2" label="X" /> |
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
#!/bin/bash | |
# | |
# upload_and_run.sh | |
# Author: Stephen Feather | |
# Copyright (c) 2023 Stephen Feather | |
# License: CC BY-SA 4.0 | |
if [ -z "$1" ]; then | |
echo "Error: URL argument is required." |
NewerOlder