start new:
tmux
start new with session name:
tmux new -s myname
# example reading two serial devices using pyserial, asyncio and coroutines | |
import serial_asyncio | |
import asyncio | |
@asyncio.coroutine | |
def serial_read(device, **kwargs): | |
reader, writer = yield from serial_asyncio.open_serial_connection(url=device, **kwargs) | |
while True: | |
line = yield from reader.readline() |
/* | |
* Genarate rsa keys. | |
*/ | |
package main | |
import ( | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/x509" |