fix: typos
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
# Hello world!
|
||||
|
||||
This is powered by rikidown (see below); some previous text alluded a different software I was considering that ultimately got dropped because it was not using propert Markdown format. This seems to be working much better.
|
||||
rikidown powers this (see below); some previous text alluded to a different software I was considering that I ultimately dropped because it was not using proper Markdown format.
|
||||
|
||||
[infra.md](infra.md)
|
||||
|
||||
[rikidown.md](rikidown.md) describes the wiki software that was written to support this wobsite. In essence, this is the most basic version of a git-based wiki that uses Markdown to render it's content that I could make.
|
||||
|
||||
[[skubelb]] is a simple kubernetes load balancer/proxy tool; the intended use case is to provide ingress from a free-tier GCP VM to hosts that live at dynamic IPs. Originally, this was used to expose a GKE instance hosted on spot VMs to the internet, and deal with the constantly changing IPs.
|
||||
[rikidown.md](rikidown.md) describes the wiki software that I wrote to support this website. In essence, this is the most basic version of a git-based wiki that uses Markdown to render its content that I could make.
|
||||
|
||||
[[skubelb]] is a simple kubernetes load balancer/proxy tool; the intended use case is to provide ingress from a free-tier GCP VM to hosts that live at dynamic IPs. I originally used this to expose a GKE instance hosted on spot VMs to the internet, and deal with the constantly changing IPs.
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ This will create the repo in Gitea for you, and define a basic structure:
|
||||
|
||||
From here, in the simplest way, you can just start deploying applications.
|
||||
## First deployment
|
||||
In the most simple form, any kustomization in the path pointed to by '--path' will be picked up. Since we set it to '.', adding something should be as simple as dropping it into that folder.
|
||||
In the most simple form, Flux will pick up any kustomization in the path pointed to by '--path'. Since we set it to '.', adding something should be as simple as dropping it into that folder.
|
||||
|
||||
```
|
||||
❯ git clone ssh://git@git.tipsy.codes:2222/charles/flux-5pi5.git
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
I acquired a used server for a very reasonable cost; it has 80x3.0ghz ARM cores, 128 GiB of RAM, and uses 70w of power. Power where I live is super expensive, so I'm very excited to have this beast available for minimal power cost.
|
||||
|
||||
If you are interested in hosting anything, please reach out :). If I you don't know how to reach out, you probably aren't invited to reach out.
|
||||
If you are interested in hosting anything, please reach out :). If you don't know how to reach out, you probably aren't invited to reach out.
|
||||
|
||||
I also have 5pi5, a Raspberry Pi 5 (16 GiB) that I use to host smaller applications.
|
||||
|
||||
@@ -10,7 +10,7 @@ Learnings:
|
||||
|
||||
## Configuration
|
||||
|
||||
The very strong ARM machine (aka, machop) runs k3s. This allows me to store my configurations in FluxCD, kept in a Git repo. Very helpful in terms of my ability to work on one project a time, when tipsy.
|
||||
The very strong ARM machine (aka, machop) runs k3s. This allows me to store my configurations in FluxCD, kept in a Git repo. Very helpful in terms of my ability to work on one project at a time, when tipsy.
|
||||
|
||||
As a bonus, those silly AI tools are *very* helpful when you are tipsy. You can just ask it to:
|
||||
|
||||
@@ -18,9 +18,9 @@ As a bonus, those silly AI tools are *very* helpful when you are tipsy. You can
|
||||
> the app should include and ingress for wiki.tipsy.codes, and it should add the arguments '--git-repo https://git.tipsy.codes/charles/wiki.tipsy.codes.git'.
|
||||
> the pod will expose port 8080, which should be wrapped in a service and used in the ingress
|
||||
|
||||
and it will do the thing. It did pretty good, overall.
|
||||
and it will do the thing. It did pretty well, overall.
|
||||
|
||||
The Git repo for my FluxCD configuration is not public because I'm not confident that I've correctly removed all private keys from it (notably, the keys to access the kubernetes dashboard). In principle it should still be fine because access to the k3s control plane is restricted to my local network, but all the same... I don't trust you.
|
||||
The Git repo for my FluxCD configuration is not public because I'm not confident that I've correctly removed all private keys from it (notably, the keys to access the kubernetes dashboard). In principle it should still be fine because I restrict access to the k3s control plane to my local network, but all the same... I don't trust you.
|
||||
|
||||
# Projects
|
||||
|
||||
|
||||
+3
-3
@@ -2,12 +2,12 @@ AI has been a huge word lately; let me try and figure out what it is.
|
||||
|
||||
If you see anything wrong (not incomplete, but actually wrong), let me know :).
|
||||
## Large language model (LLM)
|
||||
LLM models are tensor networks that get 'activated' with an activation matrix, resulting in an output matrix.
|
||||
LLM models are tensor networks that an activation matrix activates, resulting in an output matrix.
|
||||
|
||||
There are multiple layers of matrices in most models.
|
||||
|
||||
The "open models" available online are still largely closed-source; the matrices are basically binary blocs that describe weights given to each tensor.
|
||||
The \"open models\" available online are still largely closed-source; the matrices are basically binary blocks that describe the weights the model assigns to each tensor.
|
||||
## Retrieval-augment generative AI (RAG)
|
||||
Basically, before sending the prompt to the LLM, the client does a search to find additional context. There are lots of tools for doing this, but the most popular seem to be from the AI community, and work by converting the user input to a 'vector' of NLP tokens, using a specialized 'vector database' to find other 'chunks' of related inputs, then add those to the message before sending it to the LLM
|
||||
## Tool calling
|
||||
A super powerful capability, from what I can tell, it is generally implemented by telling the LLM how to structure its output to make tool calls, then attempting to parse the LLMs output to detect tool calls, run the tools, and append the result to the message going into the LLM.
|
||||
A super powerful capability, from what I can tell, developers generally implement this by telling the LLM how to structure its output to make tool calls, then attempting to parse the LLMs output to detect tool calls, run the tools, and append the result to the message going into the LLM.
|
||||
+1
-1
@@ -2,4 +2,4 @@ Homepage: [https://git.tipsy.codes/charles/rikidown]
|
||||
|
||||
This is a very simple Markdown-wiki renderer. I use it with Obsidian, because it has a fancy UI and I like shiny things, BUT, Obsidian does not seem to be open source. And this makes me sad.
|
||||
|
||||
Irregardless; the tool is simple, and not super optimal. In particular, it will render the markdown page for every single request, which is fairly expensive. It might be better to render the pages when the git repo is updated/cloned, but I'm lazy.
|
||||
Regardless; the tool is simple, and not super optimal. In particular, it will render the markdown page for every single request, which is fairly expensive. It might be better to render the pages when the system updates or clones the git repo, but I'm lazy.
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
This is a placeholder for thoughts I might have.
|
||||
## Alcohol use
|
||||
Top of mind for me when I consider tipsy.codes is that it is largely inspired by alcohol consumption. This is a fairly dangerous substance, and should only be used in specific situations. In particular:
|
||||
Top of mind for me when I consider tipsy.codes is that it is largely inspired by alcohol consumption. This is a fairly dangerous substance, and use it only in specific situations. In particular:
|
||||
|
||||
- Do not drink below the age of 25. Your brain is still forming, you will hurt it
|
||||
- Do not drink if alcohol has a negative impact on your quality of life, for example:
|
||||
@@ -8,8 +8,8 @@ Top of mind for me when I consider tipsy.codes is that it is largely inspired by
|
||||
- It gets in the way of your goals, whether those be relationships (i.e., listen to your partner when they ask you to cut back), professional, fitness or health
|
||||
- You need to drink.
|
||||
|
||||
Having said that; there is a very interesting lineage of alcohol consumption in humanity. It is present in a at least some religious works (Jesus turning water to wine at a party? drinking wine as the blood of our savior?), and there is evidence that it was crucial to the development of ancestors as a cheap and available source of energy [source](https://www.scientificamerican.com/article/origins-of-human-alcohol-consumption-revealed/).
|
||||
Having said that; there is a very interesting lineage of alcohol consumption in humanity. It is present in at least some religious works (Jesus turning water to wine at a party? drinking wine as the blood of our savior?), and there is evidence that it was crucial to the development of ancestors as a cheap and available source of energy [source](https://www.scientificamerican.com/article/origins-of-human-alcohol-consumption-revealed/).
|
||||
|
||||
There are dangers to alcohol; it is an addictive substances, for me at least, because it is fun. It helps me relax, forget about the daily worries, and even feel comfortable expressing myself on this forum when I normally wouldn't. Balancing the expression of "I'm comfortable saying this AND its appropriate", and saying or doing absolutely terrible things is a challenge. If you catch yourself apologizing for your behavior after a few drinks, consider whether you are having trouble acting correctly under the influence.
|
||||
There are dangers to alcohol; it is an addictive substance, for me at least, because it is fun. It helps me relax, forget about the daily worries, and even feel comfortable expressing myself on this forum when I normally wouldn't. Balancing the expression of "I'm comfortable saying this AND it's appropriate", and saying or doing absolutely terrible things is a challenge. If you catch yourself apologizing for your behavior after a few drinks, consider whether you are having trouble acting correctly under the influence.
|
||||
|
||||
And of course; don't do anything while you're drinking that puts others at risk. Such as driving 😠.
|
||||
+11
-13
@@ -33,7 +33,7 @@ I built and pushed this image with:
|
||||
docker build -t docker.tipsy.codes/valheim:20251214 .
|
||||
```
|
||||
## k3s config
|
||||
To deploy this, I made added some files to my Flux repo. Here is a tree:
|
||||
To deploy this, I added some files to my Flux repo. Here is a tree:
|
||||
|
||||
```
|
||||
❯ tree apps/prod/valheim
|
||||
@@ -65,7 +65,7 @@ spec:
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: valheim
|
||||
app: valheim
|
||||
spec:
|
||||
containers:
|
||||
- name: valheim
|
||||
@@ -73,7 +73,7 @@ spec:
|
||||
ports:
|
||||
- containerPort: 2456
|
||||
protocol: UDP
|
||||
- containerPort: 2457
|
||||
- containerPort: 2457
|
||||
protocol: UDP
|
||||
- containerPort: 9001
|
||||
protocol: TCP
|
||||
@@ -115,7 +115,7 @@ spec:
|
||||
- valheim-udp2
|
||||
routes:
|
||||
- services:
|
||||
- name: valheim
|
||||
- name: valheim
|
||||
port: 2457 # Replace with your service port
|
||||
---
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
@@ -179,7 +179,7 @@ spec:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 100Gi
|
||||
storage: 100Gi
|
||||
volumeName: valheim-pv
|
||||
---
|
||||
apiVersion: v1
|
||||
@@ -193,7 +193,7 @@ spec:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 100Gi
|
||||
storage: 100Gi
|
||||
volumeName: valheim-config-pv
|
||||
# apps/prod/valheim/pv.yaml
|
||||
apiVersion: v1
|
||||
@@ -219,7 +219,6 @@ spec:
|
||||
- matchExpressions:
|
||||
- key: kubernetes.io/hostname
|
||||
operator: In
|
||||
values:
|
||||
- machop
|
||||
---
|
||||
apiVersion: v1
|
||||
@@ -242,11 +241,10 @@ spec:
|
||||
nodeAffinity:
|
||||
required:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
- key: kubernetes.io/hostname
|
||||
operator: In
|
||||
values:
|
||||
- machop
|
||||
- matchExpressions:
|
||||
- key: kubernetes.io/hostname
|
||||
operator: In
|
||||
- machop
|
||||
# apps/prod/valheim/service.yaml
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
@@ -269,7 +267,7 @@ spec:
|
||||
protocol: TCP
|
||||
port: 2456
|
||||
targetPort: 2456
|
||||
- name: tcp-2457
|
||||
- name: tcp-tcp2457
|
||||
protocol: TCP
|
||||
port: 2457
|
||||
targetPort: 2457
|
||||
|
||||
Reference in New Issue
Block a user