Skip to content

Instantly share code, notes, and snippets.

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.

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.
@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:"

Meteor Alternatives Per Feature

This table was created in 2015 so may be quite outdated today.

Feature Meteor Solution Alternative Solutions Description
Live DB Sync [livequery][lq] ([mongo-oplog]), [ddp] RethinkDB, Redis, ShareDB, [npm:mongo-oplog], [firebase], etc. Push DB updates to client/server.
Latency Compensation, Optimistic UI [minimongo][mm] [RethinkDB][lcr], [mWater/minimongo] (fork, not ws but http, browserify) Imitate successful db query on client before it is done.
Isomorphic Code [isobuild] & isopacks browserify Write one code for server/client/mobile.
Isomorphic Packaging [isobuild], atmosphere No more separate packages for server & client. Get bower + npm + mobile.

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.

@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

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 / 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 / PinePhonePro Facts.md
Last active February 17, 2022 10:28
My journey into the Pine64 community

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.

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