This is my solution for:
- PowerShell:
netsh interface ipv4 show subinterface
- WSL2:
ip link list
- WSL2:
sudo ip link set dev eth0 mtu 1400
def custom_cmap(colors, padding=1.05): | |
""" Create a custom colormap from a dictionary | |
Args: | |
colors <dict>: Levels to colornames | |
padding <float>: Offset levels | |
""" | |
assert(isinstance(colors, dict)) | |
assert(None in colors) |
👩💻 👨💻
Hello Friends. This is my space where I want to spread knowledge as far as I can.
REM Use `vcodec=mp4v` on Windows 10 (VLC 2.2.8) NOT `vcodec=h264` | |
REM (note: multiple web-cams? can change default for dshow:// inside `Tools>Preferences>Input Codecs`) | |
REM UDP (spray and pray) seems most error-tolerant: | |
CALL "C:\Program Files\VideoLAN\VLC\vlc.exe" -I dummy dshow:// --sout "#transcode{vcodec=mp4v,vb=800,scale=0.25}:udp{dst=<IP>:1234}" --live-caching 1000 | |
REM <IP> Here is where to broadcast (e.g. the client IP) | |
REM To connect on a Client: vlc udp://@:1234 --network-caching 0 | |
REM To use HTTP seems stable but slower/high-latency: | |
CALL "C:\Program Files\VideoLAN\VLC\vlc.exe" -I dummy dshow:// --sout "#transcode{vcodec=mp4v,vb=800,scale=0.25}:standard{access=http,mux=ts,dst=:8080}" |
Modified to use a file-open API (instead of copy paste).
Original: http://xml-tools.net/schemaviewer.html
import datetime | |
import json | |
import os | |
import requests | |
WEBHOOK_URL: str = os.getenv("WEBHOOK_URL") | |
SLACK_CHANNEL: str = os.getenv("SLACK_CHANNEL", "#devops-alarms") | |
SLACK_USERNAME: str = os.getenv("SLACK_USERNAME", "aws-alarm-bot") |