Forwarded from Laravel World
API-шлюз — аутентификация пользователя без использования базы данных
https://medium.com/@sirajul.anik/api-gateway-authenticating-user-without-db-storage-in-laravel-lumen-3ef1c1f300d3
https://medium.com/@sirajul.anik/api-gateway-authenticating-user-without-db-storage-in-laravel-lumen-3ef1c1f300d3
Medium
API gateway — Authenticating user without DB storage in Laravel/Lumen
Goal
Forwarded from Laravel World
Бесконечная прокрутка в Laravel
https://devdojo.com/bobbyiliev/how-to-add-a-simple-infinite-scroll-pagination-to-laravel
https://devdojo.com/bobbyiliev/how-to-add-a-simple-infinite-scroll-pagination-to-laravel
DevDojo
How to Add a Simple Infinite Scroll Pagination to Laravel?
Introduction In order to optimize your website load time, you should not load too many resources on one page as it could result in longer page load times. That is why it is good to use pagination to l...
Forwarded from Laravel World
Очереди в Laravel. Шаг за шагом на примере.
https://itsolutionstuff.com/post/laravel-8-queue-step-by-step-tutorial-exampleexample.html
https://itsolutionstuff.com/post/laravel-8-queue-step-by-step-tutorial-exampleexample.html
Itsolutionstuff
Laravel 8 Queue Step by Step Tutorial Example
laravel 8 queue example, laravel 8 queue step by step, laravel 8 queue example, laravel 8 mail queue example, laravel 8 queue database driver, laravel 8 queue driver database not working, laravel 8 queue listen
Forwarded from Находки в опенсорсе
Build automation for the post-container era. It's like Makefile and Dockerfile had a baby.
Earthly is a build automation tool for the post-container era. It allows you to execute all your builds in containers. This makes them self-contained, reproducible, portable and parallel. You can use Earthly to create Docker images and artifacts (eg binaries, packages, arbitrary files).
Earthly is meant to be used both on your development machine and in CI. It can run on top of popular CI systems (like Jenkins, Circle, GitHub Actions). It is typically the layer between language-specific tooling (like maven, gradle, npm, pip, go build) and the CI build spec.
Features:
- Reproduce CI failures
- Builds that run the same for everyone
- From zero to working build in minutes
- Build anything via containers - build images or standalone artifacts (binaries, packages, arbitrary files)
- Programming language agnostic - allows use of language-specific build tooling
- Reproducible builds - does not depend on user's local installation. Runs the same locally, as in CI
- Parallelism that just works - builds in parallel without special considerations the user has to make
- Mono-repo friendly - ability to split the build definitions across a vast directory hierarchy
- Multi-repo friendly - ability to import builds or artifacts from other repositories
https://github.com/earthly/earthly
#docker #devops #go
Example:
Output:
Earthly is a build automation tool for the post-container era. It allows you to execute all your builds in containers. This makes them self-contained, reproducible, portable and parallel. You can use Earthly to create Docker images and artifacts (eg binaries, packages, arbitrary files).
Earthly is meant to be used both on your development machine and in CI. It can run on top of popular CI systems (like Jenkins, Circle, GitHub Actions). It is typically the layer between language-specific tooling (like maven, gradle, npm, pip, go build) and the CI build spec.
Features:
- Reproduce CI failures
- Builds that run the same for everyone
- From zero to working build in minutes
- Build anything via containers - build images or standalone artifacts (binaries, packages, arbitrary files)
- Programming language agnostic - allows use of language-specific build tooling
- Reproducible builds - does not depend on user's local installation. Runs the same locally, as in CI
- Parallelism that just works - builds in parallel without special considerations the user has to make
- Mono-repo friendly - ability to split the build definitions across a vast directory hierarchy
- Multi-repo friendly - ability to import builds or artifacts from other repositories
https://github.com/earthly/earthly
#docker #devops #go
Example:
# Earthfile
FROM golang:1.13-alpine3.11
RUN apk --update --no-cache add git
WORKDIR /go-example
all:
BUILD +lint
BUILD +docker
build:
COPY main.go .
RUN go build -o build/go-example main.go
SAVE ARTIFACT build/go-example AS LOCAL build/go-example
lint:
RUN go get golang.org/x/lint/golint
COPY main.go .
RUN golint -set_exit_status ./...
docker:
COPY +build/go-example .
ENTRYPOINT ["/go-example/go-example"]
SAVE IMAGE go-example:latest
Output:
Forwarded from Веб-страница
Шпаргалка по работе с Jenkins включила в себя:
— инструкцию по установке на Ubuntu;
— информацию о Pipeline;
— наиболее популярные плагины;
— типы Jenkins Jobs;
— советы и рекомендации.
Всё это с примерами и в формате PDF:
https://tprg.ru/wfrX
#jenkins #devops
— инструкцию по установке на Ubuntu;
— информацию о Pipeline;
— наиболее популярные плагины;
— типы Jenkins Jobs;
— советы и рекомендации.
Всё это с примерами и в формате PDF:
https://tprg.ru/wfrX
#jenkins #devops
Forwarded from IT 1ess0ns
📌 Контейнеризация
▪️ От Docker до Kubernetes: историческая ретроспектива – Смотреть
▪️ Введение в Docker – Смотреть
▪️ Введение в Kubernetes. Часть 1. Установка кластера – Смотреть
▪️ Введение в Kubernetes. Часть 2. Поды и сервисы – Смотреть
▪️ Введение в Kubernetes. Часть 3. Горизонтальное маштабирование – Смотреть
▪️ Введение в Kubernetes. Часть 4. Отказоустойчивость для клиентов – Смотреть
▪️ Введение в Kubernetes. Часть 5. Интеграция с NFS – Смотреть
@ITbook_ru
▪️ От Docker до Kubernetes: историческая ретроспектива – Смотреть
▪️ Введение в Docker – Смотреть
▪️ Введение в Kubernetes. Часть 1. Установка кластера – Смотреть
▪️ Введение в Kubernetes. Часть 2. Поды и сервисы – Смотреть
▪️ Введение в Kubernetes. Часть 3. Горизонтальное маштабирование – Смотреть
▪️ Введение в Kubernetes. Часть 4. Отказоустойчивость для клиентов – Смотреть
▪️ Введение в Kubernetes. Часть 5. Интеграция с NFS – Смотреть
@ITbook_ru
YouTube
От Docker до Kubernetes: историческая ретроспектива
В этом видео я расскажу о технологии контейнеризации и о том какие этапы прошла она в своем развитии.
Forwarded from Laravel World
Использование Google Drive как хранилище в Laravel
https://robindirksen.nl/blog/google-drive-storage-as-filesystem-in-laravel
https://robindirksen.nl/blog/google-drive-storage-as-filesystem-in-laravel
Robin Dirksen
How to use Google Drive storage as filesystem in Laravel
For some projects, we use Google Drive (in combination with a personal @gmail.com account or G Suite account) as a storage provider in Laravel projects. In this post, I'll show how you can set up Google Drive as a storage disk via the Laravel filesystem.
Forwarded from Laravel World
Резолвим зависимости с помощью сервис-контейнера
https://www.amitmerchant.com/resolving-dependencies-conditionally-using-service-container-in-laravel/
https://www.amitmerchant.com/resolving-dependencies-conditionally-using-service-container-in-laravel/
Amit Merchant - A blog on PHP, JavaScript, and more
Resolving dependencies conditionally using service container in Laravel
One of the standard ways to resolve dependencies in Laravel is by using service container. Essentially, if you want to inject something which can be swappable anytime, you can do this by “biding” that into the service container.
Forwarded from DevOps&SRE Library
croc
croc is a tool that allows any two computers to simply and securely transfer files and folders. AFAIK, croc is the only CLI file-transfer tool that does all of the following:https://github.com/schollz/croc
- allows any two computers to transfer data (using a relay)
- provides end-to-end encryption (using PAKE)
enables easy cross-platform transfers (Windows, Linux, Mac)
- allows multiple file transfers
- allows resuming transfers that are interrupted
- local server or port-forwarding not needed
- ipv6-first with ipv4 fallback
Forwarded from PHP Books
Современный РНР. Новые возможности и передовой опыт
Автор: Джош Локхарт
Год издания: 2016
Скачать книгу
#php #русский
Автор: Джош Локхарт
Год издания: 2016
Скачать книгу
#php #русский
WeakMap в PHP 8
https://platform.sh/blog/2020/php-80-feature-focus-weak-maps/
https://platform.sh/blog/2020/php-80-feature-focus-weak-maps/
Platform.sh
PHP 8.0 feature focus: <span>Weak maps</span>
In our last episode, we discussed PHP 8’s new match() expression. Today we look at an edge case feature that will save your edge case.
PHP 7.4 introduced the concept of Weak References, which allow an object to be referenced without incrementing its reference…
PHP 7.4 introduced the concept of Weak References, which allow an object to be referenced without incrementing its reference…
Forwarded from Laravel World
30 тысяч тестов за 5 минут. Параллельное тестирование с помощью Paratest PhpUnit
https://blog.mollie.com/how-to-run-over-30k-tests-in-under-5-minutes-b43907e88d51
https://blog.mollie.com/how-to-run-over-30k-tests-in-under-5-minutes-b43907e88d51
Medium
How to run over 30k tests in under 5 minutes
When I started my professional career I had no idea what a unit test looked like. I think I skipped that part on W3Schools. It didn’t…
Forwarded from Laravel World
Отправка приветственного письма пользователю после регистрации на вашем сайте — это отличный способ начать с ним работу и дать ему понять, что ему здесь рады. В этой статье я покажу вам, как легко настроить отправку электронной почты в Laravel при помощи Gmail SMTP!
https://laravel.demiart.ru/send-email-using-gmail-smtp-server/
https://laravel.demiart.ru/send-email-using-gmail-smtp-server/
Уроки Laravel
Отправка почты через Gmail SMTP | Уроки Laravel
Урок о том, как очень просто можно отправлять почту из приложения Laravel при помощи Gmail SMTP сервера.
Forwarded from Laravel World
Руководство по Laravel Gates
https://devdojo.com/tnylea/laravel-gates
https://devdojo.com/tnylea/laravel-gates
DevDojo
Laravel Gates
Laravel Gates allows you to authorize users from accessing certain areas of your application. You can easily define gates in your application and then use them to allow or deny access. Let's start thi...
Forwarded from Laravel World
Жадная загрузка для Моделей в маршрутах
https://cam.bio/posts/eager-loading-in-route-models/
https://cam.bio/posts/eager-loading-in-route-models/
cam.bio
Eager Loading in Route Models
TLDR: Override the resolveRouteBinding method on your Eloquent model in order to eager-load relations that you know will be used.
The problem: Limits To Route Model Binding In a Laravel application I’m writing, I have a few dozen routes that all have basically…
The problem: Limits To Route Model Binding In a Laravel application I’m writing, I have a few dozen routes that all have basically…
Forwarded from Laravel World
О модулях в Laravel
https://lorisleiva.com/on-modules-and-separation-of-concerns/
https://lorisleiva.com/on-modules-and-separation-of-concerns/
Forwarded from Находки в опенсорсе
Typesense is a fast, typo-tolerant search engine for building delightful search experiences.
Features:
- Typo Tolerance: Handles typographical errors elegantly, out-of-the-box.
- Simple and Delightful: Simple to set-up, integrate with, operate and scale.
- Blazing Fast: Meticulously architected from the ground-up for low-latency (<50ms) instant searches.
- Tunable Ranking: Easy to tailor your search results to perfection.
- Sorting: Sort results based on a particular field at query time (helpful for features like "Sort by Price (asc)").
- Faceting & Filtering: Drill down and refine results.
- Grouping & Distinct: Group similar results together to show more variety.
- Scoped API Keys: Generate API keys that only allow access to certain records.
- Curation & Merchandizing: Boost particular records to a fixed position in the search results, to feature them.
- Raft-based Clustering: Setup a distributed cluster that is highly available.
- Seamless Version Upgrades: As new versions of Typesense come out, upgrading is as simple as swapping out the binary and restarting Typesense.
https://github.com/typesense/typesense
#cpp
Features:
- Typo Tolerance: Handles typographical errors elegantly, out-of-the-box.
- Simple and Delightful: Simple to set-up, integrate with, operate and scale.
- Blazing Fast: Meticulously architected from the ground-up for low-latency (<50ms) instant searches.
- Tunable Ranking: Easy to tailor your search results to perfection.
- Sorting: Sort results based on a particular field at query time (helpful for features like "Sort by Price (asc)").
- Faceting & Filtering: Drill down and refine results.
- Grouping & Distinct: Group similar results together to show more variety.
- Scoped API Keys: Generate API keys that only allow access to certain records.
- Curation & Merchandizing: Boost particular records to a fixed position in the search results, to feature them.
- Raft-based Clustering: Setup a distributed cluster that is highly available.
- Seamless Version Upgrades: As new versions of Typesense come out, upgrading is as simple as swapping out the binary and restarting Typesense.
https://github.com/typesense/typesense
#cpp