Tech Rumors
3 subscribers
235K photos
239K links
Download Telegram
dev.to

1. one-liner: read first elements of a huge directory
At a client we have a networked disk with millions of files. I was trying to list the first few files to see what's going on.

ls -l | head takes ages, but here is a Perl one-liner to make it work:

perl -E 'opendir(my $dh, "/huge_dir"); my $c = 0; while (my $d = readdir($dh)) { say $d; exit if ++$c > 3 }'

In a different layout that could be put in a file

use feature 'say';
opendir(my $dh, "/huge_dir");
my $c = 0;
while (my $d = readdir($dh)) {
say $d;
exit if ++$c > 3
}

Explanation:

perl …
#perl #programming #devops #beginners

2. Answer: Getting Class Rap2hpoutre LaravelLogViewerServiceProvider not found error in a school management software
answer re: Getting Class Rap2hpoutre LaravelLogViewerServiceProvider not found error in a school management software

Jan 17 '23

0

I had the same error message while running a migration on a laravel project I cloned from GitHub.
error message
I discovered that this file is part of the package rap2hpoutre/laravel-log-viewer
Please go to their download page to download this composer package.
You can also run the command below:
composer

Open Full Answer…
#laravel #php #composer #webdev

3. Deploying a Laravel App on AWS App Runner
Deploying a containerized app gets easier everyday as cloud providers release new products. One of such products by AWS is AWS App Runner.

AWS App Runner is a fully managed container application service that lets you build, deploy, and run containerized web applications and API services without prior infrastructure or container experience.

Ever want to just deploy an app without the Kubernetes or complex networking overhead? Or have a couple of services to maintain without alot of configuratio…
#laravel #aws #docker #k8s