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 / qt.cfg
Last active February 26, 2019 07:27 — forked from trollixx/qt.cfg
Uncrustify configuration for Qt
# Uncrustify 0.60
#
# Qt specific options
#
set FOR foreach
set FOR forever
#
# General options
@a-andreyev
a-andreyev / ac100-kernel.md
Created June 20, 2017 15:01 — forked from Nokius/ac100-kernel.md
ARCH LINUX WITH MAINLINE KERNEL FOR TOSHIBA AC100 [paz00 / dynabookaz]

ARCH LINUX WITH MAINLINE KERNEL FOR TOSHIBA AC100

all u need

  • 1-2 hours of your life
  • build envirment for the Kernel
  • device with Ubuntu and nvflash
  • AC100
  • mini-usb cabel
  • usb-stick >512MB
@a-andreyev
a-andreyev / ibeacon_scan.sh
Last active June 21, 2017 12:56 — forked from c0ze/ibeacon_scan.sh
A bash script to parse ibeacon packets
#!/bin/bash
# iBeacon Scan by Arda Karaduman
# + MQTT pub by Alexey Andreyev (aa13q@ya.ru)
function parse_ib_uuid {
UUID=`echo $1 | sed 's/^.\{69\}\(.\{47\}\).*$/\1/'`
UUID=`echo $UUID | sed -e 's/\ //g' -e 's/^\(.\{8\}\)\(.\{4\}\)\(.\{4\}\)\(.\{4\}\)\(.\{12\}\)$/\1-\2-\3-\4-\5/'`
}
function parse_ib_major {
@a-andreyev
a-andreyev / readme.md
Last active January 2, 2017 17:23 — forked from albertcarrete/readme.md
Surface Pro 4 Arch Linux Installation
@a-andreyev
a-andreyev / truthtable.py
Last active October 18, 2016 15:23 — forked from pindia/gist:3836713
Python truth table calculator
#!/usr/bin/python2
# based on: https://gist.github.com/pindia/3836713
from itertools import izip, product, tee
# Logic functions: take and return iterators of truth values
def AND(a, b):
for p, q in izip(a, b):
yield p and q