Puddinq.com sharing knowledge

Puddinq.com - blog

php storm remove exmpty lines

^ asserts position at start of a line Non-capturing group (?:[\t ]*(?:\r?\n|\r)){1,} {1,} matches the previous token between one and unlimited times, as many times as possible, giving back as needed (greedy) Match a single character present in the list below [\t ] * matches the previous token between zero and unlimited times, as many […]

Use curl to get certificate expiration date

Bash article icon

If you want to get the expiration date for an ssl certificate on a website, you can run the following command: But if the website is not live (dns is not pointing that way), you can make a curl request as if some resolve combination ip-address / domain name is in your hostfile. (without putting […]

Laravel Valet 4 custom local WordPress driver for custom WordPress file path

Using valet has been a joy for years, but my custom local valet driver stopped working after updating to the latest valet (4.1) version due to a different driver folder and the use of namespace (fully php 8 mode). So I updated my local driver for WordPress projects where I hold the WordPress files in […]

Mac generate (more than one) pkk file from private key

You can generate your (first) ssh key with: Then you can see the key Now for FileZilla you might need the pkk file Therefor you need putty While most people will use id_ed25519 or id_rsa as filenames, when using multiple ssh keys it can be useful to give more specific names at {typeNameForYourKeyHere}. When running […]

Remove line from command line history

The cli keeps all commands you type and you can access that history. Other people using the same username can also see all those commands.. sometimes it is necessary to remove something.. here are two solutions Another way is with sed: