Skip to content

Instantly share code, notes, and snippets.

Introduction Into Windows Subsystem for Linux 2 (WSL2) for Beginners

WSL2 allows you to use Linux programs in a Linux shell (bash) inside your Windows 10 or above. It is mostly used to run programs for terminal (textual interface, not graphical). Launching graphical Linux programs is not covered in this tutorial.

CAUTION: Most of the commands must be executed with admin privileges (Start -> type "powershell" -> press "Run as Administrator").

Install

@ilyaigpetrov
ilyaigpetrov / Windows boot manager asks for BitLocker recovery key on each boot after updating GRUB.md
Last active October 14, 2023 15:36
Windows boot manager asks for BitLocker recovery key on each boot after updating GRUB | How to fix

Windows boot manager asks for BitLocker recovery key on each boot after updating GRUB

If Windows boot manager asks for BitLocker recovery key each boot then:

  1. Get your recovery code from your windows account: https://account.microsoft.com/devices/recoverykey.
  2. Reboot into Windows and input this code when asked.

You may check that in PowerShell (run as Administrator) you get such error:

> Suspend-BitLocker -MountPoint "C:"
> Resume-BitLocker -MountPoint "C:"
@lmmx
lmmx / nosnap.pref
Created February 2, 2021 09:23
Contents of `/etc/apt/preferences.d/nosnap.pref` in Linux Mint 20.1 (removed manually to install `snapd`) https://linuxmint-user-guide.readthedocs.io/en/latest/snap.html
# To prevent repository packages from triggering the installation of Snap,
# this file forbids snapd from being installed by APT.
# For more information: https://linuxmint-user-guide.readthedocs.io/en/latest/snap.html
Package: snapd
Pin: release a=*
Pin-Priority: -10

What's wrong with Nokia

A recent [information leak][1] revealed that Nokia helps Russian authorities to "build and install technologies on telecom networks that facilitate lawful intercepts". While it's not a problem for many democratic countries it's certainly a problem for Russia because, I believe, Russian laws and corresponding surveillance infrastructure are created to be abused for the purpose of power usurpation. Such kind of surveillance is against human rights.

@ilyaigpetrov
ilyaigpetrov / HOWTO: effectively argue against Internet censorship ideas.1.txt.md
Last active August 18, 2022 08:01
HOWTO: effectively argue against Internet censorship ideas | by Michał "rysiek" Woźniak, restored by https://git.io/ilyaigpetrov

How To Use GitHub Gists For Publishing Articles

GitHub Gists may be used not only for code snippets sharing but as a publishing platform for your articles.

Features And Restrictions Of GitHub Gists

Each gist is a git repo with restrictions and features:

  • You can't create folders in any branch of the repo.
  • Each file in the master branch larger than 1MB risks to be truncated so you can't add zip archive to master. But you may keep additional large files at another branches which can't be viewed on the gist page.
  • If you want to use images in your article but wish non-embedded images to be hidden on the gist page then you may keep them in non-master branch and reference by .//raw//foobar.jpg.

Why to Ignore Russian Internet Laws

There is internet censorship in Russia. VPNs and internet providers are required to install into their networks Revizor, a device that checks that censored sites can't be accessed from their network. They are also required to install SORM (wiki/SORM, another wiki) to help Russian special services to analyse traffic and track users.

If you have or are going to have internet business in Russia I call you to ignore all the demands to install SORM and Revizor into your network. Also don't move personal data to Russia. If you can't avoid complying to these demands then just don't have your business in Russia at all.

Please, don't invest in Cheburnet (autonomous Russian internet that can be easily isolated and abusively censored without any collateral damage). Cheburnet is built to help the Kremlin in power usurpation.

The Reasons

Kodi On Raspian On RPI0 Issues

This document is a part of RPI0 review: https://git.io/ilyaigpetrov-rpi0.

$ kodi-standalone --version
18.2 Git:20190428-a94ccc8ba5 Media Center Kodi
Copyright (C) 2005-2018 Team Kodi - http://kodi.tv
$ lsb_release -a
No LSB modules are available.

Raspberry PI Zero Wi-Fi Test

This test is a part of RPI0 review: https://git.io/ilyaigpetrov-rpi0.

Results

From To Average Speed Protocol/tool
RPI0 Internet 0.95 Mbit/s http/speedtest
Notebook Internet 35.18 Mbit/s http/speedtest