Skip to content

Instantly share code, notes, and snippets.

View AuthorProxy's full-sized avatar
👾
Don't worry, be happy :)

Alex Kostyukov AuthorProxy

👾
Don't worry, be happy :)
View GitHub Profile
@AuthorProxy
AuthorProxy / typescript-enums.ts
Created July 24, 2021 00:50
3 types of TypeScript Enums
//////////////////////////////////////////////////////////////
export const buttonSizes_1 = ['small', 'medium'] as const
export type ButtonSize_1 = typeof buttonSizes_1[number]
function test_1(_: ButtonSize_1) {
console.assert(buttonSizes_1.includes(_))
}
test_1('medium') // we can do this
test_1(ButtonSize_1.small) // we can't do this
docker container rm -f $(docker container ls -aq)
docker image rm -f $(docker image ls -aq)
docker volume rm -f $(docker volume ls -q)
docker builder prune -f
docker system prune -f --all --volumes
@AuthorProxy
AuthorProxy / telegram-mtproxy.md
Created March 24, 2026 12:36 — forked from rameerez/telegram-mtproxy.md
Telegram Proxy How-To: complete and up-to-date MTProxy tutorial

How to set up a Telegram Proxy (MTProxy)

This tutorial will teach you how to set up a Telegram MTProxy on an Ubuntu 22.04 sever using AWS Lightsail, although you can use any other Linux distribution and cloud provider.

Using a Telegram proxy is a safe, easy and effective way of overcoming Telegram bans. It's useful, for example, to keep using Telegram under tyrannical regimes, or to circumvent judges' decisions to block Telegram.

Telegram proxies are a built-in feature in all Telegram apps (both mobile and desktop). It allows Telegram users to connect to a proxy in just one or two clicks / taps.

Telegram proxies are safe: Telegram sends messages using their own MTProto secure protocol, and the proxy can only see encrypted traffic – there's no way for a proxy to decrypt the traffic and read the messages. The proxy does not even know which Telegram users are using the proxy, all the proxy sees is just a list of IPs.