This GitHub Actions workflow automates building, pushing, and cleaning up Docker images in GitHub Container Registry (GHCR).
- Triggers on
- Pushes to the
master
branch. - 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.