Skip to content

Instantly share code, notes, and snippets.

@rsds143
Last active March 9, 2022 15:47
Show Gist options
  • Save rsds143/603256795b75b436ef4db5698decc717 to your computer and use it in GitHub Desktop.
Save rsds143/603256795b75b436ef4db5698decc717 to your computer and use it in GitHub Desktop.

windows terminal annoyances

  • disable terminal bell in advanced part of settings (in french it is under style de notification Bell)
  • ctrl+v and ctrl+c in ubuntu breaks basically.. most of linux so you can edit windows terminal and comment out:
  1. open up with vscode or notepad code %LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json
  2. comment out the following lines:
{ "command": { "action": "copy", "singleLine": false }, "keys": "ctrl+c" },
{ "command": "paste", "keys": "ctrl+v" },

running docker in WSL without relying on docker desktop

I tend to avoid docker desktop, it is a good product and I would gladly pay 5 a month for my own usage, but I am not as certain about the licensing situation for my own jobs. So for my work computer I use the following workaround:

  1. install docker-ce https://docs.docker.com/engine/install/ubuntu/
  2. make sure you add the group for your user since this will all excute at login
  3. on debian you need to do touch /etc/fstab, update-alternatives --set iptables /usr/sbin/iptables-legacy and update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy
  4. then add this to your $HOME/.bashrc:
sudo service docker status || sudo service docker start

issues with wifi speed in wsl2

  • in a powershell terminal with administrator rights enter Disable-NetAdapterLso -Name "vEthernet (WSL)", the differential between windows and wsl should vanish pretty quickly

issues with wifi speed in general

  • disable wifi-6. This seems to work consistently and has been an issue across several devices
  • disconnect reconnect. This works for awhile, seems the driver has an issue with some state and this can make the biggest difference:
 2022-03-09 10:18:19 ⌚  DESKTOP-H6MHOFC in ~
○ → speedtest-cli
Retrieving speedtest.net configuration...
Testing from Orange (193.250.176.73)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by SFR (Trappes) [479.64 km]: 32.215 ms
Testing download speed................................................................................
Download: 43.63 Mbit/s
Testing upload speed......................................................................................................
Upload: 58.61 Mbit/s
#after disabling/renabling
 2022-03-09 10:18:44 ⌚  DESKTOP-H6MHOFC in ~
○ → speedtest-cli
Retrieving speedtest.net configuration...
Testing from Orange (193.250.176.73)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by SFR (Trappes) [479.64 km]: 31.217 ms
Testing download speed................................................................................
Download: 300.81 Mbit/s
Testing upload speed......................................................................................................
Upload: 178.98 Mbit/s

microphone issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment