Skip to content

Instantly share code, notes, and snippets.

View gmoraiz's full-sized avatar

Gabriel Morais Silva gmoraiz

  • São Vicente, SP, Brazil
View GitHub Profile
@gmoraiz
gmoraiz / SETUP_FIGMA_MCP_WSL.md
Created July 1, 2026 19:30 — forked from QuentinFrc/SETUP_FIGMA_MCP_WSL.md
Setup Figma MCP (Windows | WSL2)

MCP Figma Configuration with WSL2

This guide explains how to configure the MCP Figma server running on Windows to be accessible from Claude Code in WSL2.

Problem

The MCP Figma server runs on Windows at 127.0.0.1:3845, but Claude Code in WSL2 cannot access it directly because 127.0.0.1 in WSL refers to WSL's localhost, not Windows' localhost.

Solution

@gmoraiz
gmoraiz / remove_node_modules.sh
Last active December 20, 2023 16:15
command to remove all node_modules directories inside current directory
find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +
@gmoraiz
gmoraiz / fixbootmbr.txt
Created November 30, 2019 17:55
Depois de ter instalado o debian num outro ssd, meu windows não inicializou mais!!! Depois de um mês, alguns comandos me salvaram / Fix bootmgr is missing / Fix Falta bootmgr
Arranjar um pendrive bootavel com o windows, abrir o prompt e ir rodando estes comandos na fé!!!
sfc/scannow
/chkdsk C: /f (Esse salvou o "Volume does not recognize...")
bootrec /rebuildbcd
bootrec /fixmbr
bootrec /scanos
bootrec /fixboot
bcdboot C:\windows /s C: (Usei na tentativa de resolver o "Acesso Negado" no fixboot, mas não adiantou)
bootsect/nt60 sys (Esse foi o cara... O bendito resolveu o "Acesso negado" no fixboot)
@gmoraiz
gmoraiz / regex.dart
Last active December 23, 2019 16:48
dart regex to get username and hashtag like twitter
void main() {
RegExp exp = new RegExp(r"([#,@][^\s#\@]*)");
String str = "#😍Parse@my@@#string#string2###eaeae#ça#12351faf";
Iterable<RegExpMatch> matches = exp.allMatches(str);
matches.map((x) => x[0]).forEach((m) => print(m));
}
adb kill-server
sudo adb usb
@gmoraiz
gmoraiz / rm_emulator5562_offline.sh
Last active April 5, 2026 00:28
remove emulator-5562 offline from adb devices
#Native Instruments software uses PORT 5562 ON TCP (NTKDaemon)
#Run CMD as Administrador and write:
netstat -ano | findstr :5563
taskkill /PID <PID> /F
@gmoraiz
gmoraiz / suplementos_alimentares.md
Created June 11, 2019 11:39 — forked from fabioperrella/suplementos_alimentares.md
Suplementos alimentares para ficar mais ligado no dia a dia

Suplementos alimentares para ficar mais ligado no dia a dia

Dicas do Dr Psiquiatra Italo Marsili https://www.amelhorfamiliadomundo.com.br/

MCT (trigliceridio de cadeia média)

  • Para dar energia e tirar a preguiça
  • Melhora sintomas de depressão
  • Melhor em pó do que em oleo
  • sugestao de marca: Athletica
@gmoraiz
gmoraiz / get-mobile-projects.js
Created May 17, 2019 12:40
Para auxiliar na montagem de todos os projetos.
//iterar cada página gerada pela paginação do git
document.querySelectorAll("[itemprop='name codeRepository']").forEach(x => {
let projeto = x.innerText.split('-');
if(projeto[0] == 'mobile'){
if(typeof projectsName === 'undefined') projectsName = [];
projectsName.push(projeto[1])
}
})
//gerar um array bash script com os dados recolhidos.
@gmoraiz
gmoraiz / queryaccelerator.js
Created May 15, 2019 16:38
Query Accelerator
`COLOCA A QUERY AQUI E É SÓ ALEGRIA!!!`.replace(/"/g,'\\"').replace(/(\r\n|\n|\r)/gm," ").replace(/\s+/g," ").replace(/\/\*([\s\S]*?)\*\//g,"");
@gmoraiz
gmoraiz / .html
Last active August 25, 2021 16:34
Lista (ion-select) de estados brasileiros para ionic
<ion-item>
<ion-label>UF</ion-label>
<ion-select formControlName="uf">
<ion-option value="AC">Acre</ion-option>
<ion-option value="AL">Alagoas</ion-option>
<ion-option value="AP">Amapá</ion-option>
<ion-option value="AM">Amazonas</ion-option>
<ion-option value="BA">Bahia</ion-option>
<ion-option value="CE">Ceará</ion-option>
<ion-option value="DF">Distrito Federal</ion-option>