Skip to content

Instantly share code, notes, and snippets.

View sortafreel's full-sized avatar
💾
Learning

Alex Lebedev sortafreel

💾
Learning
View GitHub Profile
@thiagozs
thiagozs / awsvpnclient-ubuntu-24.04.md
Created June 19, 2024 18:55
AWSVPNClient Fixes on ubuntu 24.04

Steps

Download

wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb

sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.13_amd64.deb
@keepitsimple
keepitsimple / async_tor_proxy_sample.py
Last active March 18, 2025 15:06
aiohttp + aiosocks: async tor proxy example
import asyncio
import aiohttp
import aiosocks
from aiosocks.connector import ProxyConnector, ProxyClientRequest
async def main():
async with aiohttp.ClientSession() as session:
async with session.get('http://icanhazip.com/') as resp:
@Zearin
Zearin / python_decorator_guide.md
Last active April 26, 2025 15:21
The best explanation of Python decorators I’ve ever seen. (An archived answer from StackOverflow.)

NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.


Q: How can I make a chain of function decorators in Python?


If you are not into long explanations, see [Paolo Bergantino’s answer][2].