💬
- https://portfolio-ten-gray-50.vercel.app/
- in/diego-horvatti
- diegohorvatti
This file contains 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 { Elysia, t as Type } from 'elysia' | |
import cors from '@elysiajs/cors' | |
import { openApi } from '@/middlewares/open-api' | |
import { rateLimit } from '@/middlewares/rate-limit' | |
import { MongoClient, Db, Collection, Document, Filter, ObjectId } from 'mongodb' | |
import { NODE_ENV, version } from '@/constants/config' | |
import { generateFilterSchema } from '@/shared' |
This file contains 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
#!/bin/bash | |
# Função de ajuda | |
show_help() { | |
echo "Uso: $0 --dmg <caminho_para_o_arquivo.dmg> --usb <dispositivo_usb>" | |
echo | |
echo "Exemplo: $0 --dmg ./sonoma.dmg --usb /dev/sdb" | |
exit 1 | |
} |
This file contains 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
sudo shutdown -h +60 && for i in {60..1}; do echo -e "\033[1;33mDesligando em $i minutos...\033[0m"; sleep 60; done; sudo shutdown -h now |
This file contains 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
#!/bin/bash | |
# Configurações | |
TIME=30m | |
LOG="/tmp/inativo.log" | |
STOP_FILE="/tmp/inativo.stop" | |
# Verifica se o comando xset está disponível | |
if ! which xset >/dev/null; then | |
echo "Erro: o comando xset não está disponível." >&2 |
This file contains 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
[ | |
{ | |
"key": "shift+alt+1", | |
"command": "numberedBookmarks.toggleBookmark1", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "shift+cmd+1", | |
"command": "-numberedBookmarks.toggleBookmark1", | |
"when": "editorTextFocus" |
This file contains 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
# Binarios de C | |
/.exe | |
*/.exe |
This file contains 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
#include <stdio.h> | |
int main(){ | |
return 0; | |
} |
This file contains 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
#include <stdio.h> | |
#include <time.h> //clock(), CLOCKS_PER_SEC e clock_t | |
int main(void){ | |
printf(" %s", "Ler 3 valores e escrevê-los em ordem crescente.\n\n"); | |
int maior, menor, piloto=3, notas[piloto], cache_maior=0; | |
maior=menor=0; |
This file contains 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
<style jsx>{` | |
#component{ | |
background: url(${projects[projectIndex].cover}); | |
width: 100vw; | |
height: 30vh; | |
} | |
`}</style> |
This file contains 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
#date | |
# Path to your oh-my-zsh installation. | |
export PATH=$PATH:$GOPATH/bin | |
export ZSH="$HOME/.oh-my-zsh" | |
export TERM="xterm-256color" | |
fpath+=${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions/src | |
#colors | |
alias ls="colorls --group-directories-first --almost-all" |
NewerOlder