This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ctype.h> | |
#include <stdarg.h> | |
#include <stddef.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <sys/types.h> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from binascii import hexlify | |
from time import sleep | |
from zag import MHR, Radio | |
def main(): | |
def packet_handler(data, rssi, link_quality): | |
mhr, offset = MHR.decode(data) | |
print(hexlify(mhr.encode() + data[offset:]).decode('utf8')) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# vim: set ts=4 et | |
import json | |
import socket | |
class RpcException(Exception): | |
pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -ru linux-2.6.35.7.orig/arch/arm/include/asm/unistd.h linux-2.6.35.7/arch/arm/include/asm/unistd.h | |
--- linux-2.6.35.7.orig/arch/arm/include/asm/unistd.h 2011-08-07 23:52:04.000000000 -0500 | |
+++ linux-2.6.35.7/arch/arm/include/asm/unistd.h 2013-12-18 11:50:52.123791000 -0600 | |
@@ -392,6 +392,7 @@ | |
#define __NR_rt_tgsigqueueinfo (__NR_SYSCALL_BASE+363) | |
#define __NR_perf_event_open (__NR_SYSCALL_BASE+364) | |
#define __NR_recvmmsg (__NR_SYSCALL_BASE+365) | |
+#define __NR_accept4 (__NR_SYSCALL_BASE+366) | |
/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* vim: set ts=4 | |
* | |
* Copyright (C) 2013 Jeff Kent <[email protected]> | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License version 2 as | |
* published by the Free Software Foundation. | |
* | |
* This program is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>HLK-RM04 Tool</title> | |
<style> | |
form { | |
display: inline; | |
} | |
</style> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -Nrup squashfs-tools/compressor.c squashfs-tools/compressor.c | |
--- squashfs-tools/compressor.c 2011-02-11 09:49:24.000000000 -0600 | |
+++ squashfs-tools/compressor.c 2013-06-10 02:11:35.096301000 -0500 | |
@@ -59,6 +59,7 @@ static struct compressor xz_comp_ops = { | |
extern struct compressor xz_comp_ops; | |
#endif | |
+extern struct compressor special_comp_ops; | |
static struct compressor unknown_comp_ops = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf8 -*- | |
# vim: set ts=4 et | |
from serial import Serial | |
import sys | |
from threading import Thread, Condition | |
class Reader(Thread): | |
def __init__(self, ser): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# vim: ts=4 et sw=4 sts=4 ai | |
import ftdi1 | |
NONE = ftdi1.NONE | |
ODD = ftdi1.ODD | |
EVEN = ftdi1.EVEN | |
MARK = ftdi1.MARK | |
SPACE = ftdi1.SPACE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
add_song() { | |
file=`readlink -e "$1"` | |
name=`basename "$1" | sed 's/\(.flac\|\.m4a\|\.mp3\|\.ogg\|\.wma\)$//i'` | |
echo "#EXTINF:0,$name" >> $playlist | |
echo "$file" >> $playlist | |
} | |
playlist=$1 |
NewerOlder