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 | |
| $url = '/path/to/script.php'; | |
| $env = [ | |
| 'REQUEST_METHOD' => 'GET', | |
| 'SCRIPT_FILENAME' => $url, | |
| ]; | |
| $service_port = 9000; | |
| $address = '127.0.0.1'; |
| <?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.