Skip to content

Instantly share code, notes, and snippets.

View gmonte's full-sized avatar

Guilherme Monte gmonte

View GitHub Profile
@gmonte
gmonte / setup-pnpm.sh
Last active June 24, 2026 02:46
setup-pnpm.sh — point PNPM_HOME at the active nvm node bin ($NVM_BIN) so pnpm's global bin/store follow the nvm-activated node version
#!/usr/bin/env bash
# setup-pnpm.sh — Point PNPM_HOME at the active nvm node bin ($NVM_BIN) so pnpm's
# global bin dir and store follow whatever node version nvm has activated.
#
# Why not `pnpm setup`? In a corepack + nvm setup the pnpm binary lives inside
# $NVM_BIN, so `pnpm setup` freezes PNPM_HOME to the *current* node version's path
# and warns (ERR_PNPM_BAD_SHELL_SECTION) on every re-run. This script instead
# writes the literal string "$NVM_BIN", which the shell resolves at startup — so
# the block is node-version-agnostic and never needs regenerating.
@gmonte
gmonte / react-native-android-studio-no-wsl2.md
Created October 25, 2022 04:07 — forked from georgealan/react-native-android-studio-no-wsl2.md
React Native no Emulador Android Studio com WSL2

REACT-NATIVE PROJECTS RUN IN WSL2 UBUNTU 22.04 WITH BACKEND API

📆 Article written day: 9/03/2020 📆 Article updated day: 6/18/2022

My System Specs:

  • Microsoft Windows 10 Enterprise Version 21H2 (OS Build 19044.1766)
  • WSL2 - Ubuntu 22.04 LTS
  • Android Studio Version: Chipmunk 2021.2.1 Patch 1
@gmonte
gmonte / Habilitar VPN no WSL2 ubuntu 20.04
Last active July 6, 2022 21:32
Dentro do ubuntu, rodar os seguintes comandos:
$ sudo apt-get update
$ sudo apt-get install socat
$ git clone https://github.com/AmmarRahman/wsl-vpn.git
$ cd wsl-vpn
$ sudo ./wsl-vpnkit-setup.sh --no-docker
@gmonte
gmonte / checkpoint.sh
Created January 12, 2021 03:53 — forked from cyupa/checkpoint.sh
Endpoint Security VPN FULL start/stop script for Mac OS X
#!/bin/bash
#
# The reason of creating this script is that Endpoint Security VPN installs it's own application firewall kext cpfw.kext
# which prevents for example PPTP connections from this computer, which is not appropriate if you need subj connection just
# from time to time
#
# Usage: ./checkpoint.sh
#
# The script checks if Enpoint Security VPN is running. If it is, then it shuts it down, if it is not, it fires it up.
# Or, make an Automator action and paste the script.
@gmonte
gmonte / .gitconfig
Created November 19, 2019 04:53 — forked from diego3g/.gitconfig
[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}..)
@gmonte
gmonte / cloudSettings
Last active August 27, 2020 20:44
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-08-27T20:44:12.755Z","extensionVersion":"v3.4.3"}