Skip to content

Instantly share code, notes, and snippets.

View wojukasz's full-sized avatar
🕶️
They live...

Lukas W wojukasz

🕶️
They live...
  • Earth
View GitHub Profile
@wojukasz
wojukasz / keybindings.json
Created March 31, 2023 11:43
VsCode + Vim keybindings and settings - best of both worlds
[
//
// VIM NAVIGATION SHORTCUTS
//
{
// "ctrl+h": Focuses on the left editor group when the text editor is focused, Vim extension is active, and Vim is not in Insert mode.
"key": "ctrl+h",
"command": "workbench.action.focusLeftGroup",
"when": "editorTextFocus && vim.active && vim.mode != 'Insert'"
@wojukasz
wojukasz / keybindings.json
Created March 16, 2023 20:00 — forked from sebastianhoitz/keybindings.json
VSCode Vim improvements
[
{
"key": "ctrl+h",
"command": "workbench.action.focusLeftGroup",
"when": "editorTextFocus && vim.active && vim.mode != 'Insert'"
},
{
"key": "ctrl+l",
"command": "workbench.action.focusRightGroup",
"when": "editorTextFocus && vim.active && vim.mode != 'Insert'"

Download Audio from YouTube

-i - ignore errors

-c - continue

-t - use video title as file name

--extract-audio - extract audio track

@wojukasz
wojukasz / ArchLinuxWSL2.md
Created August 25, 2021 10:26 — forked from ld100/ArchLinuxWSL2.md
Steps for setting up Arch Linux on WSL2

Migrating from Ubuntu on WSL to ArchLinux on WSL2

Upgrading to WSL 2

  • Download WSL2 Kernel
  • run wsl --set-default-version 2 in windows command line, so that all future WSL machine will use WSL2.

Installing Arch Linux

@wojukasz
wojukasz / fix-wsl2-dns-resolution
Created July 19, 2021 08:33 — forked from coltenkrauter/fix-wsl2-dns-resolution
Fix DNS resolution in WSL2
More recent resolution:
1. cd ~/../../etc (go to etc folder in WSL).
2. echo "[network]" | sudo tee wsl.conf (Create wsl.conf file and add the first line).
3. echo "generateResolvConf = false" | sudo tee -a wsl.conf (Append wsl.conf the next line).
4. wsl --terminate Debian (Terminate WSL in Windows cmd, in case is Ubuntu not Debian).
5. cd ~/../../etc (go to etc folder in WSL).
6. sudo rm -Rf resolv.conf (Delete the resolv.conf file).
7. In windows cmd, ps or terminal with the vpn connected do: Get-NetIPInterface or ipconfig /all for get the dns primary and
secondary.
@wojukasz
wojukasz / WSL2.md
Created July 16, 2021 12:53 — forked from OnkelDom/WSL2.md
My WSL2 Setup with PowerShell7, Ubuntu, Windows Terminal, Powerline, SourceCodePro, Azure Tools

Install WSL2 and Ubuntu

First run: WSL2 Setup

Windows Tutorial: Install WSL2 (if needed)

Install PowerShell 7

# You need administrator grants on normal PowerShell terminal
iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI"

Keybase proof

I hereby claim:

  • I am wojukasz on github.
  • I am wojukasz (https://keybase.io/wojukasz) on keybase.
  • I have a public key ASBpkucgfsfFIb6KWGIwDn65rcSrpiA9p6a37KyUTA_oUwo

To claim this, I am signing this object: