Skip to content

Instantly share code, notes, and snippets.

View jakebrinkmann's full-sized avatar

Jake Brinkmann jakebrinkmann

View GitHub Profile
@jakebrinkmann
jakebrinkmann / fix_wsl_2_vpn.md
Created November 17, 2020 14:34
Fix the Pulse Secure VPN HTTPS issue inside WSL 2

This is my solution for:

Pulse Secure VPN

  1. PowerShell: netsh interface ipv4 show subinterface
  2. WSL2: ip link list
  3. WSL2: sudo ip link set dev eth0 mtu 1400

Notes

@jakebrinkmann
jakebrinkmann / colormap_demo.py
Last active March 29, 2023 14:50
create a custom disctrete levels python matplotlib colormap with no data
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)
@jakebrinkmann
jakebrinkmann / Websequence - Example Plantuml .ipynb
Created March 2, 2023 18:14
How to render a Websequence diagram of Python code calls in Plantuml Jupyter Notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jakebrinkmann
jakebrinkmann / colors.md
Last active February 27, 2023 16:09
Hex colors of the weeks, year 2021
Week Date Season Hex Color Thumbnail
01 01/01/21 WINTER #A8D2F1
02 01/08/21 WINTER #98C3EE
03 01/15/21 WINTER #87B4EB
04 01/22/21 WINTER #76A5E7
05 01/29/21 WINTER #6596E4
06 02/05/21 WINTER #5486E1
07 02/12/21 WINTER #4377DD
08 02/19/21 WINTER #3368DA
@jakebrinkmann
jakebrinkmann / README.md
Last active October 20, 2022 20:15
mypy and py2puml to create UML diagrams from Python Type Annotations

py2puml-mypy-rnd

pip install plantuml
pip install py2puml
pip install mypy
mypy .
@jakebrinkmann
jakebrinkmann / 0-DEV-ENV.md
Last active July 11, 2022 22:37
Developer Environment -- All my "notes to self" about my developer environment (DEV-ENV)

👩‍💻 👨‍💻

Hello Friends. This is my space where I want to spread knowledge as far as I can.

@jakebrinkmann
jakebrinkmann / WebCamStream.bat
Last active February 3, 2022 06:47
Stream my webcam from a Windows 10 tablet over to another computer on my LAN
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}"
@jakebrinkmann
jakebrinkmann / readme.md
Last active January 27, 2022 23:16
XSD (XML) schema viewer

start xming

Xming -multiwindow -clipboard
export DISPLAY=localhost:0
#ssh username@server -Y
@jakebrinkmann
jakebrinkmann / app.py
Created December 9, 2021 00:45
AWS Cloudwatch Alarm to Lambda to Slack Webhook (python)
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")