This file contains 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 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 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 | |
#hci1 01:02:03:04:05:06 | |
#bccmd -d hci1 psset bdaddr 04 00 06 05 03 00 02 01 | |
CMD="bccmd -d $1 psset bdaddr $(($5)) 00 $(($7)) $(($6)) $(($4)) 00 $(($3)) $(($2))" | |
echo $CMD | |
$CMD |
This file contains 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 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 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 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): |
NewerOlder