Skip to content

Instantly share code, notes, and snippets.

deselbi /
Created Jun 3, 2020 — forked from jexchan/
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C ""
deselbi / gist:593b516a5acb7580a0236601218784dd
Last active Jun 6, 2017
Laravel queued mailable with pdf attachement
View gist:593b516a5acb7580a0236601218784dd
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;
* Usage:
deselbi / gist:dd7184dcaed8891f1eb0b5cc7379ce98
Last active Jun 6, 2017
Encrypt PDF created with laravel DOMPDF
View gist:dd7184dcaed8891f1eb0b5cc7379ce98
use \PDF;
use Symfony\Component\Process\InputStream;
use Symfony\Component\Process\Process;
$pdf = PDF::loadHTML($html);
$stream = $pdf->stream();
deselbi / gist:50c5855d3bc45161e1062f8226296a6f
Created May 25, 2017
How to apply fix_auth_migration_patch
View gist:50c5855d3bc45161e1062f8226296a6f
patch config/database.php < fix_auth_migrations.patch
deselbi / fix_auth_migrations.patch
Created Feb 15, 2017
Laravel auth migration fix
View fix_auth_migrations.patch
Index: config/database.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
--- config/database.php (date 1487179409000)
+++ config/database.php (revision )
@@ -46,8 +46,8 @@
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),