Skip to content

Instantly share code, notes, and snippets.

View antono's full-sized avatar
Focusing

Antono Vasiljev antono

Focusing
View GitHub Profile
CH1 is at 2.413G, format is 250kbps FSK.
All packet bits are inverted wrt nRF24L01+.
=> TODO: Invert every byte before sending via nRF24L01+!!!
<PACKET>:
0xAA 0xAA 0xAA 0xAA 0xC3 0x68 0xC3 0x68 <PAYLOAD>
<PAYLOAD>:
<CONTROL>
@antono
antono / fedora_rtl8812au.md
Created January 3, 2022 11:40 — forked from gengwg/fedora_rtl8812au.md
Fedora install rtl8812au driver for Realtek Wifi Dongle

Tested on Fedora 32.

sudo dnf groupinstall "Development Tools"
sudo dnf install dkms
git clone https://github.com/gnab/rtl8812au.git
sudo dkms build 8812au/4.2.2
sudo dkms install 8812au/4.2.2
sudo modprobe 8812au
@antono
antono / fix-all-dates.sh
Created October 27, 2018 15:47
DJI Mavic Air fix dates
#!/bin/bash
DIR=$1
exiftool -v0 -progress \
-overwrite_original "-CreateDate<FileModifyDate" \
"-ModifyDate<FileModifyDate" "-TrackCreateDate<FileModifyDate" \
"-TrackModifyDate<FileModifyDate" "-MediaCreateDate<FileModifyDate" \
"-MediaModifyDate<FileModifyDate" "-FileCreateDate<FileModifyDate" \
$DIR/*.MP4
@antono
antono / asyncawait.js
Last active January 28, 2018 17:58
Promise vs async/await
async function doSomething (value, reject = true) {
if (reject) {
throw value;
} else {
return value;
}
}
async function task() {
try {
➜ RxJS git:(master) cloc src/core
295 text files.
295 unique files.
7 files ignored.
github.com/AlDanial/cloc v 1.72 T=0.90 s (319.3 files/s, 17587.0 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
JavaScript 283 1521 2028 10893
@antono
antono / ЦитатникИпешника.md
Last active October 26, 2016 09:41
Соль земли и Мудрость старцев - без регистрации и SMS (только по инвайтам)
  • Alexei Gusev
    • Себе то не гони !!!
  • Pavel Gabriel
    • Нехватило недели..., теперь страшно смотреть.
    • микросервис у нас 1 :D
  • Alexander Randa
    • когда ищешь работу, никому никто не нужен.
  • Andrey Martyanov
    • Типичная хуйня в айти.
  • Anton Shemerey
@antono
antono / gist:9c8b6171b5566ba407a0b6489b8378b1
Last active October 26, 2016 09:32
Бисер Великих
-- не хватило недели...
-- себе-то не гони
-- микросервис у нас 1 :D
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache till the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction check error:
file /usr/share/doc/gstreamer1/NEWS from install of gstreamer1-1.6.2-1.fc23.i686 conflicts with file from package gstreamer1-1.6.1-1.fc23.x86_64
file /usr/share/doc/gstreamer1/RELEASE from install of gstreamer1-1.6.2-1.fc23.i686 conflicts with file from package gstreamer1-1.6.1-1.fc23.x86_64
file /usr/share/locale/af/LC_MESSAGES/gstreamer-1.0.mo from install of gstreamer1-1.6.2-1.fc23.i686 conflicts with file from package gstreamer1-1.6.1-1.fc23.x86_64
file /usr/share/locale/az/LC_MESSAGES/gstreamer-1.0.mo from install of gstreamer1-1.6.2-1.fc23.i686 conflicts with file from package gstreamer1-1.6.1-1.fc23.x86_64
@antono
antono / designer.html
Created December 25, 2014 18:11
designer
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@antono
antono / gist:5951422
Created July 8, 2013 18:50
Stupid open(...) calls on each require()
close(7) = 0
lstat("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/antono", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
lstat("/home/antono/.rbenv", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/antono/.rbenv/versions", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/antono/.rbenv/versions/2.0.0-p195", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/antono/.rbenv/versions/2.0.0-p195/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/antono/.rbenv/versions/2.0.0-p195/lib/ruby", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/antono/.rbenv/versions/2.0.0-p195/lib/ruby/gems", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/antono/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0