Wildcards
wlan.vs.aruba.ap_name ~ "name."
wlan.vs.aruba.ap_name matches "name."
Multicast
Inspired by https://m0chan.github.io/2018/07/31/Linux-Notes-And-Cheatsheet.html. Plan is to add more to this.
ls -1 /sys/class/net/ | grep -v lo | xargs -n1 -I{} bash -c 'echo -n {} :" " ; basename `readlink -f /sys/class/net/{}/device/driver`'
then
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| """ | |
| jemail.py | |
| ~~~~~~~~~ | |
| a script for learning about sending email with Python | |
| """ | 
| import requests | |
| url = "https://GRAPHQL-ENDPOINT/graphql" | |
| headers = {"api-token": "TOKEN HERE"} | |
| def run_query(url, query, headers) -> dict: | |
| """ Run query and return result. """ | |
| request = requests.post(url=url, json={"query": query}, headers=headers) | |
| if request.status_code == 200: | 
| def at_aligned(seq): | |
| snums = [str(n) for n in seq] | |
| ats = [len(s.split('@', 1)[0]) for s in snums] | |
| m = max(ats) | |
| return [' '*(m - d) + s for s, d in zip(snums, ats)] | |
| channelInfo = ["36@160", | |
| "1@20", | |
| "161@40", | |
| "161@40", | 
Groups of words I've come across that have helped me in one way or another (these are not mine)
Get-EventLog System -Newest 10 -EntryType error -Source 'netw*' | Select Index, TimeGenerated, Source, EventID, InstanceID, Message | Format-Table -wrap  
 Index TimeGenerated        Source   EventID InstanceId Message
 ----- -------------        ------   ------- ---------- -------
124567 12/2/2019 6:26:10 AM Netwtw08    5005 3221230477 Intel(R) Wi-Fi 6 AX200 160MHz : Has encountered an internal error and has failed.
124566 12/2/2019 6:26:10 AM Netwtw08    5002 3221230474 Intel(R) Wi-Fi 6 AX200 160MHz : Has determined that the network adapter is not functioning properly.
124565 12/2/2019 6:26:10 AM Netwtw08 5005 3221230477 Intel(R) Wi-Fi 6 AX200 160MHz : Has encountered an internal error and has failed.
| """ | |
| - there are known issues with this approach. | |
| - consider that this does not force the driver to refresh it's RSSI reading. | |
| - if you want to monitor RSSI, you need to use the wlanapi. | |
| """ | |
| import subprocess | |
| command = ['netsh', 'wlan', 'show', 'interface'] | |
| out = subprocess.check_output(command) | |
| out = out.decode("utf-8").lower() |