This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@roquie-hetzner-2 ~ # flynn-host ps | |
ID STATE CREATED CONTROLLER APP CONTROLLER TYPE ERROR | |
roquiehetzner2-2db06c5e-b279-4bd4-af2a-2377bf01188a running 51 seconds ago controller web | |
roquiehetzner2-8cdadeca-a831-46d8-bcfc-8e259a1b6eaf running About a minute ago controller web | |
roquiehetzner2-aba5c7ff-01fc-41db-ae67-391b3a9ea3d4 running 2 minutes ago controller web | |
roquiehetzner2-509d8e5e-a8db-42c1-a0c6-3fc40e980e78 running 3 minutes ago controller web | |
roquiehetzner2-0ed7ad8d-8907-4380-ab34-56bd169bc287 running 4 minutes ago controller web | |
roquiehetzner2-0089d27f-92e3-49c6-b1f8-b9db8dbb89be running 5 minutes ago controller web | |
roquiehetzner2-00b23195-a0d7-46f9-b2de-6f46c12edc1d running 6 minutes ago controller web | |
roquiehetzner2-6762c3be-c500-4328-afb9-4a0a5559b67d running 7 minutes ago controller web |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Criteria; | |
use App\User; | |
use Auth; | |
/** | |
* Глобальный скоуп сужающий | |
* выборку до данных пользователя (where user_id = ${CURRENT_USER_ID}). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// bootstrap/app.php | |
```php | |
<?php | |
$app->extend(\Psr\Log\LoggerInterface::class, function ($logger) { | |
$logger->popHandler(); | |
$logger->pushHandler(new \Monolog\Handler\ErrorLogHandler()); | |
return $logger; | |
}); | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
namespace App\Providers; | |
use Auth; | |
use Domain\SentinelGuard; | |
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// file1 | |
// bind UserRepositoryInterface to EloquentUserRepository object | |
class EloquentUserRepository extends UserRepositoryInterface | |
{ | |
// ... | |
public function all() | |
{ | |
return $this->model->all(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
namespace App\Domain\Common; | |
use Ramsey\Uuid\Uuid; | |
use Ramsey\Uuid\UuidInterface; | |
final class SortableUuid implements \Stringable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
http://amoffat.github.io/sh/ | |
""" | |
import asyncio | |
from collections import deque | |
try: | |
from collections.abc import Mapping | |
except ImportError: # pragma: no cover | |
from collections import Mapping |
OlderNewer