Skip to content

Commit

Permalink
Minor updates for the Dev hang
Browse files Browse the repository at this point in the history
Seems that the issue has been fixed for now.
  • Loading branch information
h0lybyte committed Aug 16, 2023
1 parent dfdfa65 commit e34f1ca
Show file tree
Hide file tree
Showing 79 changed files with 1,149 additions and 653 deletions.
773 changes: 418 additions & 355 deletions .astro/types.d.ts

Large diffs are not rendered by default.

Binary file added public/assets/img/book/grown/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/img/book/grown/10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/img/book/grown/11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/img/book/grown/12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/img/book/grown/13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/img/book/grown/14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/img/book/grown/15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/img/book/grown/16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/img/book/grown/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/img/book/grown/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/img/book/grown/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/img/book/grown/5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/img/book/grown/6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/img/book/grown/7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/img/book/grown/8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/img/book/grown/9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 17 additions & 17 deletions src/content/.obsidian/workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"state": {
"type": "markdown",
"state": {
"file": "journal/08-15.md",
"file": "journal/08-16.md",
"mode": "source",
"source": false
}
Expand Down Expand Up @@ -93,7 +93,7 @@
"state": {
"type": "backlink",
"state": {
"file": "journal/08-15.md",
"file": "journal/08-16.md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
Expand All @@ -110,7 +110,7 @@
"state": {
"type": "outgoing-link",
"state": {
"file": "journal/08-15.md",
"file": "journal/08-16.md",
"linksCollapsed": false,
"unlinkedCollapsed": true
}
Expand All @@ -133,7 +133,7 @@
"state": {
"type": "outline",
"state": {
"file": "journal/08-15.md"
"file": "journal/08-16.md"
}
}
}
Expand All @@ -157,18 +157,19 @@
},
"active": "1e65db65e2721f35",
"lastOpenFiles": [
"tags/host/host.mdx",
"tags/host",
"tags/mobile/mobile.mdx",
"tags/mobile",
"tags/tags.mdx",
"tags/data/data.mdx",
"tags/data",
"tags/sql/sql.mdx",
"tags/sql",
"tags/technology/technology.mdx",
"tags/technology",
"application/watchtower/watchtower.mdx",
"application/watchtower",
"application/traefik/traefik.mdx",
"application/traefik",
"application/terraform/terraform.mdx",
"application/terraform",
"application/void/void.mdx",
"application/void",
"application/unity/unity.mdx",
"application/unity",
"application/strapi/strapi.mdx",
"journal/08-15.md",
"journal/08-16.md",
"journal/08-14.md",
"journal/08-13.md",
"theory/bizops/_graph/business-model.md",
Expand All @@ -191,7 +192,6 @@
"application/obs/_notes/voicemeter.md",
"application/obs/notes/voicemeter.md",
"journal/08-06.md",
"journal/08-05.md",
"journal/08-04.md"
"journal/08-05.md"
]
}
10 changes: 8 additions & 2 deletions src/content/account/settings.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
layout: ../../layouts/Account.astro
title: Settings
description: KBVE Account Settings Page
author: KBVE
Expand All @@ -11,13 +10,20 @@ tags:
- user
---

import Account from "@l/Account.astro";

import Details from '@w/Details.astro';
import Widget from "@w/Widget.astro";
import MDXJS from '@w/MDXJS.astro';
import Profile from '@w/Profile.astro';


<Account>

<Widget img={"https://images.unsplash.com/photo-1446071103084-c257b5f70672"}>

<Profile />

</Widget>
</Widget>

</Account>
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ frontpage: false
publishDate: 2022-10-25 00:00:00
img: https://images.unsplash.com/photo-1607252650355-f7fd0460ccdb?fit=crop&w=1400&h=700&q=75
description: Android is an open source operating system based off of Linux that runs within the ARM architecture; the primary use-case is within the mobile/tablet eco-system but it has been expanding into server, desktop and embedables.
slug: "android"
slug: android
tags:
- technology
- os
Expand All @@ -16,13 +16,14 @@ tags:
import MDXLayer from "@l/MDXLayer.astro";
import Widget from "@w/Widget.astro";
import MDXJS from "@w/MDXJS.astro";
import N from "@n/N.astro";
import Details from "@w/Details.astro";


<MDXLayer title={frontmatter.title} description={frontmatter.description}>
<Widget img={frontmatter.img} skeleton={false}>
<MDXJS>

import N from "@n/N.astro";
import Details from "@w/Details.astro";


## Information
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
---
layout: ../../layouts/theme/mdx.astro
title: Ansible
category: Application
client: Self
publishDate: 2022-10-25 00:00:00
img: https://images.unsplash.com/photo-1549605659-32d82da3a059?fit=crop&w=1400&h=700&q=75
repo:
slug: ansible
description: DevOps software that handles the infrastructure of the backend through automation. Ansible's main function(s) operate through a "playbook" system that exectues a collection of commands for the system admin, which becomes a pillar within the IaaC environment.
tags:
- technology
Expand All @@ -14,6 +13,13 @@ tags:
---

import N from "@n/N.astro";
import MDXLayer from "@l/MDXLayer.astro";
import Widget from "@w/Widget.astro";
import MDXJS from "@w/MDXJS.astro";

<MDXLayer title={frontmatter.title} description={frontmatter.description}>
<Widget img={frontmatter.img} skeleton={false}>
<MDXJS>


## Information
Expand Down Expand Up @@ -397,3 +403,8 @@ Added tabs to the Ansible MDX.
Going to update the basics of the documentation. I will go back and add moreinformation next week.

### License


</MDXJS>
</Widget>
</MDXLayer>
89 changes: 38 additions & 51 deletions src/content/application/appwrite/appwrite.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
layout: ../../../layouts/MDX.astro
title: AppWrite
category: Application
client: Self
Expand All @@ -14,20 +13,22 @@ tags:
- backend
---

import N from "@n/N.astro";
import Widget from "@w/Widget.astro";
import MDXJS from "@w/MDXJS.astro";
import N from '@n/N.astro';
import Widget from '@w/Widget.astro';
import MDXJS from '@w/MDXJS.astro';
import MDXLayer from '@l/MDXLayer.astro';

<Widget img={frontmatter.img} skeleton={false}>
<MDXLayer title={frontmatter.title} description={frontmatter.description}>

<Widget img={frontmatter.img} skeleton={false}>

<MDXJS>

## Information

Appwrite is a cutting-edge backend server that streamlines the development of modern apps.
With its powerful APIs, intuitive tools, and sleek management console UI, Appwrite empowers developers to build their apps with speed and security.
Say goodbye to the headaches of common, complex, and repetitive tasks - Appwrite has got you covered.
Appwrite is a cutting-edge backend server that streamlines the development of modern apps.
With its powerful APIs, intuitive tools, and sleek management console UI, Appwrite empowers developers to build their apps with speed and security.
Say goodbye to the headaches of common, complex, and repetitive tasks - Appwrite has got you covered.
Get ready to revolutionize your app development process with Appwrite!

---
Expand All @@ -36,7 +37,6 @@ Get ready to revolutionize your app development process with Appwrite!

</MDXJS>


<MDXJS>

## Functions
Expand All @@ -50,36 +50,29 @@ List of the common and default variables when deploying the cloud function, I am
#### SDK

```javascript

const sdk = require("node-appwrite"); // Import outside of the module function.

const sdk = require('node-appwrite'); // Import outside of the module function.
```

Then to call it from inside the `module.exports`

```javascript

const client = new sdk.Client();

let account = new sdk.Account(client);
let avatars = new sdk.Avatars(client);
let database = new sdk.Database(client);
let functions = new sdk.Functions(client);
let health = new sdk.Health(client);
let locale = new sdk.Locale(client);
let storage = new sdk.Storage(client);
let teams = new sdk.Teams(client);
let users = new sdk.Users(client);


const client = new sdk.Client();

let account = new sdk.Account(client);
let avatars = new sdk.Avatars(client);
let database = new sdk.Database(client);
let functions = new sdk.Functions(client);
let health = new sdk.Health(client);
let locale = new sdk.Locale(client);
let storage = new sdk.Storage(client);
let teams = new sdk.Teams(client);
let users = new sdk.Users(client);
```

The main `module.exports` is usually written like this

```javascript

module.exports = async function (req, res) {}; // Passing req and res

```

The `req` contains these three main objects:
Expand All @@ -91,41 +84,32 @@ The `req` contains these three main objects:
The `res` can return two main objects:

`res.send` - returns a `text` and `statusCode`.
`res.json` - returns an `object` and `statusCode`.

`res.json` - returns an `object` and `statusCode`.

Example of parsing the `req.payload` check and `res.json` return.

```javascript

if (req.payload) {
try {
payload = JSON.parse(req.payload);
} catch (error) {
errorHandler("Corrupt payload for the function.");
}
} else {
errorHandler("Missing payload for the function.");
}

if (req.payload) {
try {
payload = JSON.parse(req.payload);
} catch (error) {
errorHandler('Corrupt payload for the function.');
}
} else {
errorHandler('Missing payload for the function.');
}
```

In this case our `errorHandler` function would be:


```javascript

const errorHandler = (__errorMessage, statusCode = 418) => {
res.json({ data: "error", message: __errorMessage }, statusCode);
};

const errorHandler = (__errorMessage, statusCode = 418) => {
res.json({ data: 'error', message: __errorMessage }, statusCode);
};
```



</MDXJS>


<MDXJS>

## Notes
Expand All @@ -140,9 +124,11 @@ These will be all the notes for AppWrite, as we migrate over to it.
#### Journal

##### 2023-04-14

Added email configuration to the appwrite server variables.

##### 2023-04-12

Starting the mdx sheet for AppWrite. I will try to include all the reference material here.

### License
Expand All @@ -153,4 +139,5 @@ Appwrite / appwrite is licensed under the BSD 3-Clause "New" or "Revised" Licens

</MDXJS>

</Widget>
</Widget>
</MDXLayer>
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
---
layout: ../../layouts/theme/mdx.astro
title: Authelia
category: Application
client: Self
publishDate: 2022-10-25 00:00:00
img: https://images.unsplash.com/photo-1509822929063-6b6cfc9b42f2?fit=crop&w=1400&h=700&q=75
repo:
slug: authelia
description: Open-source auth software as a middleware. Authelia handles the authentication and authorization of the user/entity, allowing to secure access outside the scope of the application and provides a unique firewall-like access terminal.
tags:
- security
Expand All @@ -19,6 +18,13 @@ import TabMenu from "@w/TabMenu.astro";
import TabData from "@w/TabData.astro";
import YT from "@w/YT.astro";
import N from "@n/N.astro";
import MDXLayer from "@l/MDXLayer.astro";
import Widget from "@w/Widget.astro";
import MDXJS from "@w/MDXJS.astro";

<MDXLayer title={frontmatter.title} description={frontmatter.description}>
<Widget img={frontmatter.img} skeleton={false}>
<MDXJS>


## Information
Expand Down Expand Up @@ -101,3 +107,7 @@ Notes on Authelia
- Authelia operates under the Apache 2.0 license.

<N ns="ads" template="mdx2" id="ezoic" />

</MDXJS>
</Widget>
</MDXLayer>
Loading

0 comments on commit e34f1ca

Please sign in to comment.