Skip to content

Instantly share code, notes, and snippets.

View puzanov's full-sized avatar
👨‍💻
Code Away

Oleg Puzanov puzanov

👨‍💻
Code Away
View GitHub Profile
{
"OCR": {
"serial": "0241456789",
"firstname": "Александра",
"surname": "Александрова",
"secondname": "Александровна",
"pob": "Петропавловск",
"birthday": "22.03.1987",
"date1": "12.03.2013",
"gender": "Ж"
@puzanov
puzanov / nambamusic.sh
Created January 20, 2017 12:05
Bash script for downloading mp3s from namba
#!/bin/bash
# This one downloading tracks from namba's playlists
# Need some customisation. And it fears whitespaces
#
# Author: Gen1us2k
# Thanks:
# - Romanius for support
# - Google for some useful methods
#
tmpfile=$(mktemp /tmp/namba_XXXXXX)
@puzanov
puzanov / Telegram Bot Audio Upload.go
Last active January 19, 2017 09:10
Telegram Bot Audio Upload
msg := tgbotapi.NewAudioUpload(ChatID, "tests/audio.mp3")
msg.Title = "TEST"
msg.Duration = 10
msg.Performer = "TEST"
msg.MimeType = "audio/mpeg"
msg.FileSize = 688
_, err := bot.Send(msg)
if err != nil {
t.Error(err)