Skip to content

Instantly share code, notes, and snippets.

Antonio Pitasi Pitasi

View GitHub Profile
Pitasi / policies.json
Created May 21, 2018
Google Chrome automatically select certificate
View policies.json
# Make Google Chrome automatically select a self signed certificate
# Linux: create /etc/opt/chrome/policies/managed/policies.json with the following content
"AutoSelectCertificateForUrls": [
Pitasi /
Last active Aug 19, 2018
Just a proof so you are sure that's really me on

Keybase proof

I hereby claim:

  • I am pitasi on github.
  • I am zaphodias ( on keybase.
  • I have a public key ASA4EctrOPmSX3A-BuN3rfqY7f88uhisdbmAAGWgtlENnQo

To claim this, I am signing this object:

Pitasi / check_telegram_signature.js
Last active Apr 14, 2020
Telegram website login widget, signature check sample using Node.js
View check_telegram_signature.js
// Copied by,
// thanks for improving code style
const { createHash, createHmac } = require('crypto');
const TOKEN = "ABC:12345...";
// I prefer get the secret's hash once but check the gist linked
// on line 1 if you prefer passing the bot token as a param
const secret = createHash('sha256')
You can’t perform that action at this time.