Skip to content

Instantly share code, notes, and snippets.

View IaroslavR's full-sized avatar

Iaroslav Russkykh IaroslavR

View GitHub Profile
@IaroslavR
IaroslavR / timeout.py
Created July 28, 2022 12:43
Ultimate timeout wrapper
from functools import wraps
import errno
import os
import signal
class TimeoutError(Exception):
pass
def timeout(seconds=30, error_message=os.strerror(errno.ETIMEDOUT)):
@IaroslavR
IaroslavR / pyenv.md
Created August 4, 2022 20:09
No patch version HOW-TO

src - pyenv/pyenv#1946 (comment)

pyenv install 3.7:latest
ln -rs ~/.pyenv/versions/3.7.12 ~/.pyenv/versions/3.7
pyenv local 3.7
python --version
--> Python 3.7.12
@IaroslavR
IaroslavR / convert.sh
Created August 18, 2022 11:32
YAML to hcl converter
# src - https://t.me/terraform_ru/52974
echo 'yamldecode(file("filename.yaml"))' | terraform console
@IaroslavR
IaroslavR / snippet.sh
Created October 20, 2022 18:03
Caps Lock off from concole
# https://askubuntu.com/a/607915
sudo apt-get install xdotool
xdotool key Caps_Lock
@IaroslavR
IaroslavR / Comparison Espressif ESP MCUs.md
Created December 5, 2022 18:45 — forked from fabianoriccardi/Comparison Espressif ESP MCUs.md
Comparison table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6

Comparison table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6

A minimal table to compare the Espressif's MCU families.

ESP8266 ESP32 ESP32-S2 ESP32-S3 ESP32-C3 ESP32-C6
Announcement Date 2014, August 2016, September 2019, September 2020, December