Skip to content

Instantly share code, notes, and snippets.

View JoKenPo's full-sized avatar
👽
sup!

Eduardo Florêncio JoKenPo

👽
sup!
View GitHub Profile
@JoKenPo
JoKenPo / mcp_settings.json
Created July 12, 2025 17:43
List of my MCP config
{
"mcpServers": {
"sequential-thinking": {
"timeout": 60,
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sequential-thinking"
]
@JoKenPo
JoKenPo / brew.install.MD
Created February 7, 2025 13:34
install brew without sudo

Homebrew is an open-source software package manager generally used on MacOS systems, but also available for Linux — and it is quite useful for vendor-locked machines or accounts with limited privileges, i.e., no sudo.

Although not officially supported, this guide presents a way to install the software limited to the user space, which may be handy for some use cases.

Install brew First obtain the package and extract its contents to your home folder with:

mkdir -p ~/.local/Homebrew && curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C ~/.local/Homebrew

@JoKenPo
JoKenPo / github+gitlab.MD
Last active December 20, 2024 00:13
Como usar uma conta/email para o Gitlab e outra para o Github

Usar chaves SSH para múltiplas contas

Se você está usando SSH para autenticação, pode configurar chaves separadas para GitLab e GitHub.

Crie uma nova chave SSH para cada conta:

bash ssh-keygen -t rsa -b 4096 -C "[email protected]" Slve o arquivo com um nome diferente, como id_rsa_github.

const AWS = require('aws-sdk');
// Configurando o SSM para usar o LocalStack
const ssm = new AWS.SSM({
endpoint: 'http://localhost:4566', // Endpoint do LocalStack
region: 'us-east-1', // Região que você definiu
accessKeyId: 'test', // Credenciais fictícias para usar localmente
secretAccessKey: 'test',
});
@JoKenPo
JoKenPo / .zshrc
Created August 19, 2024 21:39
.zshrc updated to WSL2 2024
# zmodload zsh/zprof
# skip_global_compinit=1
# Speeds up load time
DISABLE_UPDATE_PROMPT=true
# Perform compinit only once a day.
autoload -Uz compinit
@JoKenPo
JoKenPo / nextjs dev
Created February 22, 2024 15:18
vscode profile to nextjs
{"name":"nextjs dev","icon":"record-keys","settings":"{\"settings\":\"{\\r\\n \\\"workbench.iconTheme\\\": \\\"material-icon-theme\\\",\\r\\n \\\"workbench.colorTheme\\\": \\\"JoKenKai\\\",\\r\\n \\\"workbench.productIconTheme\\\": \\\"fluent-icons\\\",\\r\\n \\\"terminal.integrated.env.windows\\\": {},\\r\\n \\\"console-ninja.featureSet\\\": \\\"Community\\\",\\r\\n // Configurações da fonte JetBrains Mono\\r\\n // \\\"editor.fontFamily\\\": \\\"JetBrainsMono NF, JetBrains Mono, Consolas, 'Courier New', monospace\\\",\\r\\n \\\"editor.fontLigatures\\\": true,\\r\\n \\\"workbench.startupEditor\\\": \\\"newUntitledFile\\\",\\r\\n \\\"explorer.compactFolders\\\": true,\\r\\n \\\"explorer.fileNesting.enabled\\\": true,\\r\\n \\\"explorer.fileNesting.patterns\\\": {\\r\\n \\\"package.json\\\": \\\"package-lock.*, .eslint*, tsconfig*, yarn.lock\\\",\\r\\n \\\"tailwind.config.js\\\": \\\"tailwind.config*, postcss.config*\\\",\\r\\n \\\".env.local\\\": \\\".en
@JoKenPo
JoKenPo / Perfis para Visual Studio Code.md
Created February 21, 2024 18:18 — forked from jamesgsilva/Perfis para Visual Studio Code.md
Diferentes "Perfis" no VS Code para alternar configurações e extensões facilmente

Perfis para Visual Studio Code

Adotar o Visual Studio Code como editor de código/texto padrão para diversas tecnologias (Javascript, GO, Java) não é uma escolha fácil.

Muitas vezes fazer alterações nas configurações (tema, fonte, etc), e gerenciar extensões (ativar/desativar) para cada tipo de projeto é um trabalho tedioso.

Opções avançadas de linha de comando

Felizmente o VSCode pode ser iniciado pela linha de comando com opções avançadas para carregar configurações e extensões de um diretório especifico.

@JoKenPo
JoKenPo / tutorial.md
Created February 6, 2024 20:21 — forked from Makeshift/tutorial.md
Tutorial for automatically syncing an Obsidian vault with Git on an Android device

How to sync Obsidian with Git on Android

Limitations

  • If Termux is closed in the background by Android, the cron service will stop updating your repository and you must open Termux again. Refer to instructions for your device model to disable the killing of certain background applications.
  • This may negatively affect your devices battery life. I'm not entirely sure yet.

Setup

import React, { useState } from "react";
import {
format,
startOfWeek,
addDays,
startOfMonth,
endOfMonth,
endOfWeek,
isSameMonth,
isSameDay,
@JoKenPo
JoKenPo / test.yml
Created August 22, 2023 01:06
basic yarn jest test github actions
name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main