VS Code (Windows, macOS, Linux) — Free and Open Source with a nice GUI. Edited a 3.6 GB JSON file, loaded in a minute. You must have enough RAM to load the files. Free read-only viewers: glogg (Windows, macOS, Linux) – Confirmed to handle multi-GB files. Its main feature is […]
Рубрика: Без рубрики
Bash For Loop Examples
How do I use bash for loop to repeat certain task under Linux / UNIX operating system? How do I set infinite loops using for statement? How do I use three-parameter for loop control expression?A ‘for loop’ is a bash programming language statement which allows code to be repeatedly executed. […]
How to delete a remote git tag?
You just need to push an ’empty’ reference to the remote tag name: git push origin :tagname Or, more expressively, use the —delete option (or -d if your git version is older than 1.8.0): git push —delete origin tagname Note that git has tag namespace and branch namespace so you […]
How to revert initial git commit?
You just need to delete the branch you are on. You can’t use git branch -D as this has a safety check against doing this. You can use update-ref to do this. git update-ref -d HEAD Do not use rm -rf .git or anything like this as this will completely wipe your entire repository including all other branches […]
Laravel delete queued jobs using redis horizon artisan command
The question is how to delete all jobs which are queued in Laravel when you are using redis as the Queue driver. To do this there are some options: Option-1: general Using the laravel-queue-clear package which is developed by Craig Morris that provides a useful tool to delete all kinds […]
Pivot tables and many-to-many relationships
Today I want to talk about a feature of Laravel which is really useful but can be potentially difficult to understand at first. Pivot table is an example of intermediate table with relationships between two other “main” tables. Real-life example of pivot tables In official documentation they show the example […]
Первый бот на PHP для ВКонтакте
Здравствуйте, хабровчане. В этой публикации я напишу о том, как сделать своего первго чат-бота для ВКонтакте. Думаю, что опытным программистам это будет не интересно, а вот тем, кто только начинает свой путь, будет интересно, так как я ещё и сам не очень далеко ушёл и понимаю проблемы начинающих. И предупреждаю […]
Спам в календаре Google — как избавиться
Если вы пользуетесь календарем Google на вашем Android устройстве или компьютере, либо другим приложением-календарем, которое синхронизируется с Google, время от времени вы можете получать спам приглашения на мероприятия с сомнительным содержанием, от которых не плохо было бы избавиться. В этой короткой инструкции — о том, как отключить спам в Google […]
Laravel difference between Events, Listeners, Jobs, Queues
Although they all can work together, I find it’s easiest to look at Events and Listeners together, and then Jobs and Queues together. Events and Listeners Events are objects that hold data that are «fired», the Laravel event system «catches» the event object when it is fired, and then all […]
Laravel skip model accessor
his is the correct way // that skips mutators $model->getOriginal(‘name’); https://laravel.com/api/5.2/Illuminate/Database/Eloquent/Model.html#method_getOriginal getOriginal() doesn’t just skip mutators, it also returns the «original» value of the field at the time the object was read from the database. So if you have since modified the model’s property, this won’t return your modified value, […]