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
struct dot11_packet { | |
int32_t tv_sec; | |
int32_t tv_usec; | |
int dlt; | |
/* Channel we captured on, if available in packet headers, or channel we | |
* will tx on */ | |
int channel; | |
/* Length of components */ |
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 --git a/host/cmake/modules/FindUSB1.cmake b/host/cmake/modules/FindUSB1.cmake | |
index 0cbf802..2f3138d 100644 | |
--- a/host/cmake/modules/FindUSB1.cmake | |
+++ b/host/cmake/modules/FindUSB1.cmake | |
@@ -24,10 +24,15 @@ else (LIBUSB_INCLUDE_DIR AND LIBUSB_LIBRARIES) | |
pkg_check_modules(PC_LIBUSB libusb-1.0) | |
ENDIF(NOT WIN32) | |
+ set(LIBUSB_LIBRARY_NAME usb-1.0) | |
+ IF(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") |
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 | |
# | |
# Copyright 2005,2007,2011,2015 Free Software Foundation, Inc. | |
# | |
# GNU Radio is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 3, or (at your option) | |
# any later version. | |
# | |
# GNU Radio is distributed in the hope that it will be useful, |
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 | |
# Utility to upload USB descriptors to http://usbdescriptors.com/ | |
# Copyright 2014 Dominic Spill | |
LSUSB=`which lsusb` | |
CURL=`which curl` | |
AWK=`which awk` | |
SORT=`which sort` |
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 | |
import time | |
import json | |
import urllib2 | |
import os | |
platform = os.uname()[0] | |
if platform == 'Darwin': | |
import subprocess | |
def speak(phrase): |
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
[Desktop Entry] | |
Version=1.0 | |
Name=Quartus II | |
Comment=Altera Quartus II Web Edition | |
GenericName=FPGA Tools | |
Keywords=FPGA;Programming;Development | |
Exec=/opt/altera/12.1/quartus/bin/quartus | |
Terminal=false | |
X-MultipleArgs=false | |
Type=Application |
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
u32 btle_crc_lut[256] = { | |
0x000000, 0x01b4c0, 0x036980, 0x02dd40, 0x06d300, 0x0767c0, 0x05ba80, 0x040e40, | |
0x0da600, 0x0c12c0, 0x0ecf80, 0x0f7b40, 0x0b7500, 0x0ac1c0, 0x081c80, 0x09a840, | |
0x1b4c00, 0x1af8c0, 0x182580, 0x199140, 0x1d9f00, 0x1c2bc0, 0x1ef680, 0x1f4240, | |
0x16ea00, 0x175ec0, 0x158380, 0x143740, 0x103900, 0x118dc0, 0x135080, 0x12e440, | |
0x369800, 0x372cc0, 0x35f180, 0x344540, 0x304b00, 0x31ffc0, 0x332280, 0x329640, | |
0x3b3e00, 0x3a8ac0, 0x385780, 0x39e340, 0x3ded00, 0x3c59c0, 0x3e8480, 0x3f3040, | |
0x2dd400, 0x2c60c0, 0x2ebd80, 0x2f0940, 0x2b0700, 0x2ab3c0, 0x286e80, 0x29da40, | |
0x207200, 0x21c6c0, 0x231b80, 0x22af40, 0x26a100, 0x2715c0, 0x25c880, 0x247c40, | |
0x6d3000, 0x6c84c0, 0x6e5980, 0x6fed40, 0x6be300, 0x6a57c0, 0x688a80, 0x693e40, |
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
[user] | |
email = email@example.com | |
name = John Doe | |
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
interactive = auto | |
grep = auto |
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 <stdio.h> | |
#include <stdint.h> | |
#define u8 uint8_t | |
#define u32 uint32_t | |
u32 btle_calc_crc(u32 crc_init, u8 *data, int len) { | |
u32 state = crc_init; |
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 | |
decks = [range(1, 53)] | |
def shuffle(deck): | |
a = deck[:len(deck)/2] | |
b = deck[len(deck)/2:] | |
c = zip(a, b) | |
return c |
OlderNewer