Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am aandrusha on github.
  • I am andrusha (https://keybase.io/andrusha) on keybase.
  • I have a public key whose fingerprint is 3F6E 22A8 8B70 D280 6A92 9992 FF74 C1FE ACC1 AECE

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am aandrusha on github.
  • I am andrusha (https://keybase.io/andrusha) on keybase.
  • I have a public key ASBZJVlc6eiUhZcBFnpgJ2HpItNmRSXDF-o5h2POg0hERgo

To claim this, I am signing this object:

@aandrusha
aandrusha / deploy-mtproxy.sh
Last active November 22, 2019 13:35
Compile and run MTProxy with forced random padding patch on new server. For Ubuntu, Debian or other DEB-based distributives.
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root!"
exit
fi
#Generate user secret (add SECRET2-SECRET16 to more secrets)
SECRET1=$(head -c 16 /dev/urandom | xxd -ps)
#Install git, clone repo and compile. Remove git fetch and checkout if you don't need forced random padding (key -R in systemd unit)
apt install -y git curl build-essential libssl-dev zlib1g-dev
git clone https://github.com/TelegramMessenger/MTProxy.git