Command “wc -l” displays wrong count of lines, possibly because each line starts with a comma?

I have a czv.gz file and when issuing “less” command it looks like this COLUMN1,COLUMN2,COLUMN3 ,value1,value2,value3 ,value4,value5,value6 … There are thousands of lines in a file but when I issue wc -l myfile.csv.gz I get the output something like this: 4 myfile.csv.gz I suspect that the comma char at the start of each line is…

Details

How can I quickly create all folders named {Single|Multi}Lane_{Single|Dual}Carriageway_{USA|Europe}

In Bash or Zsh, what is the shortest way to create a folder for each possible combination of substrings? Is there maybe even a notation such as mkdir {Single|Multi}Lane_{Single|Dual}Carriageway_{USA|Europe} which should result in the creation of SingleLane_SingleCarriageway_USA MultiLane_SingleCarriageway_USA SingleLane_DualCarriageway_USA MultiLane_DualCarriageway_USA SingleLane_SingleCarriageway_Europe MultiLane_SingleCarriageway_Europe SingleLane_DualCarriageway_Europe MultiLane_DualCarriageway_Europe My substrings also may have more than two options, such as…

Details

Place product field value as variable in php

I have created a new field using ACF for woocommerce. The field is called “position” and has default value 52. Now I want this value as a php variable in a image generation script. Inside one function I have: $position = get_field(‘position’); and echo ‘<input type=”hidden” name=”position2″ value=”‘.$position.'” id=”position2″ >’; At frontend I see that…

Details

How to avoid downtime during MySQL RDS SSL Certs rotation

If you’ve received the following email from AWS: Update Your Amazon RDS SSL/TLS Certificates by February 5, 2020, you probably aware that SSL certs rotation procedure will cause an outage even for Amazon Aurora https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL-certificate-rotation.html My question is: Is there a way to avoid downtime during MySQL RDS SSL Certs rotation?

Details