Skip to content

Instantly share code, notes, and snippets.

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.
@ilyaigpetrov
ilyaigpetrov / _0_Hosting Simple Static Site on Appengine Standard for Free.md
Last active January 26, 2020 14:54
Hosting Simple Static Site on Appengine Standard for Free | by https://git.io/ilyaigpetrov

Hosting Simple Static Site on Appengine Standard for Free

This set of files is all you need to host a static web site on Google Appengine Standard for free.

Ways of Handling Rejected Promises in JavaScript

This note/example shows 3 different ways of handling promise rejections in JavaScript.

Before we start you may want to refresh in your mind that:

  1. .then(...) takes two arguments: MDN.
  2. .catch(...) is a syntactic surgar around .then(...) with two arguments: MDN.
  3. Exploring JS:

    Exceptions that are thrown in the callbacks of then() and catch() are passed on to the next error handler, as rejections

@ilyaigpetrov
ilyaigpetrov / Аргументы против цензуры.md
Last active January 26, 2020 14:57
Аргументы против цензуры | by https://git.io/ilyaigpetrov

Comparison of Java and C for Graph Traversal Implementation

We will consider C and Java implementations for DFS and BFS graph traversal algorithms (4 programs) and compare their source codes and binaries to figure languages shortcomings and fortes in application to the given task.

Published around 22.09.2015 as a test task for a freelance employer.
Source codes

BFS and DFS Algorithms in Psuedo Code

dfs(from vertex v)
@ilyaigpetrov
ilyaigpetrov / retrieve-.pyc-grammar-from-marshal.c.md
Last active January 26, 2020 14:58
Retrieve .pyc Grammar from Python's Sources | by https://git.io/ilyaigpetrov

Retrieve .pyc Grammar from Python's Sources

About my endeavor to automatically retrieve grammar of CPython .pyc-files bytecode from Python's sources itself (success) and build parser on them (failed).
Most recent version of this article is always on GitHub

The problem story

In 2011 as part of my diploma thesis I came up with an assembler language for .pyc files and wrote a simple proof-of-concept assembler for it based on ANTLR3 parser generator. Back then I stumble upon the issue that CPython bytecode is somewhat not stable and differs from version to version. I.e., as of Python from 3.0 to 3.4 there are 28 incompatible bytecode versions (you may find all bytecode versions with their descriptions in Python34/Lib/importlib/_bootstrap.py).

So, if we aim to devise an assembler or disassembler not for one bytecode version but for many, we face a routine of retrieving out these bytecode differences. This task strikingly

We couldn’t find that file to show.

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 / Бойкот Mail.Ru Group.md
Last active August 25, 2021 08:39
Бойкот «ВКонтакте» и Mail.Ru Group | https://git.io/boycott-vk | by https://git.io/ilyaigpetrov

Эту статью также можно прочитать на medium.com.


Бойкот «ВКонтакте» и Mail.Ru Group

Mail.Ru Group защищает власть от недовольных Mail.Ru Group защищает власть от недовольных