Skip to content

Instantly share code, notes, and snippets.

Antonio Pitasi Pitasi

Block or report user

Report or block Pitasi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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 / settings.json
Created Feb 19, 2018
Visual Studio Code settings
View settings.json
"git.autofetch": true,
"editor.fontFamily": "Operator Mono Medium",
"terminal.integrated.fontFamily": "Hack",
"editor.fontSize": 16,
"editor.fontLigatures": true,
"editor.renderWhitespace": "all",
"editor.tabSize": 2,
"editor.formatOnPaste": true,
Pitasi / check_telegram_signature.js
Last active Sep 15, 2019
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')
View replies.js
module.exports = {
// text
"i did not hit her": { type: 'text', value: ''}
// gif
"nodejs": { type: 'gif', id: 'CgADBAADLQIAAlnKaVMm_HsznW30oQI' },
// sticker
"woah": { type: 'sticker', id: 'CAADAgAD5gADJQNSD34EF_pwQMgbAg' },
Pitasi / main.js
Last active Nov 6, 2017 - A simple Telegram bot built with Telegraf.js
View main.js
// Include Telegraf module
const Telegraf = require('telegraf');
// Create a bot using TOKEN provided as environment variable
const bot = new Telegraf(process.env.TOKEN);
// Import replies file
const replies = require('./replies')
// Extract reply_to_message.message_id field from Telegraf ctx
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 / boxstarter.txt
Created Aug 1, 2017 script
View boxstarter.txt
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
cinst googlechrome
cinst vlc
cinst 7zip
cinst ccleaner
cinst steam
cinst spotify
Pitasi / hotkeys.ahk
Created Jul 13, 2017
Special characters shortcuts for Windows - using AutoHotKeys
View hotkeys.ahk
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
<^>!'::Send, ``
<^>!ì::Send, ~
#if getkeystate("capslock","t")
à::SendRaw, À
Pitasi / RettangoloArrotondato.fsx
Last active Oct 12, 2016
Classe per creare facilmente rettangoli (filled) con angoli smussati.
View RettangoloArrotondato.fsx
open System.Windows.Forms
open System.Drawing
let f = new Form(TopMost=true, Text="Ciao")
type Style = Filled | Border
type RettangoloArrotondato() =
inherit UserControl()
View bottone.fsx
open System.Windows.Forms
open System.Drawing
type Bottone() =
inherit UserControl()
let mutable FColor = Color.Red
let mutable SColor = Color.FromArgb(175, 0, 0, 0)
let mutable STickness = 3
let mutable LText = ""
You can’t perform that action at this time.