This GitHub Actions workflow automates building, pushing, and cleaning up Docker images in GitHub Container Registry (GHCR).
- Triggers on
- Pushes to the
masterbranch. - Pull requests to
master. - Manual workflow dispatch.
- Pushes to the
This GitHub Actions workflow automates building, pushing, and cleaning up Docker images in GitHub Container Registry (GHCR).
master branch.master.| <?php | |
| /** | |
| * Runs a request through PHP-FPM by speaking the FastCGI protocol directly | |
| * over a TCP socket - no webserver in between. Useful to isolate FPM-side | |
| * problems from the webserver, or to benchmark what page generation really | |
| * costs: point it at an app entry script and a route, and you get the raw | |
| * FPM response. | |
| * | |
| * The records are packed by hand (FCGI_BEGIN_REQUEST, FCGI_PARAMS) and the | |
| * response header is unpacked byte by byte, so it also serves as a small |
| <?php | |
| use Symfony\Component\HttpClient\HttpClient; | |
| require __DIR__ . '/vendor/autoload.php'; | |
| $client = HttpClient::create(); | |
| $endpoint = 'http://localhost:9424'; | |
| try { |
| <?php | |
| include '../vendor/autoload.php'; | |
| $classLoader = new \Doctrine\Common\ClassLoader('Entities', __DIR__); | |
| $classLoader->register(); | |
| $classLoader = new \Doctrine\Common\ClassLoader('Proxies', __DIR__); | |
| $classLoader->register(); | |
| // config | |
| $config = new \Doctrine\ORM\Configuration(); |
| <html> | |
| <body> | |
| <p>Here are Webber’s points:</p> | |
| <ul> | |
| <li>If a method can be static, declare it static. Speed improvement is by a factor of 4.</li> | |
| <li>echo is faster than print.(<em>* compare with list from phplens by John Lim</em>)</li> | |
| <li>Use echo’s multiple parameters instead of string concatenation.</li> | |
| <li>Set the maxvalue for your for-loops before and not in the loop.</li> | |
| <li>Unset your variables to free memory, especially large arrays.</li> | |
| <li>Avoid magic like __get, __set, __autoload</li> |
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
|---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
Managing commit signature verification on Mac. The way to auto sign-commits.
gpg2 is installed, run which gpg2 if the command outputs nothing, install GPG Keychain.git config --global gpg.program gpg2, to make sure git uses gpg2 and not gpg.