Skip to content

Instantly share code, notes, and snippets.

@jabaruben
jabaruben / disableRSCinAdaptors.txt
Created November 8, 2023 15:38
Disable RSC on adapters when need it to improve speed in this adapter
To disable RSC on the virtual machine, perform one of these options:
Use the PowerShell command Disable-NetAdapterRsc.
To disable for all interfaces:
Disable-NetAdapterRsc *
To disable for a specific interface:
@jabaruben
jabaruben / speedtestWSL.txt
Last active November 8, 2023 15:33
Improve speedtest using WSL and VPN
Follow the 'Steps to disable RSC manually'.
Open an Admin Command Prompt window: Start > All Apps > Windows System -> Right-click "Command Prompt" > More > Run as administrator
Get your network adapter name: powershell Get-NetAdapter
Note your adapter's name (Example: 'Wi-Fi' or 'vEthernet (WSL)')
Get your network adapter "Receive segment coalescing" (Rsc) settings: powershell Get-NetAdapterRsc
@jabaruben
jabaruben / RestoreNetworkConnectionInWSL2UsignVPN.md
Created January 30, 2023 16:32
Restore WSL2 network connectivity when using a VPN

WSL2 with internet connection problems

WSL2 is often used by developers on Windows. However, if you are using WSL for the company you are working for, it might be that the VPN solution may affect network connectivity in WSL, resulting in no internet connectivity.

Luckily, there is a solution that solves this issue: wsl-vpnkit. It is a pre-built Linux distribution that doesn't require changing any settings on the host or admin privileges.

Here's how you use it:

  • Download wsl-vpnkit.tar.gz from GitHub.
  • Open a PowerShell prompt and run the following commands:
@jabaruben
jabaruben / CompactVDiskWSL2Win10.md
Created January 13, 2023 15:35
Compact Virtual Disk of WSL2 Windows 10

To compact the size of Virtual Disk of WSL2 in Windows 10

  • wsl --shutdown
  • open window Diskpart with diskpart
  • list vdisk
  • select and copy path to vhdx file that you plan to compress
  • select vdisk file="<PATH HERE>"
  • attach vdisk readonly
  • compact vdisk
  • detach vdisk
@jabaruben
jabaruben / ComoResolverCuelguesUsandoWSL2ConVPNsYGit.md
Last active January 4, 2023 13:25
Como resolver problemas de cuelgues usando WSL2 con conexiones VPN y utilizando servicios como GIT, GITLAB, GITHUB y otros que usan CURL internamente.

Como resolver problemas de cuelgues usando WSL2 con conexiones VPN y utilizando servicios como GIT, GITLAB, GITHUB y otros que usan CURL internamente.

Dentro de WSL2, escribimos: ip addr | grep eth0 | grep mtu

2023-01-04 12:48PM $ ip addr | grep eth0 | grep mtu
4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
@jabaruben
jabaruben / SolveProblemsHangsInWSL2.md
Last active January 4, 2023 13:02
How to solve problems inside WSL2 with connections through GIT, GITLAB, GITHUB, and other connections using CURL inside.

How to solve problems in hangs when you use git or other connections using WSL2 with a VPN connections

Inside WSL2 terminal, type: ip addr | grep eth0 | grep mtu

2023-01-04 12:48PM $ ip addr | grep eth0 | grep mtu
4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000

As you can see, default MTU, if you never changed it, is 1500.

@jabaruben
jabaruben / GitHangInPOSTgit-upload-pack.md
Last active January 2, 2023 12:27
How to do when git clone hang on POST git-upload-pack and no continue

git clone hang on POST git-upload-pack

When your git clone command hang in showing POST git-upload-pack use the --depth 1 mod to restricting the depth like this

git clone <URL> --depth 1
@jabaruben
jabaruben / GitConfigHttpProxy.md
Created January 2, 2023 11:50 — forked from evantoli/GitConfigHttpProxy.md
Configure Git to use a proxy

Configure Git to use a proxy

In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like:

@jabaruben
jabaruben / README-español.md
Created November 14, 2021 01:07 — forked from Villanuevand/README-español.md
Una plantilla para hacer un buen README.md. Inspirado en el gist de @PurpleBooth => https://gist.github.com/PurpleBooth/109311bb0361f32d87a2

Título del Proyecto

Acá va un párrafo que describa lo que es el proyecto

Comenzando 🚀

Estas instrucciones te permitirán obtener una copia del proyecto en funcionamiento en tu máquina local para propósitos de desarrollo y pruebas.

Mira Deployment para conocer como desplegar el proyecto.