Skip to content

Instantly share code, notes, and snippets.

@Bougakov
Bougakov / image.py
Last active October 13, 2024 12:29
A wrapper for python-escpos to print Unicode text labels with the TrueType font of your choice from command line. Written in Python 3. Also - an additional wrapper written in Parser3, to allow printing notes from web browser.
#!/usr/bin/env python3
debug = 1
import argparse
parser = argparse.ArgumentParser(description="Prints provided image on a POS printer")
parser.add_argument("-i", "--image", type=str, help="path to image")
parser.add_argument("-c", "--crop", type=str, help="Cut paper roll after printing (default: yes)",
choices=["yes","no"])
args = parser.parse_args()
@Bougakov
Bougakov / telegram_doorbell.ino
Created May 22, 2020 20:04
Code for ESP8266 "smart" door bell
#ifdef ARDUINO_ARCH_ESP8266
#include <ESP8266WiFi.h>
#endif
#ifdef ARDUINO_ARCH_ESP32
#include <WiFi.h>
#endif
#include <esp8266-google-home-notifier.h>
#include <ESP8266HTTPClient.h>
@Bougakov
Bougakov / whisper.cpp.md
Last active May 22, 2023 12:33
как расшифровывать аудио на маке