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',
<script setup>
import { useSlots, useAttrs } from 'vue'

const slots = useSlots()
const attrs = useAttrs()
</script>

<template>
 
@tiagofrancafernandes
tiagofrancafernandes / git-ps1-pure.sh
Last active January 28, 2023 01:30
git-ps1-pure | linuxbashrcgit-puro
export HISTCONTROL=ignoredups:erasedups:ignorespace
## Bash PS1 with git branch
gbranch()
{
if [ -d .git ]; then
local ref_branch=$(git symbolic-ref --short HEAD 2> /dev/null)
echo BRANCH ["${ref_branch:-}"];
fi
}

[RASCUNHO]

Esboço da Obra Perfeita de Cristo

Você acha que Deus o Pai ou Deus o Filho faz algo pela metade? Crê que a morte de Cristo na Cruz não foi o suficiente para te salvar? Crê que obras podem salvar ou ajudar a salvar sua alma?

@tiagofrancafernandes
tiagofrancafernandes / core.php
Last active June 1, 2022 15:18
Extract Laravel core for use outside the framework
<?php
// https://gist.github.com/tiagofrancafernandes/8c3cdbbd7b391ef6cefa9a0d8d1af80d
/*-------- START LARAVEL OUTSIDE ---------*/
/*
To use Laravel core without then
If you whant to use core by CLI without artisan
*/
require_once __DIR__.'/../../vendor/autoload.php';//Full path to file maybe need to change
$app = require_once __DIR__.'/../../bootstrap/app.php';//Full path to file maybe need to change
@tiagofrancafernandes
tiagofrancafernandes / devsql_postgresql
Last active August 16, 2023 17:21
dev-sql-snippets
#Instalando e usando How To Install and Use PostgreSQL 14 on Ubuntu 20
echo "deb [arch=amd64] http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main" > /etc/apt/sources.list.d/pgdg.list
--
#Instalando e usando How To Install and Use PostgreSQL on Ubuntu 18.04 | DigitalOcean
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-ubuntu-18-04
-- Docker
https://www.youtube.com/watch?v=A8dErdDMqb0
@tiagofrancafernandes
tiagofrancafernandes / anchor-links.html
Last active February 2, 2024 13:01
dev-CSS-snippets
@celestecastillo0
celestecastillo0 / index.php
Created October 27, 2021 23:51
DeWeb act5 UII función sin parámetro y retorno
<?php
function cuadrado($núm)
{
return $núm * $núm;
}
echo cuadrado(4); // imprime '16'.
echo "<br>Celeste Castillo Flores ";
echo"<br>5J";
?>
@tiagofrancafernandes
tiagofrancafernandes / alpine-fade-transition.html
Last active June 26, 2023 01:58
dev-alpinejs_transitions_snippets
<!--
https://codepen.io/tiagofranca/pen/BaZpzrN
https://jsfiddle.net/TiagoFranca/c1gL598j/
-->
<style>
[x-cloak] {display: none !important;}
.transition-500ms, .transition {
-webkit-transition: opacity 0.5s ease-in-out;
-moz-transition: opacity 0.5s ease-in-out;
-ms-transition: opacity 0.5s ease-in-out;