Skip to content

Instantly share code, notes, and snippets.

View muzafarali's full-sized avatar

Muzafar Ali muzafarali

View GitHub Profile
<?php
namespace App\Http\Controllers;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Traits\StripeConnect;
use App\Models\StripeAccount;
use Illuminate\Support\Facades\DB;
<?php
namespace App\Traits;
use Stripe\Customer;
use Stripe\Account;
use Stripe\Stripe;
use Stripe\AccountLink;
use Stripe\StripeClient;
use Stripe\OAuth;
@muzafarali
muzafarali / signin.component.html
Created August 11, 2020 15:30
barcode-keyboard
<button type="button" mat-raised-button color="primary" (click)="startScanner()">Encrypted QR-Code Login</button>
@muzafarali
muzafarali / laravel-worker.conf
Last active February 14, 2019 19:11
supervised queue:listen stops working
Hi guys,
i'm facing same problem on my server with laravel 5.6
https://github.com/laravel/framework/issues/4443
https://github.com/laravel/framework/issues/579
here is my supervised
[program:abovecom-laravel-worker]
process_name=%(program_name)s_%(process_num)02d
command=/opt/plesk/php/7.2/bin/php ./core/artisan queue:work --memory=512 --tries=255 --timeout=6000
##
# Default server on https and redirect to correct URL
##
server {
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
ssl on;
ssl_stapling on;
ssl_stapling_verify on;