Skip to content

Instantly share code, notes, and snippets.

View osminog's full-sized avatar

Alexander Titov osminog

  • Express 42
  • Moscow, Zelenograd
View GitHub Profile
@osminog
osminog / 0.README.md
Created October 3, 2018 15:08 — forked from agentcooper/0.README.md
Telegram chat backup/export

How to use

  1. Login to https://web.telegram.org
  2. Copy-paste contents of telegram-scripts.js into JS console
  3. Run showContacts() to get the list of contacts with ids
  4. Run saveChat(userId) where userId is the id from step 3

Process can take a while, check console for progress. Occasionall FLOOD_WAIT errors are expected. Once done, browser will download the JSON file.

Motivation

Verifying that +atitov is my blockchain ID. https://onename.com/atitov

Keybase proof

I hereby claim:

  • I am osminog on github.
  • I am atitov (https://keybase.io/atitov) on keybase.
  • I have a public key whose fingerprint is 5A41 EF96 75F3 8C34 B435 ACD6 C2D6 01D6 BE2A B2B2

To claim this, I am signing this object:

zabbix_application "App Bank Application" do
action :sync
item "proc.num[bank,bank_user]" do
type :active
frequency 20
name "Number of Bank app processes"
end
@osminog
osminog / gist:6987397
Created October 15, 2013 06:34
Использование заббикс Chef LWRP
zabbix_application "#{mpoint} filesystem" do
item "vfs.fs.size[#{mpoint},free]" do
type :active
name "Free disk space on #{mpoint}"
frequency 600
end
item "vfs.fs.size[#{mpoint},pfree]" do
type :active
name "Free disk space on #{mpoint} in %"