summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper Ras <jras@hostnet.nl>2025-07-30 10:37:50 +0200
committerJasper Ras <jras@hostnet.nl>2025-07-30 10:37:50 +0200
commit716fa9e840b7c3063574316fd7e0246a2bcb9332 (patch)
treec4c0e1f0c3dc54a6090e10dbc780cd6251ff3988
parenta9886bf2f8a35369a2c42070c5f83504dfab2bc5 (diff)
vault backup: 2025-07-30 10:37:50
-rw-r--r--Go Flags.md22
-rw-r--r--High Latency TCP Might Be Caused By TCP No Delay.md14
-rw-r--r--Port stuck in migrating.md42
-rw-r--r--Switch networks and external networks on OS5.md6
-rw-r--r--bilat-2025-07-23.md9
-rw-r--r--git-crypt.md12
-rw-r--r--ipcalc.md3
7 files changed, 108 insertions, 0 deletions
diff --git a/Go Flags.md b/Go Flags.md
new file mode 100644
index 0000000..07af1f6
--- /dev/null
+++ b/Go Flags.md
@@ -0,0 +1,22 @@
+[[Golang]]
+
+---
+
+Flags!
+
+```go
+package main
+
+import "flag"
+
+var n = flag.Bool("n", false, "omit trailing newline")
+var sep = flag.String("s", " ", "seperator")
+
+func main() {
+ flag.Parse()
+
+ if *n {
+ strings.Split("blaat", *sep)
+ }
+}
+```
diff --git a/High Latency TCP Might Be Caused By TCP No Delay.md b/High Latency TCP Might Be Caused By TCP No Delay.md
new file mode 100644
index 0000000..a70efc1
--- /dev/null
+++ b/High Latency TCP Might Be Caused By TCP No Delay.md
@@ -0,0 +1,14 @@
+[[TCP]] [[Networking]]
+
+# High Latency TCP Might Be Caused By TCP No Delay
+https://brooker.co.za/blog/2024/05/09/nagle.html
+
+Describes a situation where two algorithms in TCP bite each other:
+- Nagle's algorithm tries to prevent sending very small data packets to minimze header overhead
+- Delayed ACK delays acks until data's ready
+
+So the first holds packets back until an ACK is received, the second holds ACK until the response is ready.
+
+Also due to modern systems the penalty for small datagrams is much lower.
+
+To get rid of Nagle's algorithm when latency matters: enable TCP_NODELAY.
diff --git a/Port stuck in migrating.md b/Port stuck in migrating.md
new file mode 100644
index 0000000..26c22e1
--- /dev/null
+++ b/Port stuck in migrating.md
@@ -0,0 +1,42 @@
+[[Neutron]]
+
+---
+
+# Port stuck in migrating
+
+Check whether DB has duplicate record:
+```
+MariaDB [neutron]> select * from ml2_port_bindings where port_id = "e87c2cab-e2e8-4e7b-9014-acdf5adfff0e";
++--------------------------------------+-----------------------------------+----------+-----------+----------------------------------------------------------------------------------+---------------------------------------------+----------+
+| port_id | host | vif_type | vnic_type | profile | vif_details | status |
++--------------------------------------+-----------------------------------+----------+-----------+----------------------------------------------------------------------------------+---------------------------------------------+----------+
+| e87c2cab-e2e8-4e7b-9014-acdf5adfff0e | n13.compute.env.vps1-lej1.one.com | ovs | normal | {"os_vif_delegation": true} | {"port_filter": true, "connectivity": "l2"} | INACTIVE |
+| e87c2cab-e2e8-4e7b-9014-acdf5adfff0e | n16.compute.env.vps1-lej1.one.com | ovs | normal | {"os_vif_delegation": true, "migrating_to": "n13.compute.env.vps1-lej1.one.com"} | {"port_filter": true, "connectivity": "l2"} | ACTIVE |
++--------------------------------------+-----------------------------------+----------+-----------+----------------------------------------------------------------------------------+---------------------------------------------+----------+
+2 rows in set (0.000 sec)
+```
+
+Delete the that is INACTIVE
+```
+MariaDB [neutron]> delete from ml2_port_bindings where port_id = "e87c2cab-e2e8-4e7b-9014-acdf5adfff0e" and host = "n13.compute.env.vps1-lej1.one.com";
+Query OK, 1 row affected (0.001 sec)
+```
+
+Now update port binding
+```
+.venv ❯ os3 port set --host n13.compute.env.vps1-lej1.one.com e87c2cab-e2e8-4e7b-9014-acdf5adfff0e
+```
+
+Update binding_profile:
+
+```
+osc main*​​ 2s
+.venv ❯ os3 port set --no-binding-profile e87c2cab-e2e8-4e7b-9014-acdf5adfff0e
+```
+
+```
+osc main*​​ 2s
+.venv ❯ os3 port set --binding-profile os_vif_delegation=True e87c2cab-e2e8-4e7b-9014-acdf5adfff0e
+```
+
+Check the port status afterward, is it DOWN? Perhaps migrate the VM.
diff --git a/Switch networks and external networks on OS5.md b/Switch networks and external networks on OS5.md
new file mode 100644
index 0000000..73d5d3a
--- /dev/null
+++ b/Switch networks and external networks on OS5.md
@@ -0,0 +1,6 @@
+[[GroupVPS Platform]]
+
+---
+
+The switch networks are regular flat layer 2 networks, they act as a big switch (hence the name).
+The external networks are for Floating IPs. They are also connected to the switches, but here the public IPs are on the network nodes rather than in openstack. So instead of \ No newline at end of file
diff --git a/bilat-2025-07-23.md b/bilat-2025-07-23.md
new file mode 100644
index 0000000..2f0525e
--- /dev/null
+++ b/bilat-2025-07-23.md
@@ -0,0 +1,9 @@
+[[bilaterale-gesprekken-met-rutger]]
+
+---
+
+calendar
+
+keystone auth middleware maken -> restrict ip per user.
+
+marcel huck - share netwerk
diff --git a/git-crypt.md b/git-crypt.md
new file mode 100644
index 0000000..9648571
--- /dev/null
+++ b/git-crypt.md
@@ -0,0 +1,12 @@
+# Git-Crypt
+[[git]]
+
+---
+
+[Website](https://www.agwa.name/projects/git-crypt/)
+
+Encrypts files in a git repository transparently.
+
+
+## Add new user
+`git-crypt add-gpg-user USER_ID`
diff --git a/ipcalc.md b/ipcalc.md
new file mode 100644
index 0000000..c558bbe
--- /dev/null
+++ b/ipcalc.md
@@ -0,0 +1,3 @@
+# IPCalc
+The busybox ipcalc does very little. Install RedHat Ipcalc, either via nix-shell or globally.
+