commit 632a6d3091f3be06f3d92f2b98db9735223546aa
parent 831d2237b792e972b6e61862ca7a74bf727593e2
Author: Andrew Laack <andrew@laack.co>
Date: Thu, 28 May 2026 02:25:50 -0500
Notes on pki and lua
Diffstat:
5 files changed, 59 insertions(+), 0 deletions(-)
diff --git a/docs/ComputerScience.md b/docs/ComputerScience.md
@@ -24,6 +24,7 @@ This is the index for my Computer Science related notes.
- [CPP](CPP.md)
- [Go](Go.md)
- [C](C.md)
+- [Lua](Lua.md)
- [Functional Programming](FunctionalProgramming.md)
- [Developer Tooling](DeveloperTooling.md)
- [Software Licenses](SoftwareLicenses.md)
diff --git a/docs/Cybersecurity.md b/docs/Cybersecurity.md
@@ -8,3 +8,4 @@
- [Watermarking Attack](WatermarkingAttack.md)
- [Dorking](Dorking.md)
+- [PKI](PKI.md)
diff --git a/docs/Lua.md b/docs/Lua.md
@@ -0,0 +1,48 @@
+# Lua
+
+**Source:** [https://en.wikipedia.org/wiki/Lua/](https://en.wikipedia.org/wiki/Lua/)
+
+## Summary
+
+Lua is a lightweight embeddable scripting language designed to extend applications by providing a small set of simple primitives and a flexible core that can be easily integrated with existing software systems.
+
+## Strange Characteristics
+
+Lua doesn't support standard increment / decrement syntax.
+
+```lua
+index = 0
+-- "index += 1" isn't valid
+index = index + 1
+```
+
+Lua does not use conventional syntax for inequality.
+
+```lua
+if index ~= 10 then
+ print("index is not 10")
+end
+```
+
+Lua uses 1-based indexing.
+
+```lua
+arr = {"a", "b", "c"}
+print(arr[1]) -- prints "a"
+```
+
+Every built-in [collection](Collection.md) structure in Lua is a table.
+
+```lua
+arr = {
+ [1] = "a",
+ [2] = "b",
+ [3] = "c"
+} -- explicit statement of an "array" in lua
+
+arr1= {
+ [0] = "a",
+ [1] = "b",
+ [2] = "c"
+} -- this is not how lua saves "arrays", but this is how a zero-indexed array could be represented
+```
diff --git a/docs/PKI.md b/docs/PKI.md
@@ -0,0 +1,5 @@
+# PKI (Public Key Infrastructure)
+
+**Source:** [https://en.wikipedia.org/wiki/Public_key_infrastructure/](https://en.wikipedia.org/wiki/Public_key_infrastructure/)
+
+**Definition:** PKI describes the ecosystem of public key sharing, a problem in security, particularly with respect to usability, as is the case with PGP and email, and MITM attacks.
diff --git a/docs/nvim.md b/docs/nvim.md
@@ -35,3 +35,7 @@ There isn't a reason to do that though. In the case of the `other.lua` file we r
`lua require"flashcards.other`
The specification of the keyword `lua` at the beginning of the above commands is only necessary when executed from within neovim. If it is being called from another lua function the keyword should be dropped.
+
+## Links
+
+- [Lua](Lua.md)