sudo apt update && sudo apt upgrade
Discover gists
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
<?php | |
// PHP sample code to show multipart file upload using the B2 Native API | |
// User supplies optional -v for verbose output from curl, then bucket name | |
// and path to local file | |
$rest_index = null; | |
$opts = getopt("v::", [], $rest_index); | |
$args = array_slice($argv, $rest_index); |
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
import hexdump | |
import kiss | |
import struct | |
def decode_addr(data, cursor): | |
(a1, a2, a3, a4, a5, a6, a7) = struct.unpack("<BBBBBBB", data[cursor:cursor+7]) | |
hrr = a7 >> 5 | |
ssid = (a7 >> 1) & 0xf | |
ext = a7 & 0x1 |
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
/** | |
* \par Copyright (C), 2012-2016, MakeBlock | |
* @file Me_LEDMatrixTest.ino | |
* @author MakeBlock (modified by Petr Lukas) | |
* @version V1.0.0 | |
* @date 2019/05/12 | |
* @brief Description: this file is sample code for Me LED Matrix device. | |
* | |
* Function List: | |
* clearScreen() Remove content of display |
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
<settings> | |
... | |
<activeProfiles> | |
<activeProfile>nexus</activeProfile> | |
</activeProfiles> | |
... | |
<profiles> | |
<profile> | |
<id>nexus</id> | |
<repositories> |
NewerOlder