Skip to content

Commit

Permalink
Merge pull request #3756 from KBVE/dev
Browse files Browse the repository at this point in the history
Preparing Alpha Branch
  • Loading branch information
h0lybyte authored Jan 15, 2025
2 parents 8f68a12 + 8e04f32 commit f45f954
Show file tree
Hide file tree
Showing 19 changed files with 297 additions and 33 deletions.
5 changes: 4 additions & 1 deletion apps/kbve.com/src/content/docs/application/docker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ It is not important to understand this cheetsheet until you have a couple sessio

Full Table of Commands:

# Docker CLI Commands Cheatsheet
### Docker CLI Commands Cheatsheet

| Command | Description |
| ------------------------------------------ | ------------------------------------------------------------------------------------------- |
Expand Down Expand Up @@ -484,6 +484,9 @@ Let us begin the setup quest for Docker today!
This section breaks down the various areas of installing `docker`.
To install Docker, simply visit the Docker website and download the installer for your operating system.

Here is a quick [google sheet](https://docs.google.com/spreadsheets/d/1ZT8m4gpvh6xhHYIi4Ui19uHcMpymwFXpTAvd3EcgSm4/edit?gid=0#gid=0) that breaks down the different docker desktop clients for each operating systems.
This sheet has been up-to-date since late 2024 and they include about 20 different clients for MacOS, Windows and Linux.

### Linux

The operating sysetm that we perfer is `Ubuntu` and here is a quick and brief tutorial:
Expand Down
24 changes: 24 additions & 0 deletions apps/kbve.com/src/content/docs/gaming/wow.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ This is still a proof of concept guide and needs to be worked on.
However for the time being, I am going to start the document and then reference it back when I get more information.


### Addons

For the best addon management experience in World of Warcraft, opt for CurseForge.
It provides a user-friendly interface, easy installation, and automatic updates for your addons.
Plus it has a vast library of addons, you can customize your gameplay easily and share it across multiple computers too.


### Macros

Expand Down Expand Up @@ -94,3 +100,21 @@ If you are not in combat, it will cast the Arcane Missiles but if you are in-com
```

This macro is part of the `tab`, `111` rotation and helps you throw your damage over time.

#### Rogue

#### Rogue

##### Throw + Sinister Strike

This macro will cast throw when you are not in combat or cast sinister strike when you are in combat!
It also throws a blue square up on the target and can cast your racial ability.
Remember to swap out `Berserking` with whatever spell you would like to combo it with!

```
/startattack
/cast [nocombat] Throw; [combat] Sinister Strike
/cast [combat] Berserking
/run if UnitExists("target") and not GetRaidTargetIndex("target") then SetRaidTarget("target", 6) end
/script UIErrorsFrame:Clear()
```
2 changes: 1 addition & 1 deletion apps/kbve.com/src/content/journal/01-02.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'January: 02'
category: Daily
date: 2024-01-02 12:00:00
date: 2025-01-02 12:00:00
client: Self
unsplash: 1703511606233-9c7537658701
img: https://images.unsplash.com/photo-1703511606233-9c7537658701?crop=entropy&cs=srgb&fm=jpg&ixid=MnwzNjM5Nzd8MHwxfHJhbmRvbXx8fHx8fHx8fDE2ODE3NDg2ODY&ixlib=rb-4.0.3&q=85
Expand Down
2 changes: 1 addition & 1 deletion apps/kbve.com/src/content/journal/01-03.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'January: 03'
category: Daily
date: 2024-01-03 12:00:00
date: 2025-01-03 12:00:00
client: Self
unsplash: 1703511606233-9c7537658701
img: https://images.unsplash.com/photo-1703511606233-9c7537658701?crop=entropy&cs=srgb&fm=jpg&ixid=MnwzNjM5Nzd8MHwxfHJhbmRvbXx8fHx8fHx8fDE2ODE3NDg2ODY&ixlib=rb-4.0.3&q=85
Expand Down
2 changes: 1 addition & 1 deletion apps/kbve.com/src/content/journal/01-04.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'January: 04'
category: Daily
date: 2024-01-04 12:00:00
date: 2025-01-04 12:00:00
client: Self
unsplash: 1703511606233-9c7537658701
img: https://images.unsplash.com/photo-1703511606233-9c7537658701?crop=entropy&cs=srgb&fm=jpg&ixid=MnwzNjM5Nzd8MHwxfHJhbmRvbXx8fHx8fHx8fDE2ODE3NDg2ODY&ixlib=rb-4.0.3&q=85
Expand Down
2 changes: 1 addition & 1 deletion apps/kbve.com/src/content/journal/01-05.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'January: 05'
category: Daily
date: 2024-01-05 12:00:00
date: 2025-01-05 12:00:00
client: Self
unsplash: 1703511606233-9c7537658701
img: https://images.unsplash.com/photo-1703511606233-9c7537658701?crop=entropy&cs=srgb&fm=jpg&ixid=MnwzNjM5Nzd8MHwxfHJhbmRvbXx8fHx8fHx8fDE2ODE3NDg2ODY&ixlib=rb-4.0.3&q=85
Expand Down
2 changes: 1 addition & 1 deletion apps/kbve.com/src/content/journal/01-06.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'January: 06'
category: Daily
date: 2024-01-06 12:00:00
date: 2025-01-06 12:00:00
client: Self
unsplash: 1703511606233-9c7537658701
img: https://images.unsplash.com/photo-1703511606233-9c7537658701?crop=entropy&cs=srgb&fm=jpg&ixid=MnwzNjM5Nzd8MHwxfHJhbmRvbXx8fHx8fHx8fDE2ODE3NDg2ODY&ixlib=rb-4.0.3&q=85
Expand Down
2 changes: 1 addition & 1 deletion apps/kbve.com/src/content/journal/01-07.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'January: 07'
category: Daily
date: 2024-01-07 12:00:00
date: 2025-01-07 12:00:00
client: Self
unsplash: 1703511606233-9c7537658701
img: https://images.unsplash.com/photo-1703511606233-9c7537658701?crop=entropy&cs=srgb&fm=jpg&ixid=MnwzNjM5Nzd8MHwxfHJhbmRvbXx8fHx8fHx8fDE2ODE3NDg2ODY&ixlib=rb-4.0.3&q=85
Expand Down
10 changes: 5 additions & 5 deletions apps/kbve.com/src/content/journal/01-08.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'January: 08'
category: Daily
date: 2024-01-08 12:00:00
date: 2025-01-08 12:00:00
client: Self
unsplash: 1703511606233-9c7537658701
img: https://images.unsplash.com/photo-1703511606233-9c7537658701?crop=entropy&cs=srgb&fm=jpg&ixid=MnwzNjM5Nzd8MHwxfHJhbmRvbXx8fHx8fHx8fDE2ODE3NDg2ODY&ixlib=rb-4.0.3&q=85
Expand All @@ -14,17 +14,17 @@ tags:

## 2025

- 05:56PM
- **Rancher**

**Rancher**
05:56PM

Something went wrong with the rancher certs and I was able to figure it out by going through the issue tickets.
I believe the issue was that when we updated rancher, it might have reset the certs but we were able to make sure that ACME / LetsEncrypt does its job.
After going through some casual walk through with ChatGPT, we were able to solve the issue.

- 06:58PM
- **Secrets**

**Secrets**
06:58PM

We need to update the Sealed secrets once more and then enable the `discord` namespace to have access to the `service_role`.

Expand Down
18 changes: 9 additions & 9 deletions apps/kbve.com/src/content/journal/01-09.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'January: 09'
category: Daily
date: 2024-01-09 12:00:00
date: 2025-01-09 12:00:00
client: Self
unsplash: 1703511606233-9c7537658701
img: https://images.unsplash.com/photo-1703511606233-9c7537658701?crop=entropy&cs=srgb&fm=jpg&ixid=MnwzNjM5Nzd8MHwxfHJhbmRvbXx8fHx8fHx8fDE2ODE3NDg2ODY&ixlib=rb-4.0.3&q=85
Expand All @@ -14,9 +14,9 @@ tags:

## 2025

- 04:53PM
- **Helm**

**Helm**
04:53PM

Going to finish up the helm chart and then we can move forward.
The `pydiscordsh-main.yaml` is almost done, we just need to fix the ingress.
Expand All @@ -28,23 +28,23 @@ tags:

```

- 07:10PM
- **WoW**

**WoW**
07:10PM

Some quick hardcore afk game play!
I am thinking that it will be a bit rough to do on the side, while still programming.

- 09:00PM
- **Car**

**Car**
09:00PM

Car battery should be charged!
Went out in the cold, got some greek yogurt and everything seems charged.

- 11:52PM
- **Deployment**

**Deployment**
11:52PM

The deployment of `PyDiscordSh` is below:

Expand Down
2 changes: 1 addition & 1 deletion apps/kbve.com/src/content/journal/01-10.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'January: 10'
category: Daily
date: 2024-01-10 12:00:00
date: 2025-01-10 12:00:00
client: Self
unsplash: 1704231208356-7dab9d91e60a
img: https://images.unsplash.com/photo-1703511606233-9c7537658701?crop=entropy&cs=srgb&fm=jpg&ixid=MnwzNjM5Nzd8MHwxfHJhbmRvbXx8fHx8fHx8fDE2ODE3NDg2ODY&ixlib=rb-4.0.3&q=85
Expand Down
2 changes: 1 addition & 1 deletion apps/kbve.com/src/content/journal/01-11.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'January: 11'
category: Daily
date: 2024-01-11 12:00:00
date: 2025-01-11 12:00:00
client: Self
unsplash: 1704231208356-7dab9d91e60a
img: https://images.unsplash.com/photo-1703511606233-9c7537658701?crop=entropy&cs=srgb&fm=jpg&ixid=MnwzNjM5Nzd8MHwxfHJhbmRvbXx8fHx8fHx8fDE2ODE3NDg2ODY&ixlib=rb-4.0.3&q=85
Expand Down
2 changes: 1 addition & 1 deletion apps/kbve.com/src/content/journal/01-12.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'January: 12'
category: Daily
date: 2024-01-12 12:00:00
date: 2025-01-12 12:00:00
client: Self
unsplash: 1704231208356-7dab9d91e60a
img: https://images.unsplash.com/photo-1703511606233-9c7537658701?crop=entropy&cs=srgb&fm=jpg&ixid=MnwzNjM5Nzd8MHwxfHJhbmRvbXx8fHx8fHx8fDE2ODE3NDg2ODY&ixlib=rb-4.0.3&q=85
Expand Down
2 changes: 1 addition & 1 deletion apps/kbve.com/src/content/journal/01-13.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'January: 13'
category: Daily
date: 2024-01-13 12:00:00
date: 2025-01-13 12:00:00
client: Self
unsplash: 1704231208356-7dab9d91e60a
img: https://images.unsplash.com/photo-1703511606233-9c7537658701?crop=entropy&cs=srgb&fm=jpg&ixid=MnwzNjM5Nzd8MHwxfHJhbmRvbXx8fHx8fHx8fDE2ODE3NDg2ODY&ixlib=rb-4.0.3&q=85
Expand Down
25 changes: 23 additions & 2 deletions apps/kbve.com/src/content/journal/01-14.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'January: 14'
category: Daily
date: 2024-01-14 12:00:00
date: 2025-01-14 12:00:00
client: Self
unsplash: 1704189125621-55e8c6cfd166
img: https://images.unsplash.com/photo-1704189125621-55e8c6cfd166?crop=entropy&cs=srgb&fm=jpg&ixid=MnwzNjM5Nzd8MHwxfHJhbmRvbXx8fHx8fHx8fDE2ODE3NDg2ODY&ixlib=rb-4.0.3&q=85
Expand All @@ -12,7 +12,28 @@ tags:

## Notes

### 2024
## 2025

- **WoW**

04:05PM

Been making some unique macros and trying to get past some of the limitations that the WoW addons / API has but its just a bit pointless.
I fear that if I push the boundries just a bit too much, I might get flagged for botting xD.

- **Supabase**

08:19PM

Time to prepare the new `discord_server` table, I want to make sure that we can easily add the new tables but also remove them if we have any issues.
While working through this, I realized that my `user_profile` table has to also get updated because its still one version behind the new one that I wanted.
I made the foolish mistake of trying to place the socials all into just one json blob, only to find out that its just not worth it!
Ughhh!

Forgot to include the uninstall script from my other pc, going to sync that in and going to shift my entry over to the following day.


## 2024

- 3:55pm - `Ansible`

Expand Down
56 changes: 55 additions & 1 deletion apps/kbve.com/src/content/journal/01-15.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'January: 15'
category: Daily
date: 2024-01-15 12:00:00
date: 2025-01-15 12:00:00
client: Self
unsplash: 1704189125621-55e8c6cfd166
img: https://images.unsplash.com/photo-1704189125621-55e8c6cfd166?crop=entropy&cs=srgb&fm=jpg&ixid=MnwzNjM5Nzd8MHwxfHJhbmRvbXx8fHx8fHx8fDE2ODE3NDg2ODY&ixlib=rb-4.0.3&q=85
Expand All @@ -12,6 +12,60 @@ tags:

## Notes

## 2025

- **Supabase**

01:00AM

The next major update should be ready by tomorrow, we want to keep the turso integration but also slowly build out the migration to the postgres.
While that is going on, I want to start the front end of the discordsh server.
The question remains if we want to use NextJS or Astro, hmm, both are already included in the monorepo but I am thinking that astro with shadcn would be a better move than material design and nextjs.

01:34AM

We want to include the `Constraints` for the `discord_servers` table, even though we already have them in the python code.
This is just a double check for the sake of data integrity!
Starting with the `invite` column, this is what I am thinking we will include.

```sql
CONSTRAINT ck_valid_invite_code CHECK (invite ~ '^[A-Za-z0-9-]{2,100}$')
```

Next column that we want to limit is the `name`.
Actually, while looking at the `name` field, I believe it would make more sense to just drop the `TEXT` field and use a `varchar` field instead!
We should limit it to about 100 characters, to be safe, we will do 101 characters.
The `name` field will then be 101.

```sql

name VARCHAR(101) NOT NULL,

CONSTRAINT ck_name_combined CHECK (
name ~ '^[\p{L}\p{N} _-]{2,100}$'
),

```

Okay the name was replaced from TEXT field to the varchar field and we added a basic check against common attack vectors.
Granted we will not be letting the server owner directly edit the table through the RPC or supabase's api client.
The plan is still to use the python server as a medium of handling the `discord_server` data.

Okay, that field is out of the way, the next field will be `summary` and we will follow the same logic.
Dropping the `TEXT` and using a `VARCHAR` instead.

```sql

summary VARCHAR(200) NOT NULL,

CONSTRAINT ck_summary_combined CHECK (
summary ~ '^[\p{L}\p{N} _\-,.!?]{2,200}$'
)

```
That will handle the summary issue for our use case!
Okay quickly added description and website as well.
Both need an additional sanitization before they get added into the table but we will handle that from the python side.

### 2024

Expand Down
Loading

0 comments on commit f45f954

Please sign in to comment.