When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}
cbor = Dissector.get("cbor") | |
iso7816 = Dissector.get("iso7816") | |
ctap_proto = Proto("ctaphid","ctap hid") | |
-- Field Extractor | |
direction_fe = Field.new("usb.endpoint_address.direction") | |
udp_srcport_fe = Field.new("udp.srcport") | |
CTAPHID_COMMAND_CODE = { | |
[0x03]='CTAPHID_MSG', | |
[0x10]='CTAPHID_CBOR', |
.text | |
.globl _start | |
_start: | |
mov %r0, $1 // file descriptor number 1 (stdout) | |
ldr %r1, =message | |
mov %r2, $message_len | |
mov %r7, $4 // syscall 4 (write) | |
swi $0 |
#!/bin/bash | |
sleep 15 | |
# Create gadget | |
mkdir /sys/kernel/config/usb_gadget/mykeyboard | |
cd /sys/kernel/config/usb_gadget/mykeyboard | |
# Add basic information | |
echo 0x0100 > bcdDevice # Version 1.0.0 |
More details - http://blog.gbaman.info/?p=791
For this method, alongside your Pi Zero, MicroUSB cable and MicroSD card, only an additional computer is required, which can be running Windows (with Bonjour, iTunes or Quicktime installed), Mac OS or Linux (with Avahi Daemon installed, for example Ubuntu has it built in).
1. Flash Raspbian Jessie full or Raspbian Jessie Lite onto the SD card.
2. Once Raspbian is flashed, open up the boot partition (in Windows Explorer, Finder etc) and add to the bottom of the config.txt
file dtoverlay=dwc2
on a new line, then save the file.
3. If using a recent release of Jessie (Dec 2016 onwards), then create a new file simply called ssh
in the SD card as well. By default SSH i
This tutorial will turn your Raspberry PI into a simple Bluetooth audio receiver, which plays music through connected speakers. It's like a regular car audio system, but it can be used anywhere and it's a good value.
Audio source (i.e. smartphone)
|
v
((( Wireless Bluetooth Channel )))
|
The AID of the yubikey applet on the Yubikey Neo is A000000527200101
.
You can select it with the APDU 00 a4 04 00 08 A0 00 00 05 27 20 01 01
.
For the YubiKey applet there are 4 commands:
# Strong nginx config for SSL Labs rating A as of 3-2015 | |
# Broad legacy compatibility including IE8, Android 2.3+, openssl 0.9.8 clients | |
# Blocks most bot scan IP probes. | |
# | |
# *** Assumes: _HOSTNAME_ is replaced *** | |
# *** Assumes: Diffie-Hellman parameters have been generated (see: dhparam below) | |
# | |
# Includes OCSP stapling, HSTS Strict Transport security, | |
# session resumption, legacy backwards compatibility (XP, Android 2.3-4.3) | |
# |
TARGET=blink | |
SOURCES=blink.c | |
DEPS= | |
COBJ=$(SOURCES:.c=.o) | |
CC=avr-gcc | |
OBJC=avr-objcopy | |
MCU=atmega328p | |
CFLAGS=-I. -Wall -Os -DF_CPU=16000000UL | |
LDFLAGS= |
Add Enable=Source
to /etc/bluetooth/audio.conf right after [General]
.
Find address in form XX:XX:XX:XX:XX:XX of phone with hcitool scan
.
Pair and trust smartphone with sudo bluez-simple-agent hci0 XX:XX:XX:XX:XX:XX
and sudo bluez-test-device trusted XX:XX:XX:XX:XX:XX yes
.
Create loopback in pulseaudio connection bluetooth a2dp source with alsa sink: