Skip to content

Instantly share code, notes, and snippets.

View haron's full-sized avatar

Alexander Ryabov haron

View GitHub Profile
"""
feeds.py - minimalistic console RSS reader
Installation: pip install -U feedparser
Usage:
python3 feeds.py https://hnrss.org/frontpage https://www.reddit.com/r/Python/new.rss?limit=10
or, to get 10 entries from all feeds, shuffled:
SAMPLE=10 python3 feeds.py https://hnrss.org/frontpage https://www.reddit.com/r/Python/new.rss?limit=10
"""
import os, sys, feedparser, functools, operator, time, random
@lgg
lgg / README.md
Last active February 21, 2025 07:31
Telegram save all media from chat/user/channel

Quick tip. It is possible to download media with small python script.

Goto https://my.telegram.org and generate api id and api hash Install Telethon library with pip3 install telethon Run saveAllMedia.py (replace api_id, api_hash and username with your values).

If you need proxy install https://github.com/Anorov/PySocks pip install PySocks

This code downloads all media from the dialog with username user/chat/channel in current directory.

@cmtsij
cmtsij / tailscale
Last active March 20, 2024 09:14
tailscale completion
#!/bin/bash
# tailscale completion -*- shell-script -*-
_tailscale()
{
local cur prev words cword
_init_completion -n = || return
if [[ $cword -eq 1 ]]; then
SUBCOMMANDS=$(tailscale --help 2>&1 | awk '/SUBCOMMANDS/{ f = 1; next } /FLAGS/{ f = 0 } f{print $1}')
@gmemstr
gmemstr / Pipfile
Last active August 3, 2025 10:32
Speedtest against Hetzner servers
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
requests = "*"
[dev-packages]
@avestura
avestura / delete-from-users-where-location-iran.md
Last active October 30, 2025 10:23
DELETE FROM users WHERE location = 'IRAN';

DELETE FROM users WHERE location = 'IRAN';

Hi! I am an Iranian Software Engineer, and in this torn paper note, I want to talk about some funny moments I had online related to the fact that I was spawned in this specific region of the world: Iran.

Microsoft deleted my app, ignored my mails

Back when I was a student, I got access to the Microsoft Imagine, and as a result, I got access to the Microsoft Store as a developer. This inspired me write one of my open-source projects called EyesGuard and publish it on Microsoft Store. However, one day, somebody told me that they can no longer find EyesGuard on the store.