Skip to content

Instantly share code, notes, and snippets.

View maykbrito's full-sized avatar
🏠
Working from home

Mayk Brito maykbrito

🏠
Working from home
View GitHub Profile
@maykbrito
maykbrito / index.css
Created March 26, 2022 15:04
trying get this gist inside fronteditor.dev app
:root {
--ff-body: "Heebo", sans-serif;
--ff-heading: "Oswald", sans-serif;
--fs-600: '';
--fs-400: '';
--c-base: 320;
--c-primary-100: hsl(var(--c-base), 30%, 85%);
--c-primary-200: hsl(var(--c-base), 40%, 60%);
@maykbrito
maykbrito / export-import-localStorage-item.js
Created March 23, 2022 19:17
export and import content of some fronteditor.dev project
/* this is for fronteditor.dev to export from some browser and import to another
1. Run this in the console of the browser where you and to copy the Fronteditor's content
2. Paste the results in the browser where you want to add that Fronteditor's content
*/
let itemName = 'fronteditor:' + location.pathname.replace('/', '');
let contentFromLocalstorage = JSON.stringify(localStorage.getItem(itemName))
copy(`localStorage.setItem('${itemName}', ${contentFromLocalstorage})`)
@maykbrito
maykbrito / index.html
Last active March 26, 2022 18:20
Live Carreira Front-end Exterior na Prática
<html class="h-full bg-white">
<head>
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="h-full overflow-hidden">
<form class="mt-6 flex space-x-4" action="#">
<div class="flex-1 min-w-0">
<label for="search" class="sr-only">Search</label>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@maykbrito
maykbrito / frases.json
Last active February 5, 2024 14:01
frases
[
"Não existem limites para o que podemos imaginar, construir e transformar.",
"Juntos, vamos construir o futuro.",
"Esteja no meio de gigantes",
"Seja protagonista do futuro",
"Nós temos o poder de imaginar e construir o futuro.",
"É através das linhas de código que as máquinas ganham vida.",
"A tecnologia muda o mundo. Todas as inovações que estão presentes no nosso dia-a-dia, e as que ainda estão por vir, precisam de um Programador ou de uma Programadora para que se tornem realidade.",
"A união de todo o ecossistema de tecnologia.",
"#BuildTheFuture"
@maykbrito
maykbrito / README.md
Created February 20, 2021 13:44
Generate PDF with NodeJS and Puppeteer. Using ExpressJS, EJS and TailwindCSS to create fake data server

Generate PDF

Using NodeJS and Puppeteer.

Creating a fake data server with ExpressJS, EJS and TailwindCSS.

How to use it.

  1. Add this files do any directory
  2. Run npm install
@maykbrito
maykbrito / index.html
Last active March 31, 2022 14:46
para aula de paginação do youtube https://www.youtube.com/watch?v=6-VDE3H9-WU
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Paginate</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
@maykbrito
maykbrito / index.html
Created April 8, 2020 17:40
youtube-masterclass-node
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My URLS</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>My Links</h1>
@maykbrito
maykbrito / index.html
Last active January 27, 2024 00:51
WS special hands on! - Texto dia 1
<p>
Ficar em casa em períodos longos, não deve ser nada fácil.
</p>
<p>
Iremos catalogar ideias, brincadeiras, jogos, filmes, livros, cursos, dicas e tudo que for necessário para tornar esse momento mais interessante.
</p>
<p>
Comece clicando em ver ideias para ver as ideias cadastradas e contribua adicioando a sua ideia.
</p>

How to dump and import PostgreSQL database

Below some step by step with bash functions example on how to dump your database and restore it to your db server.

✅ Dump the source database to a file.

function pgDumpDB() {
    echo 'Type db user: ' && read DBUSER;
    echo 'Type db name: ' && read DBNAME;
 pg_dump -U $DBNAME -O $DBNAME $DBNAME.sql