Skip to content

Instantly share code, notes, and snippets.

View MarshalX's full-sized avatar
🦁

Ilya Siamionau MarshalX

🦁
View GitHub Profile
@MarshalX
MarshalX / stargazer_emails.py
Created February 22, 2023 12:52
Fetch public email addresses of all stargazers of public repositories of the GitHub user by username
# Was written in Python 3.11
# 1 dep: pip install aiohttp
# required env vars: GITHUB_PAT, GITHUB_USERNAME
# due to strict API limits it uses simple cache file to save state
# probably you need many runs of the script to fetch all emails
import asyncio
import os
import re
from typing import Optional, Coroutine, Tuple
@MarshalX
MarshalX / docker-compose.yml
Last active June 15, 2023 07:34
Gitea with mirroring of all GitHub repositories (public & private)
# Fill/change env vars, run docker compose up, setup reverse proxy; complete installation process on first site visit
version: "3"
networks:
gitea:
external: false
volumes:
gitea:
driver: local
@MarshalX
MarshalX / mtproto_layer160.tl
Last active July 20, 2023 10:17
Difference between the latest stable #158 layer and #160 one
boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
true#3fedd339 = True;
vector#1cb5c415 {t:Type} # [ t ] = Vector t;
error#c4b9f9bb code:int text:string = Error;
null#56730bcc = Null;