Skip to content

Instantly share code, notes, and snippets.

View Crell's full-sized avatar

Larry Garfield Crell

View GitHub Profile
FetchError: request to http://solr.internal:8080/solr/maincore/update? failed, reason: connect ECONNREFUSED 169.254.143.220:8080
at ClientRequest.<anonymous> (/app/node_modules/node-fetch/lib/index.js:1455:11)
at ClientRequest.emit (events.js:314:20)
at Socket.socketErrorListener (_http_client.js:469:9)
at Socket.emit (events.js:314:20)
at emitErrorNT (internal/streams/destroy.js:100:8)
at emitErrorCloseNT (internal/streams/destroy.js:68:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
type: 'system',
errno: 'ECONNREFUSED',
@Crell
Crell / benchmark.php
Last active December 30, 2020 20:32 — forked from olleharstedt/benchmark.js
Clone benchmark
<?php
const ITERS = 1000000;
class QueryBuilder {
public $select;
public $from;
public $where;
public function withSelect($sel) {
@Crell
Crell / psr-7-now.php
Last active January 10, 2023 15:43
Immutable options, PSR-7 example
<?php
// PSR-7 today
class Request implements RequestInterface
{
private UriInterface $uri;
private array $headers = [];
private string $method = 'GET';
private string $version = '1.1';
@Crell
Crell / .lando.yml
Last active December 21, 2024 19:39
Running Lando in GitHub Actions
name: myproject
recipe: laravel
config:
php: '8.1'
via: nginx
database: mysql:5.7
webroot: public
xdebug: true
services:
appserver: