Skip to content

Instantly share code, notes, and snippets.

gitea | Generating /data/ssh/ssh_host_ed25519_key...
gitea | Generating /data/ssh/ssh_host_rsa_key...
db_1 | 2023-04-07 16:34:31+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.32-1.el8 started.
db_1 | 2023-04-07 16:34:32+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
db_1 | 2023-04-07 16:34:32+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.32-1.el8 started.
db_1 | 2023-04-07 16:34:32+00:00 [Note] [Entrypoint]: Initializing database files
db_1 | 2023-04-07T16:34:32.774096Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.
db_1 | 2023-04-07T16:34:32.774236Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.32) initializing of server in progress as process 80
db_1 | 2023-04-07T16:34:32.917030Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
gitea | Generating /data/ss
class ShowDeviceRequest extends Request
{
public function rules()
{
return [
'deviceID' => 'integer|regex:... // Does not work, since deviceID is a route parameter
];
}
public function authorize()
<?php namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Request;
use View;
use App;
abstract class ApplicationsServiceProvider extends ServiceProvider
{
public function register()
@KuenzelIT
KuenzelIT / AsyncDownloader.php
Created November 25, 2015 17:08
Asynchronously download multiple files with PHP, in this case comics from ruthe.de
<?php
/**
* pthreads extension is needed to execute this script.
* pthreads installation: http://php.net/manual/de/pthreads.installation.php
*/
class AsyncDownloader extends Thread
{
protected $threadId;
protected $host;