Floyk com
2 months ago

auto restart Redis server:

  • Edit /etc/systemd/system/multi-user.target.wants/redis.service and add this in the [Service]section, at the bottom:Restart=always
    RestartSec=10s
  • Run sudo systemctl daemon-reload
  • Run sudo systemctl restart redis

It will now restart after 10 seconds every time it crashes.

Floyk com
9 months ago

#fabricjs very good tutorial about how to draw lines or arrow line 👍

Floyk com
Edited 11 months ago

how to set up custom error pages in #laravel?
easy, execute:

                    php artisan vendor:publish --tag=laravel-errors
                  

all of the error pages will be extracted to view/errors/... folder.
You can modify them as you need 

Floyk com
Edited 11 months ago

problems with permissions in #cpanel for the newly installed #laravel app?execute this:😱

                    find /path/to/your/laravel/app -type d -exec chmod 755 {} \;
find /path/to/your/laravel/app -type f -exec chmod 644 {} \;
Floyk com
1 year ago

Problems with youtube-dl
When runing youtube-dl command you get the ouptut:

solution:

                    python3 -m pip install --force-reinstall https://github.com/yt-dlp/yt-dlp/archive/master.tar.gz

// and then run it with
yt-dlp -- youtube_ID
                  

more details here!

Floyk com
1 year ago
Floyk com
1 year ago
Floyk com
1 year ago

#aws set up S3 bucket to be accessed only from limiter range of IPs

Floyk com
1 year ago

#laravel 9 how to add prefix to #jetstream routes? 
open config/jetsream.php and add:

                    'prefix' => 'app', // app will be prefix for all jetstream routes
                  

Floyk com
1 year ago

how to use FB API for creating and updating FB ads?

FB API for FB ads