Skip to content

Instantly share code, notes, and snippets.

View arukompas's full-sized avatar
Fully booked

Arunas Skirius arukompas

Fully booked
View GitHub Profile
sanchezzzhak / clickhouse-get-tables-size.sql
Created January 18, 2018 13:43
clickhouse get tables size
SELECT table,
formatReadableSize(sum(bytes)) as size,
min(min_date) as min_date,
max(max_date) as max_date
WHERE active
GROUP BY table
ukautz / s3-in-laravel.php
Last active August 26, 2022 14:44
Using S3 client directly in Laravel
/** @var \Illuminate\Filesystem\FilesystemAdapter $fs */
$fs = \Storage::disk('object_storage');
/** @var \League\Flysystem\Filesystem $driver */
$driver = $fs->getDriver();
/** @var \League\Flysystem\AwsS3v3\AwsS3Adapter $adapter */
$adapter = $driver->getAdapter();