Skip to content

Instantly share code, notes, and snippets.

Avatar
🌍

Matteo D'Alessio matteodalessio

🌍
  • Parma
View GitHub Profile
View installation
# loadkeys it
# ls /sys/firmware/efi/efivars
# timedatectl set-ntp true
| /dev/sda1 | EFI | At least 260 MiB |
|-----------|-----------------|-------------------------|
| /dev/sda2 | Swap | More than 512 MiB |
|-----------|-----------------|-------------------------|
| /dev/sda3 | x86-64 root (/) | Remainder of the device |
View offset ip6_1031
"Darwin Kernel Version 16.5.0: Thu Feb 23 23:22:54 PST 2017; root:xnu-3789.52.2~7/RELEASE_ARM64_T7000";
OFFSET_ZONE_MAP = 0xfffffff007558478;
OFFSET_KERNEL_MAP = 0xfffffff0075b4050;
OFFSET_KERNEL_TASK = 0xfffffff0075b4048;
OFFSET_REALHOST = 0xfffffff00753aba0;
OFFSET_BZERO = 0xfffffff00708df80;
OFFSET_BCOPY = 0xfffffff00708ddc0;
OFFSET_COPYIN = 0xfffffff00718d3a8;
OFFSET_COPYOUT = 0xfffffff00718d59c;
@matteodalessio
matteodalessio / install-telegram-cli.sh
Created Nov 22, 2017
fast install telegram-cli on Ubuntu/Debian
View install-telegram-cli.sh
#!/bin/bash
git clone --recursive https://github.com/vysheng/tg.git /home/user/tg && cd /home/parallels/tg
sudo apt-get install libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev libevent-dev libjansson-dev libpython-dev make
./configure
make
cp tg-server.pub bin
cd bin
./telegram-cli -k tg-server.pub
exit