Skip to content

Instantly share code, notes, and snippets.

View tiagofrancafernandes's full-sized avatar
😊
Loved by Jesus Christ. PHP/Laravel developer; Linux user; Open-source maker;

Tiago França tiagofrancafernandes

😊
Loved by Jesus Christ. PHP/Laravel developer; Linux user; Open-source maker;
View GitHub Profile
@tiagofrancafernandes
tiagofrancafernandes / ler-emails.php
Created June 26, 2023 02:01 — forked from CViniciusSDias/ler-emails.php
Script para ler e-mails em voz alta usando PHP
<?php
use PhpImap\Mailbox;
require_once 'vendor/autoload.php';
$mailbox = new Mailbox(
'{imap.gmail.com:993/imap/ssl}INBOX',
'seu-email@gmail.com',
'sua senha aqui',
@tiagofrancafernandes
tiagofrancafernandes / gitignore_per_git_branch.md
Last active January 2, 2020 15:35 — forked from wizioo/gitignore_per_git_branch.md
HowTo have specific .gitignore for each git branch

How to have specific .gitignore for each git branch

Objective

My objective is to have some production files ignored on specific branches. Git doesn't allow to do it.

Solution

My solution is to make a general .gitignore file and add .gitignore.branch_name files for the branches I want to add specific file exclusion. I'll use post-checkout hook to copy those .gitignore.branch_name in place of .git/info/exclude each time I go to the branch with git checkout branch_name.