Define component with default props:
interface IProps{
propName:boolean;
}
export default function ComponentName(props?:IProps) {
const {propName=false} = props?props:{}
}
#!/usr/bin/env bash | |
now=`date +"%Y-%m-%d %H-%M-%S"` | |
gnome-screenshot -a -f "Pictures/gnome-screenshot/${now}.png" | |
# One can use keyboard shortcuts to call above script and ... |
interface IProps{
propName:boolean;
}
export default function ComponentName(props?:IProps) {
const {propName=false} = props?props:{}
}
This can be placed on an scheduler and logs your traffic like every hour or so.
{
:set $tx ([/interface get ether1 tx-byte]/1048576)
:set $rx ([/interface get ether1 rx-byte]/1048576)
:log debug "Traffic log,TX,$tx,RX,$rx;"
}
import serial
from threading import Thread
import threading
import time
import matplotlib.pyplot as plt
import matplotlib.animation as animation