Instructions for how to install a WordPress plugin that is stored in a Gist (example).
There are three ways to do it:
| {"rules":[{ | |
| "class": "InteractiveRule", | |
| "selector" : "figure.wp-block-embed", | |
| "properties" : { | |
| "interactive.iframe" : { | |
| "type" : "children", | |
| "selector" : "div.wp-block-embed__wrapper" | |
| } | |
| } | |
| }] |
| #============================================================================= | |
| # dark_powered.toml --- dark powered configuration example for SpaceVim | |
| # Copyright (c) 2016-2017 Wang Shidong & Contributors | |
| # Author: Wang Shidong < wsdjeg at 163.com > | |
| # URL: https://spacevim.org | |
| # License: GPLv3 | |
| #============================================================================= | |
| # All SpaceVim option below [option] section | |
| [options] |
Instructions for how to install a WordPress plugin that is stored in a Gist (example).
There are three ways to do it:
| <?php | |
| /** | |
| * Shipping method id: rp_table_rate | |
| * You can use any ID here and replace rp_table_rate to add this field to your shipping method settings page. | |
| */ | |
| add_filter( 'woocommerce_settings_api_form_fields_rp_table_rate', 'ibenic_add_postcodes_field_a_shipping_method' ); | |
| /** | |
| * Add Postcodes field to the Table Rate |
| #!/usr/bin/env bash | |
| # import an MS SQL .bak backup file to an MS SQL database, then export all | |
| # tables to csv. run this script as `import.sh <filename>`. It expects to be | |
| # run in the same directory as the backup file. | |
| # this is only tested on my mac (OS X Catalina). I tried to stick to posix, but | |
| # It will probably require some tweaking for you. I hope it gives a general | |
| # sense of what you need to do at the very least. |
| [alias] | |
| backup-create = "!f() { git branch -f backup-$(git rev-parse --abbrev-ref HEAD) && echo 'Backup created. Use git backup-restore to restore.'; }; f" | |
| backup-restore = "!f() { echo 'Are you sure you want to overwrite the current branch with the latest backup? This cannot be undone!'; select result in Yes No; do [[ $result == "Yes" ]] && git reset --hard backup-$(git rev-parse --abbrev-ref HEAD) && echo 'Backup restored.'; break; done; }; f" |
| # Unofficial Hombrew Cask for Audacity 2.3.2 (recent 64-bit version) | |
| # Made entirely for fun and to demonstrate how to get around fosshub's limitations. | |
| # Problem: Audacity's binary is hosted on fosshub and they don't provide a fixed url! The seems to intentionally try to prevent "hot-linking". | |
| # Solution: Make a request to fosshub's special XHR endpoint to get the signed download url. Then just pass that URL to Homebrew | |
| require 'net/http' | |
| require 'json' | |
| require 'uri' |
| { | |
| "rules": | |
| [{ | |
| "class": "TextNodeRule" | |
| }, { | |
| "class": "PassThroughRule", | |
| "selector": "html" | |
| }, { | |
| "class": "PassThroughRule", | |
| "selector": "head" |
| <?php | |
| /** | |
| * AMP Query Monitor Compat | |
| * | |
| * @package AMP_Query_Monitor_Compat | |
| * @author Weston Ruter, Google | |
| * @license GPL-2.0-or-later | |
| * @copyright 2019 Google LLC | |
| * | |
| * @wordpress-plugin |