This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* defaults write com.microsoft.APPLICATION_NAME_HERE AppleLanguages '("pt-BR")' | |
| defaults write com.microsoft.Excel AppleLanguages '("pt-BR")' | |
| defaults write com.microsoft.Word AppleLanguages '("pt-BR")' | |
| defaults write com.microsoft.Powerpoint AppleLanguages '("pt-BR")' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Based on https://stackoverflow.com/a/26252993/1665539 | |
| # Show all installed Java versions | |
| /usr/libexec/java_home -V | |
| # Select major version (if unique, otherwise specify full name e.g. 1.8.0_131) | |
| set -x JAVA_HOME (/usr/libexec/java_home -v 1.8) | |
| # Verify | |
| java -version |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { PrismaClient } = require("@prisma/client"); | |
| const prisma = new PrismaClient(); | |
| async function main() { | |
| try { | |
| const mousesCategory = await prisma.category.create({ | |
| data: { | |
| name: "Mouses", | |
| slug: "mouses", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @tailwind base; | |
| @tailwind components; | |
| @tailwind utilities; | |
| @layer base { | |
| :root { | |
| --background: 0 0% 4%; | |
| --foreground: 0 0% 100%; | |
| --card: 0 0% 4%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { PrismaClient } from "@prisma/client"; | |
| declare global { | |
| var cachedPrisma: PrismaClient; | |
| } | |
| let prisma: PrismaClient; | |
| if (process.env.NODE_ENV === "production") { | |
| prisma = new PrismaClient(); | |
| } else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <form action="mailto:[email protected]" method="post" enctype="text/plain"> | |
| <div class="grupo inputs"> | |
| <!-- Campo do nome com legenda "nome" e css de classe "campo" --> | |
| <div class="campo"> | |
| <label for="nome"><strong>Nome</strong></label> | |
| <input placeholder="Nome completo" type="text" name="nome" id="nome" required> | |
| </div> | |
| <!-- Campo do telefone com legenda "telefone" e css de classe "campo" --> | |
| <div class="campo"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Option 1 - changing ssh port, I'm using vscode to edit, but you can use your fav editor. | |
| code ~/.ssh/config | |
| Host github.com | |
| Hostname ssh.github.com | |
| Port 443 | |
| # Option 2 - Use https instead of ssh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # alias | |
| # alias aliascommand 'command' | |
| # alias rmraf 'rm -rf' | |
| # pyenv | |
| set -Ux PYENV_ROOT "$HOME"/.pyenv | |
| status is-login; and pyenv init --path | source | |
| status is-interactive; and pyenv init - | source | |
| status is-interactive; and pyenv virtualenv-init - | source | |
| alias brew="env PATH=(string replace (pyenv root)/shims '' \"\$PATH\") brew" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git config --global push.autoSetupRemote true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Sans jQuery | |
| ## Events | |
| ```javascript | |
| // jQuery | |
| $(document).ready(function() { | |
| // code | |
| }) |
NewerOlder