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
| #!/bin/bash | |
| # requires jq | |
| # uses the PiHole 6 API to enable / disable and check the status of a group. | |
| # usage: piholeGroupStatus.sh PiHoleAPIAddress PiHoleAPIPWD GroupName Action | |
| # Action can be enable / disable / status | |
| # How to use in Home Assistant |
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
| javascript:void(open('http://archive.today/?run=1&url='+encodeURIComponent(document.location))) |
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
| /** | |
| * Will put bookings into a Confirmed status if they were paid for via COD. | |
| * | |
| * @param int $order_id The order id | |
| */ | |
| function set_cod_bookings_confirmed_20170825( $order_id ) { | |
| // Get the order, then make sure its payment method is COD. | |
| $order = wc_get_order( $order_id ); | |
| if ( 'cod' !== $order->get_payment_method() ) { |