Skip to content

Instantly share code, notes, and snippets.

View Ahed91's full-sized avatar
🛩️
I want to fly

ʿAhed ʿid Ahed91

🛩️
I want to fly
View GitHub Profile
@Ahed91
Ahed91 / laravelQueueOnce1.conf
Created September 2, 2018 06:48
my setup Laravel queue worker
[program:laravelQueueOnce1]
command=bash -c 'sleep 5 && php artisan queue:work --once --queue=blocked'
directory=/home/ahed/project/laravel/
autostart=true
autorestart=true
redirect_stderr=true
user=ahed ; should use www-data
stdout_logfile=syslog
stderr_logfile=syslog
autostart=true
<?php
namespace App\Jobs;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Support\Facades\Mail;
@Ahed91
Ahed91 / config.exs
Created March 22, 2020 08:35
phoenix protobuf gist
config :mime, :types, %{
"application/x-protobuf" => ["protobuf"]
}
@Ahed91
Ahed91 / Controller.php
Created October 19, 2020 08:48
Madara DataTables (simple alternative to Yajra DataTables)
<?php
namespace App\Http\Controllers;
use App\Http\Controllers\Controller;
class HomeController extends Controller
{
// define route Route::post('datatable', 'Controller@datatable')->name('datatable');