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
Device.include showView: -> | |
CoffeeKup.render (-> | |
div "data-role": "page", id: "#{@device.id}", -> | |
div "data-role": "header", text: "#{@device.name}", -> | |
h1 "#{@device.name}" | |
div "data-role": "content" | |
div "data-role": "footer"), {context: {device: @}} |
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
HCI sniffer - Bluetooth packet analyzer ver 1.42 | |
device: hci0 snap_len: 1028 filter: 0xffffffff | |
< HCI Command: Create Connection (0x01|0x0005) plen 13 | |
bdaddr 00:0D:3C:37:46:22 ptype 0xcc18 rswitch 0x01 clkoffset 0x0000 | |
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 | |
> HCI Event: Command Status (0x0f) plen 4 | |
Create Connection (0x01|0x0005) status 0x00 ncmd 1 | |
> HCI Event: Connect Complete (0x03) plen 11 | |
status 0x00 handle 42 bdaddr 00:0D:3C:37:46:22 type ACL encrypt 0x00 | |
< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2 |
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
var Cc = Components.classes; | |
var Ci = Components.interfaces; | |
var Cu = Components.utils; | |
Cu.import("resource://gre/modules/Services.jsm"); | |
function startup(aData, aReason) { | |
var gBaseURL; | |
var installSpec = Services.io.newFileURI(aData.installPath).spec; |
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
caportal (master) $ nova flavor-list | |
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+-------------+ | |
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public | extra_specs | | |
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+-------------+ | |
| 1 | m1.tiny | 512 | 0 | 0 | | 1 | 1.0 | True | {} | | |
| 2 | m1.small | 2048 | 10 | 20 | | 1 | 1.0 | True | {} | | |
| 3 | m1.medium | 4096 | 10 | 40 | | 2 | 1.0 | True | {} | | |
| 4 | m1.large | 8192 | 10 | 80 | | 4 | 1.0 | True | {} | | |
| 5 | m1.xlarge | 16384 | 10 | 160 | | 8 | 1.0 | True | {} | | |
| 6 | m2.large | 32768 | 80 | 240 | | 4 | 1.0 | True | {} | |
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
<body></body> | |
<script src="http://gamingJS.com/Three.js"></script> | |
<script src="http://gamingJS.com/ChromeFixes.js"></script> | |
<script> | |
var requestFullScreen = function(element) { | |
var requestMethod = element.requestFullScreen || element.webkitRequestFullScreen || element.mozRequestFullScreen || element.msRequestFullScreen; | |
if (requestMethod) { | |
requestMethod.call(element); | |
} | |
} |
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
# On your raspberry pi that is connected to the internet: | |
# assuming a wrt54gs | |
wget 'http://www.broadband-hamnet.org/download/firmware/link/310/bbhn-3.1.0-wrt54g-2.4-squashfs.bin' | |
sudo apt-get install -y tftp | |
cat > wrtftp << EOF | |
#!/bin/sh |
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 | |
# turn LCD backlight on as soon as something is detected | |
# and once the name resolves, put that detail on screen | |
import json | |
import urllib2 | |
import csv | |
import datetime | |
import os |
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
/* | |
Activate an ibeacon when activity appears on d0 above a threshold | |
I use this to monitor when a mouse enters the live catch trap | |
"iBeacon Locate" app on iOS can alert when an iBeacon comes into range which is how the alert appears | |
https://twitter.com/bmidgley/status/681491360650637314 | |
Major ID is voltage of battery | |
Minor ID is temperature | |
*/ | |
#include <PinChangeInt.h> | |
uint8_t jingles = 0; |
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
/* | |
Helium balloon payload! | |
Blink the LED according to the accelerometer setting | |
Advertise both accelerometer and temperature readings as part of the iBeacon message | |
*/ | |
void setup() | |
{ | |
Bean.setBeanName("Orbiter1"); | |
} |
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 blescan | |
import sys | |
import re | |
import bluetooth._bluetooth as bluez | |
dev_id = 0 | |
try: |
OlderNewer