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
{ | |
"name": "Bob", | |
"age": 5, | |
"family": ["Fred", "Maria"] | |
} |
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
- build multiple docker images from same context | |
- instant docker stats command | |
- run a command from a stopped container | |
- change container configuration | |
- convert filesystem permissions |
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 <stdlib.h> | |
#include <fcntl.h> /* For O_* constants */ | |
#include <sys/stat.h> /* For mode constants */ | |
#include <mqueue.h> | |
#define QUEUE_NAME "/my-mqueue" | |
#define QUEUE_SIZE 128 | |
#define QUEUE_MSG_SIZE 64 |
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
void Trf796xTurnRfOn(void) { | |
Trf796xWriteSingle(CHIP_STATE_CONTROL, 0x20); | |
} | |
void Trf796xConfigureIsoProtocol(void) { | |
uint8_t txbuf[11]; | |
txbuf[0] = 0x02; // ISO_CONTROL reg: ISO15693 high bit rate, one subcarrier, 1 out of 4 | |
txbuf[1] = 0x00; // ISO_14443B_OPTIONS | |
txbuf[2] = 0x00; // ISO_14443A_OPTIONS | |
txbuf[3] = 0xC1; // TX_TIMER_EPC_HIGH: timer start condition, end of SOF |