Skip to content

Instantly share code, notes, and snippets.

View skvarovski's full-sized avatar
🌴
On vacation

Mike Skvarovski skvarovski

🌴
On vacation
  • Moscow
View GitHub Profile
@skvarovski
skvarovski / image2grf.php
Created May 4, 2022 11:13 — forked from thomascube/image2grf.php
PHP function to convert a PNG image to a .GRF file for use with Zebra printers
<?php
/**
* Converts a PNG image to a .GRF file for use with Zebra printers
*
* The input is preferably a 1-bit black/white image but RGB images
* are accepted as well.
*
* This function uses PHP's GD library image functions.
*
@skvarovski
skvarovski / .proxyauth
Created April 18, 2022 11:29 — forked from PlugFox/.proxyauth
Установка и настройка прокси-сервера 3proxy на Debian/Ubuntu
## addusers in this format:
#user:CL:password
##see for documentation: http://www.3proxy.ru/howtoe.asp#USERS
#
# Username
MyUser:CL:MyPassword
#include <BLEAdvertisedDevice.h>
#include <BLEDevice.h>
#include <BLEScan.h>
const int PIN = 2;
const int CUTOFF = -60;
void setup() {
pinMode(PIN, OUTPUT);
BLEDevice::init("");