Skip to content

Instantly share code, notes, and snippets.

@deselbi
deselbi / multiple_ssh_setting.md
Created June 3, 2020 13:02 — forked from jexchan/multiple_ssh_setting.md
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 "your_email@youremail.com"
@deselbi
deselbi / fix_auth_migrations.patch
Created February 15, 2017 18:33
Laravel auth migration fix
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'),
@deselbi
deselbi / gist:593b516a5acb7580a0236601218784dd
Last active June 6, 2017 13:15
Laravel queued mailable with pdf attachement
<?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 June 6, 2017 12:08
Encrypt PDF created with laravel DOMPDF
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 15:42
How to apply fix_auth_migration_patch
wget https://raw.githubusercontent.com/deselbi/tools/master/fix_auth_migrations.patch
patch config/database.php < fix_auth_migrations.patch