Skip to content

Instantly share code, notes, and snippets.

@deselbi
deselbi / multiple_ssh_setting.md
Created Jun 3, 2020 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts
View multiple_ssh_setting.md

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 "your_email@youremail.com"
@deselbi
deselbi / gist:593b516a5acb7580a0236601218784dd
Last active Jun 6, 2017
Laravel queued mailable with pdf attachement
View gist:593b516a5acb7580a0236601218784dd
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;
/**
* Usage:
@deselbi
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
deselbi / gist:50c5855d3bc45161e1062f8226296a6f
Created May 25, 2017
How to apply fix_auth_migration_patch
View gist:50c5855d3bc45161e1062f8226296a6f
wget https://raw.githubusercontent.com/deselbi/tools/master/fix_auth_migrations.patch
patch config/database.php < fix_auth_migrations.patch
@deselbi
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
<+>UTF-8
===================================================================
--- config/database.php (date 1487179409000)
+++ config/database.php (revision )
@@ -46,8 +46,8 @@
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),