- Create a bot using @BotFather, get it's token
- Start conversation with bot
- Run following curl command
curl https://api.telegram.org/bot/getUpdates | grep -Po '"from":{"id":.+?,'
curl https://api.telegram.org/bot/getUpdates | grep -Po '"from":{"id":.+?,'
| # | |
| # This supersedes the old and incorrect datepattern regex for older Apache2 instances to make | |
| # it working against Apache 2.4+ ones. | |
| # | |
| # Mariusz B. / mgeeky | |
| # | |
| [DEFAULT] | |
| datepattern = \[(%%d/%%b/%%Y:%%H:%%M:%%S %%z)\] |
| sudo apt-get uninstall nodejs # uninstall nodejs 4.2.6 | |
| wget https://nodejs.org/dist/v6.6.0/node-v6.6.0-linux-armv7l.tar.gz # get latest ARM build | |
| tar -xvf node-v6.6.0-linux-armv7l.tar.gz # extract it | |
| sudo cp node-v6.6.0-linux-armv7l /etc/node6.6 # copy extracted file to /etc folder | |
| sudo ln -s /etc/node6.6/bin/node /usr/bin/node # link the nodejs executable | |
| sudo ln -s /etc/node6.6/bin/npm /usr/bin/npm # link the npm executable | |
| node --version # should output v6.6.0 |
| # Terminal Cheat Sheet | |
| pwd # print working directory | |
| ls # list files in directory | |
| cd # change directory | |
| ~ # home directory | |
| .. # up one directory | |
| - # previous working directory | |
| help # get help | |
| -h # get help |