Parallelize curl requests

This is my shell script: for i in `seq 1 $1`; do filename=randomfile$(uuidgen).txt head -c $2 </dev/urandom > $filename checksum256=$(sha256sum $filename | awk ‘{ print $1 }’) attrs=$(jq -n –arg cf “$checksum256” ‘{ “confidential”:”N”, “transactionId”: “sdf”, “codiDirCorp”: “CorpCode”, “expiration”: “10/10/2025”, “description”: “desc”, “locked”: “N”, “title”: “titol”, “docHash”: $cf }’) curl -X POST \ ‘http://localhost:8083/documents?application=RDOCUI&user=nif’ \…

Details

How to get product count with categories (or tags) in Single Product WooComerce

i want display number product each category contains on Single Product Woocommerce, like this: I find in meta.php: <?php echo wc_get_product_category_list( $product->get_id(), ‘, ‘, ‘<span class=”posted_in”>’ . _n( ‘Category:’, ‘Categories:’, count( $product->get_category_ids() ), ‘woocommerce’ ) . ‘ ‘, ‘</span>’ ); ?> How can i fix it to display number product? Thanks for your help

Details

Vertx use uploaded images in html

I am able to upload files at the default location. router.route().handler( BodyHandler.create() .setBodyLimit(500 * KB) ); router.post(“/admin/add”).handler(adminActions::createNewItem); This body handler puts file in file-uploads. This is the code that uploads files: public void createNewItem(RoutingContext context) { var request = context.request(); var type = context.request().getFormAttribute(“type”); // other code… for(var f : context.fileUploads()) { System.out.println(f.fileName()); } }…

Details

Bitmovin player on Safari does not load captions selection options from media SourceConfig

I’m using the Bitmovin player in an Angular App. I’ve configured the player as follows and defined the callback this._player = new Player(this.videoPlayer.nativeElement, { …bitmovinConfig, events: { // other code removed [SubtitleAdded]: () => this.triggerCaptionChange(), // other code removed }, }); triggerCaptionChange() { const captions = this._player.subtitles.list() as MediaCaption[]; console.log(captions); // other code removed }…

Details