Skip to content

Instantly share code, notes, and snippets.

View a-andreyev's full-sized avatar
🕊️

Alexey Andreyev a-andreyev

🕊️
View GitHub Profile
@a-andreyev
a-andreyev / echoprint-codegen-snapshot.sh
Created July 26, 2015 13:03
echoprint-codegen.spec for Jolla Sailfish
#!/bin/sh
wget --no-check-certificate https://github.com/echonest/echoprint-codegen/archive/$1.tar.gz
mv $1.tar.gz echoprint-codegen-$1.tar.gz
@a-andreyev
a-andreyev / PKGBUILD
Last active August 29, 2015 14:26
arduino-cli PKGBUILD
# Contributor : Devaev Maxim <mdevaev@gmail.com>
# Contributor : Alexey Andreyev <yetanotherandreyev@gmail.com>
pkgname=arduino-cli
pkgver=0.2
pkgrel=2
pkgdesc="CLI development tools for Arduino without Java and Arduino IDE"
arch=('any')
url="http://code.google.com/p/arduino-cli"
license="GPL"
# Contributor : Alexey Andreyev <yetanotherandreyev@gmail.com>
pkgname=esp-open-sdk-git
pkgver=0.1
pkgrel=1
pkgdesc="Free and open (as much as possible) integrated SDK for ESP8266 chips"
arch=('any')
url="https://github.com/pfalcon/esp-open-sdk"
license="MIT"
depends=('python-serial')
@a-andreyev
a-andreyev / PKGBUILD
Created August 5, 2015 15:22
Arduino prototyping platform SDK libs without gtk, java, docs and examples
# Maintainer: Niels Martignène <niels.martignene@gmail.com>
# Contributor: PyroPeter <googlemail.com@abi1789>
# Contributor: darkapex <me@jailuthra.in>
# Contributor: tty0 <vt.tty0[d0t]gmail.com>
# Contributor: aa13q <yetanotherandreyev@gmail.com>
pkgname=arduino-lite
epoch=1
pkgver=1.6.5
pkgrel=1
@a-andreyev
a-andreyev / PKGBUILD
Created October 21, 2015 00:06
archlinux libtorrent-rasterbar PKGBUILD
# Maintainer : Ionut Biru <ibiru@archlinux.org>
# Contributor: Hugo Doria <hugo@archlinux.org>
# Contributor: Andrea Scarpino <bash.lnx@gmail.com>
# Contributor: Alexey Andreyev: aa13q.ru
pkgname=libtorrent-rasterbar
pkgver=1.0.6
pkgpath=libtorrent-1_0_6
pkgrel=1
pkgdesc="A C++ library that aims to be a good alternative to all the other bittorrent implementations around"
@a-andreyev
a-andreyev / outfile.csv
Created November 24, 2015 13:51
narodmon awesome parser
lat lon time value
59.954133 30.30375 1447768800 +2
59.954133 30.30375 1447772400 +2
59.954133 30.30375 1447776000 +2
59.954133 30.30375 1447779600 +2.33
59.954133 30.30375 1447783200 +3
59.954133 30.30375 1447786800 +3
59.954133 30.30375 1447790400 +3
59.954133 30.30375 1447794000 +2.5
59.954133 30.30375 1447797600 +2
@a-andreyev
a-andreyev / uriForDrive.cpp
Created June 19, 2013 16:03
My qt5-qtsystems QStorageInfoPrivate::uriForDrive for Windows OSes realization to get uri-for-drive value similar with unix OSes
// My qt5-qtsystems QStorageInfoPrivate::uriForDrive for Windows OSes realization to get uri-for-drive value similar with unix OSes
// yetanotherandreyev at gmail
QString QStorageInfoPrivate::uriForDrive(const QString &drive)
{
WCHAR VolumeNameBuffer[100], FileSystemNameBuffer[100]; // not sure about buffer size yet
long unsigned int sn;
if (GetVolumeInformation((WCHAR *)drive.utf16(), VolumeNameBuffer, 100, &sn, NULL, NULL, FileSystemNameBuffer, 100)) {
QString uri = QString::number(sn,16).toUpper();
int x = uri.size();
from socket import *
UDP_IP="192.168.0.255"
UDP_PORT=8888
MESSAGE="UPD IS AWESOME"
print("UDP target IP:", UDP_IP)
print("UDP target port:", UDP_PORT)
print("message:", MESSAGE)
@a-andreyev
a-andreyev / max485toMega.ino
Created January 20, 2016 09:05
pc <-- usb --> arduino mega 2560 <--> max485 to ttl module <-- rs485 --> energomera ce 102 AK
#define SerialTxControl 10
#define RS485Transmit HIGH
#define RS485Receive LOW
void setup() {
// initialize both serial ports:
Serial.begin(9600);
Serial3.begin(9600);
pinMode(SerialTxControl, OUTPUT);
digitalWrite(SerialTxControl, RS485Receive);