Skip to content

Commit

Permalink
Update gh-pages to output generated at a2b6167
Browse files Browse the repository at this point in the history
  • Loading branch information
h0lybyte committed Jan 18, 2025
1 parent 40fc1b4 commit 95fb7f5
Show file tree
Hide file tree
Showing 49 changed files with 139 additions and 59 deletions.
6 changes: 4 additions & 2 deletions application/docker/index.html

Large diffs are not rendered by default.

20 changes: 18 additions & 2 deletions gaming/wow/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,11 @@
<Fragment set:html={rating} />
</p> --> </div> <div class="text-sm text-neutral-800 dark:text-neutral-200 sm:ps-5"> <p>
Latest Commit by <a href="https://github.com/h0lybyte" class="font-bold underline text-cyan-600 dark:text-cyan-400"> h0lybyte </a>:
</p> <p><em>"Merge pull request #3755 from KBVE/beta
</p> <p><em>"Merge pull request #3764 from KBVE/beta

Preparing Release Branch"</em></p> <p>
On: <time datetime="2025-01-15T02:22:58Z"> 1/15/2025 </time> </p> <p>
View this commit on <a href="https://github.com/KBVE/kbve/commit/6b3b111054d8605aceae43ff65c7f2d1da391bb7" class="underline text-blue-600 hover:text-blue-800 visited:text-purple-600">
On: <time datetime="2025-01-18T01:10:21Z"> 1/18/2025 </time> </p> <p>
View this commit on <a href="https://github.com/KBVE/kbve/commit/312486c09c9936f7e19983b770bdbf9a822a55e7" class="underline text-blue-600 hover:text-blue-800 visited:text-purple-600">
GitHub
</a>.
</p> </div> </div> </div> </div> </div> </div> <!-- Hero Image Section --> <div class="flex w-full"> <div class=""> <!--
Expand Down
4 changes: 2 additions & 2 deletions journal/01-08/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -186,15 +186,15 @@
<h2 id="2025">2025</h2>
<ul>
<li>
<p>05:56PM</p>
<p><strong>Rancher</strong></p>
<p>05:56PM</p>
<p>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.</p>
</li>
<li>
<p>06:58PM</p>
<p><strong>Secrets</strong></p>
<p>06:58PM</p>
<p>We need to update the Sealed secrets once more and then enable the <code>discord</code> namespace to have access to the <code>service_role</code>.</p>
</li>
</ul>
Expand Down
8 changes: 4 additions & 4 deletions journal/01-09/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@
<h2 id="2025">2025</h2>
<ul>
<li>
<p>04:53PM</p>
<p><strong>Helm</strong></p>
<p>04:53PM</p>
<p>Going to finish up the helm chart and then we can move forward.
The <code>pydiscordsh-main.yaml</code> is almost done, we just need to fix the ingress.
After finishing up the ingress and before the end of the night, I need to configure the sealed secrets.</p>
Expand All @@ -199,20 +199,20 @@ <h2 id="2025">2025</h2>
<span class="line"></span></code></pre>
<ul>
<li>
<p>07:10PM</p>
<p><strong>WoW</strong></p>
<p>07:10PM</p>
<p>Some quick hardcore afk game play!
I am thinking that it will be a bit rough to do on the side, while still programming.</p>
</li>
<li>
<p>09:00PM</p>
<p><strong>Car</strong></p>
<p>09:00PM</p>
<p>Car battery should be charged!
Went out in the cold, got some greek yogurt and everything seems charged.</p>
</li>
<li>
<p>11:52PM</p>
<p><strong>Deployment</strong></p>
<p>11:52PM</p>
<p>The deployment of <code>PyDiscordSh</code> is below:</p>
<p>Repo: <code>https://github.com/KBVE/kbve.git</code>
Branch : <code>dev</code>
Expand Down
20 changes: 19 additions & 1 deletion journal/01-14/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,25 @@
</script> <!--Import the necessary Collapse and Overlay plugins--> <!--https://preline.co/plugins/html/collapse.html--> <!--https://preline.co/plugins/html/overlay.html--> <script src="/scripts/vendor/preline/collapse/index.js"></script> <script src="/scripts/vendor/preline/overlay/index.js"></script> <main class="astro-ouamjn2i"> <section class="py-6 sm:py-8 lg:py-12"> <div class="mx-auto max-w-screen-xl px-4 md:px-8"> <div class="grid gap-8 md:grid-cols-2 lg:gap-12"> <div> <div class="h-64 overflow-hidden rounded-lg shadow-lg md:h-auto"> <img class="h-full w-full object-cover object-center" src="https://images.unsplash.com/photo-1704189125621-55e8c6cfd166?crop=entropy&cs=srgb&fm=jpg&ixid=MnwzNjM5Nzd8MHwxfHJhbmRvbXx8fHx8fHx8fDE2ODE3NDg2ODY&ixlib=rb-4.0.3&q=85" alt="Daily Post Image from Upsplash" draggable="false"> </div> <div id="progress-mobile" class="fixed left-0 top-0 h-2 w-full bg-gradient-to-r from-orange-400/30 to-orange-400 md:hidden"></div> <div id="pin" class="mt-10 hidden space-y-4 md:block"> <div class="h-px w-full overflow-hidden bg-neutral-300 dark:bg-neutral-700"> <div id="progress" class="h-px w-full bg-gradient-to-r from-orange-400/30 to-orange-400"></div> </div> <p class="text-pretty text-sm font-light text-neutral-500">
Table of Contents:
</p> <div id="toc" class=""> <ul class="space-y-2 text-pretty text-base text-neutral-700 transition duration-300 dark:text-neutral-400"></ul> </div> </div> </div> <div class="md:pt-8"> <h1 class="mb-4 text-balance text-center text-2xl font-bold text-neutral-800 dark:text-neutral-200 sm:text-3xl md:mb-6 md:text-left"> January: 14 </h1> <article class="text-pretty text-lg text-neutral-700 dark:text-neutral-300"> <h2 id="notes">Notes</h2>
<h3 id="2024">2024</h3>
<h2 id="2025">2025</h2>
<ul>
<li><strong>WoW</strong></li>
</ul>
<p>04:05PM</p>
<p>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.</p>
<ul>
<li>
<p><strong>Supabase</strong></p>
<p>08:19PM</p>
<p>Time to prepare the new <code>discord_server</code> 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 <code>user_profile</code> 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!</p>
<p>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.</p>
</li>
</ul>
<h2 id="2024">2024</h2>
<ul>
<li>
<p>3:55pm - <code>Ansible</code></p>
Expand Down
44 changes: 44 additions & 0 deletions journal/01-15/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,50 @@
</script> <!--Import the necessary Collapse and Overlay plugins--> <!--https://preline.co/plugins/html/collapse.html--> <!--https://preline.co/plugins/html/overlay.html--> <script src="/scripts/vendor/preline/collapse/index.js"></script> <script src="/scripts/vendor/preline/overlay/index.js"></script> <main class="astro-ouamjn2i"> <section class="py-6 sm:py-8 lg:py-12"> <div class="mx-auto max-w-screen-xl px-4 md:px-8"> <div class="grid gap-8 md:grid-cols-2 lg:gap-12"> <div> <div class="h-64 overflow-hidden rounded-lg shadow-lg md:h-auto"> <img class="h-full w-full object-cover object-center" src="https://images.unsplash.com/photo-1704189125621-55e8c6cfd166?crop=entropy&cs=srgb&fm=jpg&ixid=MnwzNjM5Nzd8MHwxfHJhbmRvbXx8fHx8fHx8fDE2ODE3NDg2ODY&ixlib=rb-4.0.3&q=85" alt="Daily Post Image from Upsplash" draggable="false"> </div> <div id="progress-mobile" class="fixed left-0 top-0 h-2 w-full bg-gradient-to-r from-orange-400/30 to-orange-400 md:hidden"></div> <div id="pin" class="mt-10 hidden space-y-4 md:block"> <div class="h-px w-full overflow-hidden bg-neutral-300 dark:bg-neutral-700"> <div id="progress" class="h-px w-full bg-gradient-to-r from-orange-400/30 to-orange-400"></div> </div> <p class="text-pretty text-sm font-light text-neutral-500">
Table of Contents:
</p> <div id="toc" class=""> <ul class="space-y-2 text-pretty text-base text-neutral-700 transition duration-300 dark:text-neutral-400"></ul> </div> </div> </div> <div class="md:pt-8"> <h1 class="mb-4 text-balance text-center text-2xl font-bold text-neutral-800 dark:text-neutral-200 sm:text-3xl md:mb-6 md:text-left"> January: 15 </h1> <article class="text-pretty text-lg text-neutral-700 dark:text-neutral-300"> <h2 id="notes">Notes</h2>
<h2 id="2025">2025</h2>
<ul>
<li>
<p><strong>Supabase</strong></p>
<p>01:00AM</p>
<p>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.</p>
<p>01:34AM</p>
<p>We want to include the <code>Constraints</code> for the <code>discord_servers</code> 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 <code>invite</code> column, this is what I am thinking we will include.</p>
</li>
</ul>
<pre class="astro-code dracula" style="background-color:#282A36;color:#F8F8F2;overflow-x:auto;white-space:pre-wrap;word-wrap:break-word" tabindex="0" data-language="sql"><code><span class="line"><span style="color:#FF79C6">CONSTRAINT</span><span style="color:#F8F8F2"> ck_valid_invite_code </span><span style="color:#FF79C6">CHECK</span><span style="color:#F8F8F2"> (invite ~ </span><span style="color:#E9F284">&#39;</span><span style="color:#F1FA8C">^[A-Za-z0-9-]{2,100}$</span><span style="color:#E9F284">&#39;</span><span style="color:#F8F8F2">)</span></span>
<span class="line"></span></code></pre>
<p>Next column that we want to limit is the <code>name</code>.
Actually, while looking at the <code>name</code> field, I believe it would make more sense to just drop the <code>TEXT</code> field and use a <code>varchar</code> field instead!
We should limit it to about 100 characters, to be safe, we will do 101 characters.
The <code>name</code> field will then be 101.</p>
<pre class="astro-code dracula" style="background-color:#282A36;color:#F8F8F2;overflow-x:auto;white-space:pre-wrap;word-wrap:break-word" tabindex="0" data-language="sql"><code><span class="line"></span>
<span class="line"><span style="color:#FF79C6">name</span><span style="color:#FF79C6"> VARCHAR</span><span style="color:#F8F8F2">(</span><span style="color:#BD93F9">101</span><span style="color:#F8F8F2">) </span><span style="color:#FF79C6">NOT NULL</span><span style="color:#F8F8F2">,</span></span>
<span class="line"></span>
<span class="line"><span style="color:#FF79C6">CONSTRAINT</span><span style="color:#F8F8F2"> ck_name_combined </span><span style="color:#FF79C6">CHECK</span><span style="color:#F8F8F2"> (</span></span>
<span class="line"><span style="color:#FF79C6"> name</span><span style="color:#F8F8F2"> ~ </span><span style="color:#E9F284">&#39;</span><span style="color:#F1FA8C">^[\p{L}\p{N} _-]{2,100}$</span><span style="color:#E9F284">&#39;</span></span>
<span class="line"><span style="color:#F8F8F2"> ),</span></span>
<span class="line"></span>
<span class="line"></span></code></pre>
<p>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 <code>discord_server</code> data.</p>
<p>Okay, that field is out of the way, the next field will be <code>summary</code> and we will follow the same logic.
Dropping the <code>TEXT</code> and using a <code>VARCHAR</code> instead.</p>
<pre class="astro-code dracula" style="background-color:#282A36;color:#F8F8F2;overflow-x:auto;white-space:pre-wrap;word-wrap:break-word" tabindex="0" data-language="sql"><code><span class="line"></span>
<span class="line"><span style="color:#F8F8F2">summary </span><span style="color:#FF79C6">VARCHAR</span><span style="color:#F8F8F2">(</span><span style="color:#BD93F9">200</span><span style="color:#F8F8F2">) </span><span style="color:#FF79C6">NOT NULL</span><span style="color:#F8F8F2">,</span></span>
<span class="line"></span>
<span class="line"><span style="color:#FF79C6">CONSTRAINT</span><span style="color:#F8F8F2"> ck_summary_combined </span><span style="color:#FF79C6">CHECK</span><span style="color:#F8F8F2"> (</span></span>
<span class="line"><span style="color:#F8F8F2"> summary ~ </span><span style="color:#E9F284">&#39;</span><span style="color:#F1FA8C">^[\p{L}\p{N} _\-,.!?]{2,200}$</span><span style="color:#E9F284">&#39;</span></span>
<span class="line"><span style="color:#F8F8F2">)</span></span>
<span class="line"></span>
<span class="line"></span></code></pre>
<p>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.</p>
<h3 id="2024">2024</h3>
<ul>
<li>
Expand Down
Loading

0 comments on commit 95fb7f5

Please sign in to comment.