Install the OpenSSL on Debian based systems
sudo apt-get install openssl| /** | |
| * Adding Custom GTIN Meta Field | |
| * Save meta data to DB | |
| */ | |
| // add GTIN input field | |
| add_action('woocommerce_product_options_inventory_product_data','woocom_simple_product_gtin_field', 10, 1 ); | |
| function woocom_simple_product_gtin_field(){ | |
| global $woocommerce, $post; | |
| $product = new WC_Product(get_the_ID()); | |
| echo '<div id="gtin_attr" class="options_group">'; |
| <?php | |
| //Don't forget to change the namespace! | |
| namespace App\Traits; | |
| use Cron\CronExpression; | |
| use Illuminate\Support\Carbon; | |
| use Illuminate\Console\Scheduling\ManagesFrequencies; | |
| trait Schedulable{ |
| <div | |
| x-data="recaptcha()" | |
| x-init="init" | |
| @recaptcha.window="execute" | |
| ></div> | |
| @push('scripts') | |
| <script src="https://www.google.com/recaptcha/api.js?render=explicit"></script> | |
| <script> |
So you want to commit changes generated by a GitHub Actions workflow back to your repo, and have that commit signed automatically?
Here's one way this is possible, using the REST API, the auto-generated GITHUB_TOKEN, and the GitHub CLI, gh, which is pre-installed on GitHub's hosted Actions runners.
You don't have to configure the git client, just add a step like the one below... Be sure to edit FILE_TO_COMMIT and DESTINATION_BRANCH to suit your needs.
| @props([ | |
| 'percentage' => 0, | |
| 'failed' => false | |
| ]) | |
| @php | |
| $done = $failed || $percentage == 100; | |
| @endphp | |
| <div {{ $attributes->merge(['class' => ' space-y-1'])->whereDoesntStartWith('wire:poll') }} |
"C:\Program Files (x86)\GnuPG\bin\gpg-connect-agent.exe" /bye
This will only load the agent at Startup, and you won't be bothered by any UI or tray agent.%userprofile%/.ssh directory (Windows dir is important for performance).| # .github/workflows/fix-php-cs.yml | |
| on: | |
| pull_request: | |
| name: Coding Standards | |
| jobs: | |
| open-pr-for-cs-violations: | |
| name: PHP-CS-Fixer | |
| runs-on: ubuntu-20.04 |