Skip to content

Instantly share code, notes, and snippets.

@ilyaigpetrov
ilyaigpetrov / PinePhonePro Facts.md
Last active Feb 17, 2022
My journey into the Pine64 community
View PinePhonePro Facts.md

THIS IS A DRAFT!

There is offical wiki here: https://wiki.pine64.org/wiki/PinePhone_Pro.
PPP stands for PinePhone Pro.
PPPEE stands for PinePhone Pro Explorer Edition.
PPKB -- PinePhone KeyBoard.
OG PinePhone -- "Original Gangster" PinePhone (a precessor of PPP).

  1. Keep in mind that PPP Explorer Edition is for early adopters and developers -- don't expect things work out of the box.
@ilyaigpetrov
ilyaigpetrov / FAILED: Доставка PinePhone Pro из Гонконга в Россию.md
Last active Mar 16, 2022
FAILED: Доставка PinePhone Pro из Гонконга в Россию
View FAILED: Доставка PinePhone Pro из Гонконга в Россию.md
View Introduction Into Windows Subsystem for Linux 2 (WSL2) for Beginners.md

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

We couldn’t find that file to show.
@ilyaigpetrov
ilyaigpetrov / Windows boot manager asks for BitLocker recovery key on each boot after updating GRUB.md
Last active Jan 10, 2022
Windows boot manager asks for BitLocker recovery key on each boot after updating GRUB | How to fix
View Windows boot manager asks for BitLocker recovery key on each boot after updating GRUB.md

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 you get such error:

> Suspend-BitLocker -MountPoint "C:"
> Resume-BitLocker -MountPoint "C:"
View My Experience With Orange PI PC.md
View What's wrong with Nokia.md

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 Jan 28, 2020
HOWTO: effectively argue against Internet censorship ideas | by Michał "rysiek" Woźniak, restored by https://git.io/ilyaigpetrov
View HOWTO: effectively argue against Internet censorship ideas.1.txt.md
@ilyaigpetrov
ilyaigpetrov / .vimrc
Last active Apr 15, 2021
On tab it inserts 2 spaces, on one more tab this 2 spaces are added with 2 new and total 4 spaces are converted to a tab of the same length
View .vimrc
:set nofixendofline
" tabstop: The width of a hard tabstop measured in "spaces" -- effectively the (maximum) width of an actual tab character.
:set tabstop=4
" shiftwidth: The size of an "indent". It's also measured in spaces, so if your code base indents with tab characters then you want shiftwidth to equal the number of tab characters times tabstop. This is also used by things like the =, > and < commands.
:set shiftwidth=2
" expandtab: Enabling this will make the tab key (in insert mode) insert spaces instead of tab characters. This also affects the behavior of the retab command.
":set expandtab
" smarttab: Enabling this will make the tab key (in insert mode) insert spaces or tabs to go to the next indent of the next tabstop when the cursor is at the beginning of a line (i.e. the only preceding characters are whitespace).
:set smarttab
View How to use GitHub Gists for publishing articles.md

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.