Content.
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
| #include <stdio.h> | |
| #include <assert.h> | |
| #include <stdlib.h> | |
| #include <pthread.h> | |
| #include <unistd.h> | |
| #include <sys/types.h> | |
| #include <sys/socket.h> | |
| /** | |
| * related blogpost at: http://sidekick.windforwings.com/2012/05/inter-thread-communication-socketpairs.html |
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
| [Dialer Defaults] | |
| Modem = /dev/ttyUSB2 | |
| Init1 = ATZ | |
| Init3 = ATE0V1 | |
| Init5 = ATS0=0 | |
| Init6 = AT+CGDCONT=1,"IP","3gnet" | |
| Init7 = AT+CFUN=1 | |
| Modem Type = USB Modem | |
| Baud = 460800 |
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
| #include "stm32l0xx.h" | |
| /* | |
| * Stop mode/LSE/RTC: 1.28uA | |
| * Stop mode without RTC: 0.4uA | |
| **/ | |
| //#define RTC_ENABLE | |
| int main(void) | |
| { |
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
| 31 8D 1A 0B 00 52 75 80 00 FF 09 2B 20 00 00 00 | |
| 00 3F 00 6F 00 01 00 00 24 21 6D 33 40 72 87 FF | |
| 00 32 28 FF 00 00 04 00 02 6C 60 00 0F 50 14 40 | |
| 00 03 05 27 1C 0A 03 0A 42 12 52 1D 00 AF 00 00 | |
| 00 00 11 24 2D 00 03 00 04 23 00 09 05 87 32 2B | |
| 14 00 00 0F 00 00 00 0F E0 00 0C F9 06 00 5C 78 | |
| 00 19 0C 4B CC 0D C1 20 04 47 AF 00 1B 00 49 0B | |
| D0 01 16 00 00 00 00 00 00 00 00 00 00 00 00 00 |
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
| diff --git a/include/components.h b/include/components.h | |
| index 4113a869..57c0c026 100644 | |
| --- a/include/components.h | |
| +++ b/include/components.h | |
| @@ -63,8 +63,8 @@ | |
| #ifdef RT_USING_DFS_YAFFS2 | |
| #include <dfs_yaffs2.h> | |
| #endif | |
| -#ifdef RT_USING_DFS_ROMFS | |
| -#include <dfs_romfs.h> |
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
| // https://tools.ietf.org/html/rfc4648 | |
| // https://en.wikipedia.org/wiki/Base32 | |
| const char base32_tab[32] = "0123456789ABCDEFGHIJKLMNOPQRSTUV"; | |
| int bin2base32hex(uint8_t *buf, int len, char *base32, bool pad) | |
| { | |
| int i, j, k, cnt = 0; | |
| uint8_t val = 0; | |
| int padnum; | |
| padnum = 8-((len*8+4)/5)%8; |
# ubuntu 14.04
sudo apt install -y build-essential libssl-dev zlib1g-dev libpam0g-dev
./configure --prefix=/usr --sysconfdir=/etc/ssh --with-pam
make
sudo make installNote: don't worry, configuration files under /etc/ssh will not be overwritten .
Ubuntu 16.04
/etc/systemd/system/certbot.service
[Unit]
Description=Let's Encrypt renewal
[Service]
Type=oneshot
ExecStart=/usr/bin/certbot renew --quiet --agree-tos
OlderNewer