Skip to content

Instantly share code, notes, and snippets.

@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
@ilyaigpetrov
ilyaigpetrov / .vimrc
Last active April 15, 2021 03:29
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
: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

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

Raspberry Pi Zero WH: My Sad Experience With It and How I Burned It Probably by Overclocking

Article finished on: 28.06.2019.
VERDICT: Wi-Fi barely works and connecting it via ethernet/usb to your router is another mess. I think I damaged wifi while overclocking it. Lesson learned: don't overclock RPI0.

RPi Zero WH is a small 32-bit 1GHz arm-based computer with 512mb RAM, wifi, bluetooth, mini HDMI and 2 Micro USB ports developed in the UK.

RPi Zero In a Socket Looks Like Totem

Keyboard doesn't work, see known issues below.

We couldn’t find that file to show.

Running IPFS Node On A Raspberry Pi Zero

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

Guide

  1. Buy rPi Zero WH.
  2. Downlaod and dd Raspbian Lite to the SD Card.
  3. Boot into the pi with pi:raspberry, run sudo raspi-config, set password, network, enable ssh.
  4. Ssh into your pi, wget the latest ipfs-update binary for arm from https://dist.ipfs.io/#ipfs-update, unpack with tar xf ./the-downloaded-file.tar.gz, ./install.sh.