Skip to content

Instantly share code, notes, and snippets.

View diego3g's full-sized avatar
🚀
Launching a rocket

Diego Fernandes diego3g

🚀
Launching a rocket
View GitHub Profile
@diego3g
diego3g / NODE.md
Last active May 17, 2025 15:09
VSCode Settings (Updated)

⚠️ Note!

With VSCode version 1.94, the APC extension broke and there is no fix yet.

So, for those having issues with APC after the VSCode update, I recommend downloading the previous version of VSCode for now (https://code.visualstudio.com/updates/v1_93) and setting updates to manual by adding this to the editor's configuration:

"update.mode": "manual",
import React, { Component } from 'react';
import { View, Text, StyleSheet, ScrollView } from 'react-native';
import 'config/ReactotronConfig';
import 'config/DevToolsConfig';
import Post from 'components/Post';
const textos = [
@diego3g
diego3g / Chrome.md
Last active April 12, 2025 13:34
Ambiente DEV

Extensões

  • React Developer Tools
  • Dracula DevTools Theme
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
[alias]
ci = commit
co = checkout
cm = checkout master
cb = checkout -b
st = status -sb
sf = show --name-only
lg = log --pretty=format:'%Cred%h%Creset %C(bold)%cr%Creset %Cgreen<%an>%Creset %s' --max-count=30
incoming = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' ..@{u})
outgoing = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' @{u}..)
import dayjs from 'dayjs'
import { jwtDecode } from 'jwt-decode'
import { NextResponse, URLPattern } from 'next/server'
import type { MiddlewareConfig, NextRequest } from 'next/server'
import { env } from './env'
const baseURL = env.NEXT_PUBLIC_WEB_URL
/**
* When `whenAuthenticated` is `redirect`, the user is redirected to event page when
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export ANDROID_HOME=~/Android/Sdk
export PATH="$PATH:$ANDROID_HOME/tools"
export PATH="$PATH:$ANDROID_HOME/platform-tools"
# Path to your oh-my-zsh installation.
export ZSH="/Users/diegofernandes/.oh-my-zsh"
export PATH="$PATH:/usr/local/bin"
@diego3g
diego3g / extensions.json
Last active February 2, 2025 18:50
VSCode Extensions
[
{
"identifier": {
"id": "vscode.bat"
},
"preRelease": false,
"version": "1.0.0"
},
{
"identifier": {
@diego3g
diego3g / .zshrc
Last active December 19, 2024 17:54
SPACESHIP_PROMPT_ORDER=(
user # Username section
dir # Current directory section
host # Hostname section
git # Git section (git_branch + git_status)
hg # Mercurial section (hg_branch + hg_status)
exec_time # Execution time
line_sep # Line break
vi_mode # Vi-mode indicator
{
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.patterns": {
"package.json": ".eslint*, prettier*, tsconfig*, vite*, pnpm-lock*, bun.lockb, nest*",
"tailwind.config.js": "tailwind.config*, postcss.config*",
".env.local": ".env*",
".env": ".env*"
}
}