APIs

Get Bitcoin Price Using Bybit API in Bash

With Bybit API [1] it is possible to get public data (price, volume, last trading records) and also place own orders using API Key. All the next examples do not need API Key, because open public data is used here.

First, install jq for read json data and search in it to get only fields we need.

apt install jq

 

Bitcoin price in Spot trading from Bybit API. Ticker BTCUSDT info

This price is from latest finished orders.

Bash Script: Connect To Free VPN ProtonVPN With OpenVPN Configs

ProtonVPN allows to use Free VPN servers in Netherlands, USA, Japan. You may use official application for Linux, Android. But for fine configuring and connect just in one click need to connect with own script using OpenVPN configs by ProtonVPN. Here it is my own bash script for connect to the best protonvpn server in one click.

0. Prerequisits

Intall tor, torsocks, openvpn, resolvconf, jq

apt-get install tor torsocks openvpn resolvconf jq

System Monitoring Using Telegram Bot

Having systems that need a monitoring or alert about errors and fails you may use Telegram Bot. Next examples of using Telegram Bot help to watch the status of a long process, also to send lines from log, and even more, it is possible to send printscreens or also convert printscreens to text and then send it to your chat in Telegram.

This way you can monitor any process in your system with smartphone in any place.