Skip to content

Instantly share code, notes, and snippets.

View savio777's full-sized avatar
💻
studying and working with web developer and mobile

Sávio savio777

💻
studying and working with web developer and mobile
View GitHub Profile
@savio777
savio777 / ExampleComponnt.tsx
Last active December 31, 2023 03:05
Example Type React-native navigation
import { useRoute } from "@react-navigation/native";
const ExampleComponent = () => {
const route = useRoute<IStackAllScreensProps<"LoginToken">>();
const { userId } = route.params;
return <></>;
};
@savio777
savio777 / fix_zsh_history.sh
Created December 22, 2023 14:57
zsh: corrupt history
cd ~
mv .zsh_history .zsh_history_old
strings .zsh_history_old > .zsh_history
fc -R .zsh_history
@savio777
savio777 / portfolio-contact-data.json
Last active December 14, 2023 18:51
portfolio contacts data
{
"aboutMe": {
"name": "Sávio",
"description": "Graduado em análise e desenvolvimento de sistemas. Atualmente trabalho como desenvolvedor Full Stack usando React, React-native, Typescript e NodeJs",
"techs": [
{
"tech": "javascript",
"color": "#000000",
"bgcolor": "#EFD81D"
},
@savio777
savio777 / readme.md
Created October 16, 2023 16:49
Config Eslint

reference

  • install
yarn add eslint --dev
  • run eslint config
yarn run eslint --init
@savio777
savio777 / links.md
Created May 31, 2023 00:13
links importantes

docker

  • permissão do usuário comum ao docker unix:
sudo addgroup --system docker
sudo adduser $USER docker
newgrp docker

git

  • renomear mensagem do último commit:
git commit --amend -m "New commit message."
  • reverter commit:
@savio777
savio777 / mongo_shell.md
Created May 31, 2023 00:09
comandos mongo shell

comandos mongo shell

  • mostrar coleções
show dbs
  • selecionar banco de dados ou criar um se ainda não existe
@savio777
savio777 / jsx.md
Last active May 31, 2023 00:13
react web, next.js e mobile
@savio777
savio777 / README.md
Created February 2, 2022 20:43
Shortcut for indentation in VsCode

Shortcut for indentation in VsCode

  • On Windows: Shift + Alt + F
  • On Mac: Shift + Option + F
  • On Ubuntu: Ctrl + Shift + I