Laravel – Horizon & Totem

Lâu rồi không update bài gì cho SoulEvil nên nhân tiện post linh tinh 1 chút về 2 món này. Horizon Okay define 1 chút về Horizon. Giả sử có file conf Supervisor sau [program:laravel-worker] process_name=%(program_name)s_%(process_num)02d command=php /path/to/your/laravel/install/artisan queue:work --sleep=3 --tries=3 autostart=true autorestart=true user=your_local_user numprocs=8 redirect_stderr=true stdout_logfile=/path/to/your/laravel/install/queue.log stderr_logfile=/path/to/your/laravel/install/queue.err.log Oki em Supervisor này có nhiệm xử... Continue Reading →

How to install qBittorrent on Ubuntu Server

sudo apt install qbittorrent Or use PPA to get latest version sudo add-apt-repository ppa:qbittorrent-team/qbittorrent-stable qBittorrent can use with Desktop UI. On server we don't have it, Web interface instead. In this case we'll use qbittorrent-nox sudo apt install qbittorrent-nox Now you can start qbittorrent-nox by easily via command. But it's not recommended. We'll use as... Continue Reading →

How to use Google Drive in Laravel

Install package Google Drive API V3 composer require nao-pon/flysystem-google-drive:~1.1 Thêm provider GoogleDriveServiceProvider vào file config/app.php 'providers' => [ // ... App\Providers\GoogleDriveServiceProvider::class, // ... ], Nội dung provider tham khảo ở dưới https://github.com/ivanvermeyen/laravel-google-drive-demo/blob/master/app/Providers/GoogleDriveServiceProvider.php Update tiếp config/filesystems.php 'disks' => [ // ... 'google' => [ 'driver' => 'google', 'clientId' => env('GOOGLE_DRIVE_CLIENT_ID'), 'clientSecret' => env('GOOGLE_DRIVE_CLIENT_SECRET'), 'refreshToken' => env('GOOGLE_DRIVE_REFRESH_TOKEN'),... Continue Reading →

XGallery vs Google Drive

Flickr . ! Feature này được develop để đưa photos download từ Flickr qua XGallery lên thẳng Google Drive luôn. Như vậy giảm tải cho local storage, dễ dàng sharing hơn. Tất nhiên cái giá phải trả là trả cho Google Drive. Vậy feature này work sao Dĩ nhiên đầu tiên là download photos (... Continue Reading →

Blog at WordPress.com.

Up ↑