To make things simple, we're going to make a semi-structured way to display a mailing address.
We're going to start with a file tree that looks like this:
address-block
├ blocks
| ├ address.jsx
| #!/bin/bash | |
| # updating repositories | |
| sudo apt update | |
| # installing build tools and python | |
| sudo apt install build-essential python | |
| # installing nodejs | |
| curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - |
| #!/bin/bash | |
| ### | |
| ### my-script — does one thing well | |
| ### | |
| ### Usage: | |
| ### my-script <input> <output> | |
| ### | |
| ### Options: | |
| ### <input> Input file to read. | |
| ### <output> Output file to write. Use '-' for stdout. |
| <?php | |
| namespace Sstalle\php7cc; | |
| use PhpParser\PrettyPrinter\Standard as StandardPrettyPrinter; | |
| use Sstalle\php7cc\CompatibilityViolation\CheckMetadata; | |
| use Sstalle\php7cc\CompatibilityViolation\ContextInterface; | |
| use Sstalle\php7cc\CompatibilityViolation\Message; | |
| class CLIResultPrinter implements ResultPrinterInterface |
| <?php | |
| /** | |
| * For use with Amazon S3 and CloudFront by Delicious Brains | |
| * | |
| * Upload this file to your installation and trigger it with WP-CLI: | |
| * wp eval-file as3cf-upload-missing-media-library-items-to-s3.php | |
| */ | |
| global $as3cf; |
| $ curl --dump-header - localhost:12345 | |
| HTTP/1.0 404 Not Found | |
| Content-Type: text/html | |
| Content-Length: 43 | |
| Date: Fri, 05 Dec 2014 17:48:56 +0000 | |
| <html> | |
| <body> | |
| <h1>WUT</h1> | |
| </html> |