Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
name: listfiles | |
on: | |
workflow_dispatch: | |
jobs: | |
list-png-files: | |
runs-on: ubuntu-latest | |
outputs: | |
file: ${{ steps.set-files.outputs.file }} |
<?php | |
/** | |
* Disables repeat purchase for products / variations | |
* | |
* @param bool $purchasable true if product can be purchased | |
* @param \WC_Product $product the WooCommerce product | |
* @return bool $purchasable the updated is_purchasable check | |
*/ | |
function sv_disable_repeat_purchase( $purchasable, $product ) { |
var ffmpeg = require('ffmpeg'); | |
try { | |
var process = new ffmpeg('example.mp4'); | |
process.then(function (video) { | |
console.log('The video is ready to be processed'); | |
var watermarkPath = 'watermark-suissa.png', | |
newFilepath = './video-com-watermark.mp4', | |
settings = { | |
position : "SE" // Position: NE NC NW SE SC SW C CE CW |
<?php | |
/** | |
* Add a custom feed to WordPress. | |
* | |
* The feed will be rendered through the wp-includes/feed-rss2.php template | |
* and avaiable under example.com/feed/{$feed_slug}. | |
* | |
* Note: Don't forget to flush the rewrite rules once. | |
* | |
* @author Dominik Schilling |
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)