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: Woo Close Store | |
Plugin URI: https://github.com/gabriserra/woo-close-store | |
Description: Woo Close Store handle store closing phase. | |
Version: 0.1 | |
Author: Gabriele Serra | |
Author URI: https://gabripr0.altervista.org | |
Text Domain: woo-close-store | |
License: MIT |
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
# export Google Credentials service account path | |
export GOOGLE_APPLICATION_CREDENTIALS=~/Keys/da-service-account.json | |
curl \ | |
-vX POST https://texttospeech.googleapis.com/v1/text:synthesize \ | |
-H "Authorization: Bearer $(gcloud auth application-default print-access-token)" \ | |
-H "Content-Type: application/json; charset=utf-8" \ | |
-d @ttsbody.json > synthesize-text.txt # specify your json file | |
# get response and encode as mp3 |
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 | |
cd /var/www/wordpress | |
for site in $(wp site list --field=url) | |
do | |
echo "Checking" $site | |
wp wc --url=$site shop_coupon list --user=<your-admin-email> | grep <"coupon-code"> > /dev/null |
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
static long long irq_to_hwirq(unsigned int irq) | |
{ | |
struct irq_data *irq_data; | |
irq_data = irq_get_irq_data(irq); | |
if (irq_data == NULL) | |
{ | |
pr_err("driver: unable to find irq %u descriptor.\n", irq); | |
return -EINVAL; |