Skip to content

Instantly share code, notes, and snippets.

View sidneyspe's full-sized avatar
🎯
Focusing

Sidney Pimentel sidneyspe

🎯
Focusing
  • Campina Grande - PB, Brasil
  • 03:02 (UTC -03:00)
  • LinkedIn in/sidneyspe
View GitHub Profile
%userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
@sidneyspe
sidneyspe / settings.json
Created August 31, 2023 13:04
SublimeText Config
// Settings in here override those in "Default/Preferences.sublime-settings",
// and are overridden in turn by syntax-specific settings.
{
"theme": "One Dark.sublime-theme",
"color_scheme": "Omni.sublime-color-scheme",
"font_face": "JetBrainsMono Nerd Font",
"font_size": 16,
"ignored_packages":
[
"Vintage",

Recipe: Persistent Network Configuration in WSL 2 using Hyper-V Virtual Switch

Problem Description

Connecting to services running in WSL 2 from external sources can be challenging due to the instances being on a different network. This guide offers a solution to replace the internal virtual switch of WSL 2 with an external version in Windows 20H2 (WSL 2.0) and configure it for better networking control.

Solution Overview

This recipe uses a Hyper-V virtual switch to bridge the WSL 2 network, providing improved control and visibility of Windows' network adapters within Ubuntu. The configuration supports both dynamic and static IP addressing, eliminating the need for port forwarding and simplifying network setup.

Steps

  1. Enable Hyper-V and Management PowerShell Features:
@sidneyspe
sidneyspe / settings.json
Last active September 2, 2025 17:31
VSCode Settings - 2024
{
"workbench.startupEditor": "newUntitledFile",
"editor.fontSize": 14,
"editor.lineHeight": 1.8,
"javascript.suggest.autoImports": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"editor.rulers": [
80,
120
],
@sidneyspe
sidneyspe / .wslconfig
Created October 28, 2024 00:44
WSL2 Config
[wsl2]
memory=30GB # limita a memória da VM.
processors=14 # limita o uso da VM para 14 processadores virtuais
dnsTunneling=true
autoProxy=true
networkingMode=mirrored
useWindowsDnsCache=true
[experimental]
autoMemoryReclaim=gradual
@sidneyspe
sidneyspe / settings.json
Created November 3, 2025 02:42
settings for terminal windows
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions": [],
"copyFormatting": "none",
"copyOnSelect": false,
"defaultProfile": "{04cad512-433e-41b8-83f8-218a39728b8b}",
"keybindings":
[
{
@sidneyspe
sidneyspe / flameshot.ini
Created November 5, 2025 17:43
Flameshot custom colors
[General]
contrastOpacity=188
saveLastRegion=false
startupLaunch=true
drawThickness=3
drawFontSize=7
drawColor=#ff9500
userColors=picker, #ff3b30, #ff9500, #ffd30a, #34c759, #007aff, #af52de, #ff2d55, #ff00c8, #ff6f00, #f9ff00, #39ff14, #00ffff, #0040ff, #8026ff
@sidneyspe
sidneyspe / settings.json
Created November 16, 2025 22:37
Zed Settings
// ~/.config/zed/settings.json
{
//
// Aparência básica (equivalente geral ao editor.* do VS Code)
//
"buffer_font_family": "JetBrainsMono Nerd Font", // editor.fontFamily
"buffer_font_size": 14, // editor.fontSize
"buffer_line_height": { "custom": 1.8 }, // editor.lineHeight
// Destacar linha atual só no "gutter", como no VS Code
@sidneyspe
sidneyspe / Omni.sublime-color-scheme
Created November 17, 2025 01:52
Omni theme for Sublime Text
{
"name": "Omni (Sublime)",
"author": "Sidney & ChatGPT",
"variables": {
"background": "#191622",
"foreground": "#E1E1E6",
"caret": "#E1E1E6",
"selection": "#41414D",
"selection_border": "#41414D",
"inactive_selection": "#282837",
@sidneyspe
sidneyspe / install-nobara.sh
Last active November 19, 2025 11:20
Nobara Environment
#!/usr/bin/env bash
set -e
# ==========================================
# Setup completo e idempotente para Nobara
# Dev + Docker + ZSH (Spaceship) + utilitários
# ==========================================
echo "🚀 Iniciando setup COMPLETO e IDEMPOTENTE no Nobara/Fedora..."
sleep 1