I hereby claim:
- I am modulusmath on github.
- I am modulusmath (https://keybase.io/modulusmath) on keybase.
- I have a public key whose fingerprint is EDE0 F23D F43D 7B48 4B69 FF3A 0EFE 18B7 6CEA 4A08
To claim this, I am signing this object:
###############################################3 | |
# Get MAC Address using Micropython | |
# Where network_setup.sta_if is the lan object | |
# See https://stackoverflow.com/questions/71902740/how-to-retrieve-and-format-wifi-mac-address-in-micropython-on-esp32 | |
###############################################3 | |
import ubinascii | |
import network_setup | |
print(ubinascii.hexlify(network_setup.sta_if.config('mac'),':').decode().upper()) | |
""" | |
The 1.3" I2C 128x64 OLED will use sh1106 and NOT ssd1306 drivers: | |
i.e https://www.amazon.com/HiLetgo-SSH1106-SSD1306-Display-Arduino/dp/B01MRR4LVE?th=1 | |
The .96" I2C 128x64 OLED will use ssd1306 drivers: | |
i.e https://www.amazon.com/DIYmall-Serial-128x64-Display-Arduino/dp/B00O2KDQBE?th=1 | |
""" | |
from machine import Pin, I2C | |
oled_width = 128 | |
oled_height = 64 |
# Credit https://forum.micropython.org/viewtopic.php?f=16&t=2361&start=10 | |
import uos | |
fs_stat = uos.statvfs('/') | |
fs_size = fs_stat[0] * fs_stat[2] | |
fs_free = fs_stat[0] * fs_stat[3] | |
print("File System Size {:,} - Free Space {:,}".format(fs_size, fs_free)) |
#cd /var/log/suricata | |
#cat eve.json | jq -r '.dest_port' | sort | uniq -c | sort -nr | head | |
436 53 | |
410 443 | |
215 null | |
193 80 | |
28 22 | |
22 5353 | |
15 1900 | |
6 5228 |
cat /etc/network/interfaces | |
# Please note that this file is written to be used with dhcpcd | |
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf' | |
# Include files from /etc/network/interfaces.d: | |
source-directory /etc/network/interfaces.d | |
auto lo | |
iface lo inet loopback |
### Keybase proof | |
I hereby claim: | |
* I am jouellnyc on github. | |
* I am jouellnyc (https://keybase.io/jouellnyc) on keybase. | |
* I have a public key whose fingerprint is 0763 D155 5A7E C1E0 EF47 B975 433D 4AB3 2446 852A | |
To claim this, I am signing this object: |
I hereby claim:
To claim this, I am signing this object: