Skip to content

Instantly share code, notes, and snippets.

View ibeckermayer's full-sized avatar

Isaiah Becker-Mayer ibeckermayer

View GitHub Profile
@ibeckermayer
ibeckermayer / warnings-errors.patch
Last active June 4, 2024 18:53
Patch for Teleport Test Plan items under Desktop Access Warnings/Errors
diff --git a/lib/srv/desktop/rdp/rdpclient/client.go b/lib/srv/desktop/rdp/rdpclient/client.go
index e3c2ff3afe..1f789c496a 100644
--- a/lib/srv/desktop/rdp/rdpclient/client.go
+++ b/lib/srv/desktop/rdp/rdpclient/client.go
@@ -475,6 +475,17 @@ func (c *Client) handleTDPInput(msg tdp.Message) error {
return trace.Errorf("MouseButton: client_write_rdp_pointer: %v", errCode)
}
case tdp.MouseWheel:
+ // ##############################################################
+ // ## Test code for inducing a TDP notification/error when the ##
@ibeckermayer
ibeckermayer / fix-water-level.patch
Created August 22, 2023 05:18
Fix the water level in Udemy Applied Control Systems
diff --git a/calculus_sim_waterTanks_Kp_controller.py b/calculus_sim_waterTanks_Kp_controller.py
index d8365f6..06477b1 100644
--- a/calculus_sim_waterTanks_Kp_controller.py
+++ b/calculus_sim_waterTanks_Kp_controller.py
@@ -20,11 +20,9 @@ import matplotlib.gridspec as gridspec
import matplotlib.animation as animation
import numpy as np
-radius=5 # Radius of the tank - The tank is round.
bottom=0 # Initial volume of the tank