Skip to content

Instantly share code, notes, and snippets.

uint64_t zigbees[3]; // This somehow gets initialized (list of zigbee IDs)
int xbfd;
xbapi_op op_structs[3];
xbfd = xbapi_init("path to fd");
for (int i = 0; i < 3; i++) {
xbapi_initi_op(op_structs[i]);
xbapi_transmit(op_structs[i], "Hello Zigbee", zigbees[i]); // Should return error codes
}
@eatnumber1
eatnumber1 / stuffs.zsh
Created August 10, 2011 17:45 — forked from agargiulo/stuffs.zsh
simple zsh script
#!/bin/zsh
emulate -L zsh
setopt err_exit
if [[ $# -ne 1 ]]; then
printf "Usage: %s session_name\n" "$0" >&2
exit 1
fi
readonly SOCKDIR="/var/run/screen/S-${USER}"