This file contains hidden or 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
| curl -O https://wordpress.org/latest.zip | |
| unzip latest.zip | |
| mv wordpress site | |
| rm latest.zip |
This file contains hidden or 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: WooCommerce Remove Billing Fields for Free Virtual Products | |
| * Plugin URI: https://gist.github.com/BFTrick/7873168 | |
| * Description: Remove the billing address fields for free virtual orders | |
| * Author: Patrick Rauland | |
| * Author URI: http://patrickrauland.com/ | |
| * Version: 2.0 | |
| * | |
| * This program is free software: you can redistribute it and/or modify |
This file contains hidden or 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
| # BEGIN WordPress | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteRule ^index\.php$ - [L] | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteRule . /index.php [L] | |
| </IfModule> |
This file contains hidden or 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: WooCommerce API Key Warning | |
| * Description: Warns administrators about WooCommerce API keys before user deletion | |
| * Version: 1.0.0 | |
| * Author: Patrick Rauland | |
| * Requires PHP: 8.2 | |
| * Requires Plugins: woocommerce | |
| * | |
| * @package WooCommerce_API_Key_Warning |
This file contains hidden or 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: WooCommerce Make Sale Prices Accessible | |
| Plugin URI: https://gist.github.com/BFTrick/47b0710a6d27332d0c109cfe75c58be6 | |
| Description: Make WooCommerce sale prices accessible | |
| Version: 1.0 | |
| Author: Patrick Rauland | |
| Author URI: http://speakinginbytes.com | |
| License: GPL2 | |
| License URI: https://www.gnu.org/licenses/gpl-2.0.html |
This file contains hidden or 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
| // only add one force sell product to the cart no matter how many of the original product are added | |
| function my_wc_force_sell_add_to_cart_product( $product ){ | |
| $product['quantity'] = 1; | |
| return $product; | |
| } | |
| add_filter( 'wc_force_sell_add_to_cart_product', 'my_wc_force_sell_add_to_cart_product' ); | |
| // when a synced force sell product is updated always set it to 1 | |
| function my_wc_force_sell_update_quantity( $quantity, $product ){ | |
| return 1; |
This file contains hidden or 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 python3 | |
| from gql import gql, Client | |
| from gql.transport.requests import RequestsHTTPTransport | |
| from gql.transport.exceptions import TransportQueryError | |
| import json | |
| import time | |
| import os | |
| bearer = "YOURBEARERTOKEN" |
This file contains hidden or 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 python3 | |
| from gql import gql, Client | |
| from gql.transport.requests import RequestsHTTPTransport | |
| from gql.transport.exceptions import TransportQueryError | |
| import json | |
| import time | |
| import os | |
| bearer = "YOURBEARERTOKEN" |
This file contains hidden or 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 python3 | |
| from gql import gql, Client | |
| from gql.transport.requests import RequestsHTTPTransport | |
| from gql.transport.exceptions import TransportQueryError | |
| import json | |
| import time | |
| import os | |
| bearer = ADDYOURTOKENHERE |
This file contains hidden or 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 | |
| curl -X POST -H "Content-Type: application/json" -d \ | |
| '{ "username": "EMAILHERE", | |
| "password": "PWHERE" | |
| }' \ | |
| "https://public-api.shiphero.com/auth/token" |
NewerOlder