Loading Start Scripts for GitBash on Windows
I use GitBash as my shell on Windows. Below are the scripts I normally load including git ssh agent. Useful git aliases:
I use GitBash as my shell on Windows. Below are the scripts I normally load including git ssh agent. Useful git aliases:
Отношение YouTube к авторскому праву состоит таким образом, чтобы защитить себя (YouTube) от возможных исков, которые могут подать большие компании. Для YouTube маленький человек в этом отношении не стоит на первом плане. Добросовестное использование YouTube поддерживает принцип добросовестного использования произвений третьиих лиц. Когда в Вашем YouTube влоге используюется произведение третьих лиц, следует придерживаться следующих правил,…
I have been using great package by Beyondcode laravel-websockets. Recently I tried to connect to the websocket server in a new application and got the following error “failed: WebSocket is closed before the connection is established”. Strangely enough this error was manifested in Chrome and not in Firefox. After digging a little bit I found…
Sometimes your website may be making more redirects than necessary to account for https and stripping or adding trailing slash.
Since an API client is a boundary between your code and the outside world you should write as little code as possible to implement it. The client should strictly do its job by sending a request and returning a response. That is why we don’t really test the clients themselves but rather the code that processes the response from the client.
Sometimes you need to block access from certain IP addresses to your web site. It is easy to do in .htaccess file if you are running Apache. What if your server is behind a load balancer ? The code below lets you block IP addresses when your server is behind AWS load balancer.
When setting up a new PHP application one should consider how to manage certain housekeeping tasks such as exception handling, logging, and mail notifications.
Recently Beyondcode came out with a web sockets package for Laravel. For my mailroom project I decided to add push notifications when a service receives a webhook. This a great use case for Laravel WebSockets package. In this article we will take a look at how to install it as a service using Docker and use…
You can use the following query to see who is using your database resources SELECT max(user) as user, count(*) as connections_count, db from information_schema.processlist GROUP BY db order by connections_count desc;
The backbone of Laravel is service container. Service container is used for resolving classes and dependency injection. Container comes as a standalone package, so you don’t have to have Laravel installed to use it. Service container can be very handy when testing. Let’s look at how we can use it . Our basic set up…