...
3
MyObsidianVault/Knowledgebase/Python/Host website.md
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
```bash
|
||||||
|
python3 -m http.server
|
||||||
|
```
|
||||||
|
|
@ -0,0 +1,54 @@
|
||||||
|
https://codeigniter.com/user_guide/libraries/cors.html
|
||||||
|
|
||||||
|
app/Config/Filters.php
|
||||||
|
```php
|
||||||
|
public array $filters = [
|
||||||
|
// ...
|
||||||
|
'cors' => [
|
||||||
|
'before' => ['api/*'],
|
||||||
|
'after' => ['api/*'],
|
||||||
|
],
|
||||||
|
];
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
app/Config/Routes.php
|
||||||
|
```php
|
||||||
|
// API routes (put below service('auth'))
|
||||||
|
|
||||||
|
// For Cors preflight check
|
||||||
|
$routes->group('', ['filter' => 'cors'], static function (RouteCollection $routes) {
|
||||||
|
$routes->options('api/(:any)', static function () {});
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$routes->group("api", ["filter" => "cors", "namespace" => "App\Controllers\Api"], function($routes) {
|
||||||
|
$routes->post("register", "AuthController::register");
|
||||||
|
$routes->post("login", "AuthController::login", ["filter"=>"cors"]);
|
||||||
|
$routes->get("profile", "AuthController::profile");
|
||||||
|
$routes->get("logout", "AuthController::logout", ["filter"=>"apiauth"]);
|
||||||
|
|
||||||
|
$routes->get("invalid-access", "AuthController::accessDenied");
|
||||||
|
|
||||||
|
$routes->get("test2" , "AuthController::test2");
|
||||||
|
|
||||||
|
# WORKS
|
||||||
|
$routes->get("test" , "TestController::test");
|
||||||
|
//$routes->post("add-project", "ProjectController::addProject");
|
||||||
|
//$routes->get("list-projects", "ProjectController::listProjects");
|
||||||
|
//$routes->delete("delete-project/(:num)", "ProjectController::deleteProject/$1");
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
|
app/Config/Cors.php
|
||||||
|
```php
|
||||||
|
|
||||||
|
'allowedOrigins' => ['*'],
|
||||||
|
'allowedOriginsPatterns' => ['http://.*','https://.*'],
|
||||||
|
'allowedMethods' => ['GET', 'POST', 'PUT', 'DELETE'],
|
||||||
|
'allowedHeaders' => ['*'],
|
||||||
|
'maxAge' => 7200,
|
||||||
|
|
||||||
|
```
|
||||||
0
MyObsidianVault/Projects/z_planning/MotorradIG2.md
Normal file
0
MyObsidianVault/Projects/z_planning/Tippspiel2.md
Normal file
|
|
@ -28,73 +28,78 @@ AWA Verwendete Tools
|
||||||
{
|
{
|
||||||
"type": "excalidraw",
|
"type": "excalidraw",
|
||||||
"version": 2,
|
"version": 2,
|
||||||
"source": "https://github.com/zsviczian/obsidian-excalidraw-plugin/releases/tag/1.9.12",
|
"source": "https://github.com/zsviczian/obsidian-excalidraw-plugin/releases/tag/2.0.17",
|
||||||
"elements": [
|
"elements": [
|
||||||
{
|
{
|
||||||
"id": "feJFj2ek",
|
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"x": -128.25,
|
"version": 393,
|
||||||
"y": -498.4453125,
|
"versionNonce": 1918635412,
|
||||||
"width": 325.599609375,
|
"isDeleted": false,
|
||||||
"height": 325,
|
"id": "feJFj2ek",
|
||||||
"angle": 0,
|
|
||||||
"strokeColor": "#1e1e1e",
|
|
||||||
"backgroundColor": "transparent",
|
|
||||||
"fillStyle": "hachure",
|
"fillStyle": "hachure",
|
||||||
"strokeWidth": 1,
|
"strokeWidth": 1,
|
||||||
"strokeStyle": "solid",
|
"strokeStyle": "solid",
|
||||||
"roughness": 1,
|
"roughness": 1,
|
||||||
"opacity": 100,
|
"opacity": 100,
|
||||||
|
"angle": 0,
|
||||||
|
"x": -128.25,
|
||||||
|
"y": -498.4453125,
|
||||||
|
"strokeColor": "#1e1e1e",
|
||||||
|
"backgroundColor": "transparent",
|
||||||
|
"width": 254.375,
|
||||||
|
"height": 325,
|
||||||
|
"seed": 9804352,
|
||||||
"groupIds": [],
|
"groupIds": [],
|
||||||
"frameId": null,
|
"frameId": null,
|
||||||
"roundness": null,
|
"roundness": null,
|
||||||
"seed": 9804352,
|
"boundElements": [],
|
||||||
"version": 392,
|
"updated": 1734941612700,
|
||||||
"versionNonce": 415726144,
|
|
||||||
"isDeleted": false,
|
|
||||||
"boundElements": null,
|
|
||||||
"updated": 1703072229416,
|
|
||||||
"link": null,
|
"link": null,
|
||||||
"locked": false,
|
"locked": false,
|
||||||
"text": "AWA Verwendete Tools\n Godot (aktuelle Version 4.2)\n Blender 3.6.4\n Add-On AutoRig Pro\n Add-On SimpleBake\n Add-On Human Generator\n Add-On Quad Remesher\n Add-On Sanctus Lib\n Add-On SimplyCloth Pro\n Gimp\n Krita\n \n ",
|
|
||||||
"rawText": "AWA Verwendete Tools\n Godot (aktuelle Version 4.2)\n Blender 3.6.4\n Add-On AutoRig Pro\n Add-On SimpleBake\n Add-On Human Generator\n Add-On Quad Remesher\n Add-On Sanctus Lib\n Add-On SimplyCloth Pro\n Gimp\n Krita\n \n ",
|
|
||||||
"fontSize": 20,
|
"fontSize": 20,
|
||||||
"fontFamily": 1,
|
"fontFamily": 1,
|
||||||
|
"text": "AWA Verwendete Tools\n Godot (aktuelle Version 4.2)\n Blender 3.6.4\n Add-On AutoRig Pro\n Add-On SimpleBake\n Add-On Human Generator\n Add-On Quad Remesher\n Add-On Sanctus Lib\n Add-On SimplyCloth Pro\n Gimp\n Krita\n \n ",
|
||||||
|
"rawText": "AWA Verwendete Tools\n Godot (aktuelle Version 4.2)\n Blender 3.6.4\n Add-On AutoRig Pro\n Add-On SimpleBake\n Add-On Human Generator\n Add-On Quad Remesher\n Add-On Sanctus Lib\n Add-On SimplyCloth Pro\n Gimp\n Krita\n \n ",
|
||||||
"textAlign": "left",
|
"textAlign": "left",
|
||||||
"verticalAlign": "top",
|
"verticalAlign": "top",
|
||||||
"baseline": 318,
|
|
||||||
"containerId": null,
|
"containerId": null,
|
||||||
"originalText": "AWA Verwendete Tools\n Godot (aktuelle Version 4.2)\n Blender 3.6.4\n Add-On AutoRig Pro\n Add-On SimpleBake\n Add-On Human Generator\n Add-On Quad Remesher\n Add-On Sanctus Lib\n Add-On SimplyCloth Pro\n Gimp\n Krita\n \n ",
|
"originalText": "AWA Verwendete Tools\n Godot (aktuelle Version 4.2)\n Blender 3.6.4\n Add-On AutoRig Pro\n Add-On SimpleBake\n Add-On Human Generator\n Add-On Quad Remesher\n Add-On Sanctus Lib\n Add-On SimplyCloth Pro\n Gimp\n Krita\n \n ",
|
||||||
"lineHeight": 1.25
|
"lineHeight": 1.25,
|
||||||
|
"baseline": 319
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "OyjLcS3Lz6WXQ8QA6f9va",
|
|
||||||
"type": "line",
|
"type": "line",
|
||||||
"x": -129.25,
|
"version": 52,
|
||||||
"y": -475.4453125,
|
"versionNonce": 1014911424,
|
||||||
"width": 226,
|
"isDeleted": false,
|
||||||
"height": 2,
|
"id": "OyjLcS3Lz6WXQ8QA6f9va",
|
||||||
"angle": 0,
|
|
||||||
"strokeColor": "#1e1e1e",
|
|
||||||
"backgroundColor": "transparent",
|
|
||||||
"fillStyle": "hachure",
|
"fillStyle": "hachure",
|
||||||
"strokeWidth": 1,
|
"strokeWidth": 1,
|
||||||
"strokeStyle": "solid",
|
"strokeStyle": "solid",
|
||||||
"roughness": 1,
|
"roughness": 1,
|
||||||
"opacity": 100,
|
"opacity": 100,
|
||||||
|
"angle": 0,
|
||||||
|
"x": -129.25,
|
||||||
|
"y": -475.4453125,
|
||||||
|
"strokeColor": "#1e1e1e",
|
||||||
|
"backgroundColor": "transparent",
|
||||||
|
"width": 226,
|
||||||
|
"height": 2,
|
||||||
|
"seed": 551352896,
|
||||||
"groupIds": [],
|
"groupIds": [],
|
||||||
"frameId": null,
|
"frameId": null,
|
||||||
"roundness": {
|
"roundness": {
|
||||||
"type": 2
|
"type": 2
|
||||||
},
|
},
|
||||||
"seed": 551352896,
|
"boundElements": [],
|
||||||
"version": 52,
|
|
||||||
"versionNonce": 1014911424,
|
|
||||||
"isDeleted": false,
|
|
||||||
"boundElements": null,
|
|
||||||
"updated": 1703072051030,
|
"updated": 1703072051030,
|
||||||
"link": null,
|
"link": null,
|
||||||
"locked": false,
|
"locked": false,
|
||||||
|
"startBinding": null,
|
||||||
|
"endBinding": null,
|
||||||
|
"lastCommittedPoint": null,
|
||||||
|
"startArrowhead": null,
|
||||||
|
"endArrowhead": null,
|
||||||
"points": [
|
"points": [
|
||||||
[
|
[
|
||||||
0,
|
0,
|
||||||
|
|
@ -104,12 +109,7 @@ AWA Verwendete Tools
|
||||||
226,
|
226,
|
||||||
-2
|
-2
|
||||||
]
|
]
|
||||||
],
|
]
|
||||||
"lastCommittedPoint": null,
|
|
||||||
"startBinding": null,
|
|
||||||
"endBinding": null,
|
|
||||||
"startArrowhead": null,
|
|
||||||
"endArrowhead": null
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"appState": {
|
"appState": {
|
||||||
|
|
@ -127,13 +127,17 @@ AWA Verwendete Tools
|
||||||
"currentItemTextAlign": "left",
|
"currentItemTextAlign": "left",
|
||||||
"currentItemStartArrowhead": null,
|
"currentItemStartArrowhead": null,
|
||||||
"currentItemEndArrowhead": "arrow",
|
"currentItemEndArrowhead": "arrow",
|
||||||
"scrollX": 311.751285302639,
|
"scrollX": 412.613589990139,
|
||||||
"scrollY": 624.01171875,
|
"scrollY": 628.0078125,
|
||||||
"zoom": {
|
"zoom": {
|
||||||
"value": 2
|
"value": 2
|
||||||
},
|
},
|
||||||
"currentItemRoundness": "round",
|
"currentItemRoundness": "round",
|
||||||
"gridSize": null,
|
"gridSize": null,
|
||||||
|
"gridColor": {
|
||||||
|
"Bold": "#C9C9C9FF",
|
||||||
|
"Regular": "#EDEDEDFF"
|
||||||
|
},
|
||||||
"currentStrokeOptions": null,
|
"currentStrokeOptions": null,
|
||||||
"previousGridSize": null,
|
"previousGridSize": null,
|
||||||
"frameRendering": {
|
"frameRendering": {
|
||||||
|
Before Width: | Height: | Size: 71 KiB After Width: | Height: | Size: 71 KiB |
|
Before Width: | Height: | Size: 115 KiB After Width: | Height: | Size: 115 KiB |
|
Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 61 KiB |
|
Before Width: | Height: | Size: 201 KiB After Width: | Height: | Size: 201 KiB |
|
Before Width: | Height: | Size: 415 KiB After Width: | Height: | Size: 415 KiB |
|
Before Width: | Height: | Size: 332 KiB After Width: | Height: | Size: 332 KiB |
|
Before Width: | Height: | Size: 362 KiB After Width: | Height: | Size: 362 KiB |
|
Before Width: | Height: | Size: 524 KiB After Width: | Height: | Size: 524 KiB |
|
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 323 KiB After Width: | Height: | Size: 323 KiB |
|
Before Width: | Height: | Size: 432 KiB After Width: | Height: | Size: 432 KiB |
|
Before Width: | Height: | Size: 224 KiB After Width: | Height: | Size: 224 KiB |
|
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 72 KiB |
|
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 59 KiB |
|
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 66 KiB |
|
Before Width: | Height: | Size: 209 KiB After Width: | Height: | Size: 209 KiB |
|
Before Width: | Height: | Size: 198 KiB After Width: | Height: | Size: 198 KiB |
|
Before Width: | Height: | Size: 53 KiB After Width: | Height: | Size: 53 KiB |
|
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.4 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 2 KiB After Width: | Height: | Size: 2 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 57 KiB |
|
Before Width: | Height: | Size: 112 KiB After Width: | Height: | Size: 112 KiB |
|
Before Width: | Height: | Size: 254 KiB After Width: | Height: | Size: 254 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 195 KiB After Width: | Height: | Size: 195 KiB |
|
Before Width: | Height: | Size: 153 KiB After Width: | Height: | Size: 153 KiB |
|
Before Width: | Height: | Size: 283 KiB After Width: | Height: | Size: 283 KiB |
|
Before Width: | Height: | Size: 190 KiB After Width: | Height: | Size: 190 KiB |
|
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 168 KiB After Width: | Height: | Size: 168 KiB |
|
Before Width: | Height: | Size: 226 KiB After Width: | Height: | Size: 226 KiB |
|
Before Width: | Height: | Size: 293 KiB After Width: | Height: | Size: 293 KiB |
|
Before Width: | Height: | Size: 354 KiB After Width: | Height: | Size: 354 KiB |
|
Before Width: | Height: | Size: 328 KiB After Width: | Height: | Size: 328 KiB |
|
Before Width: | Height: | Size: 224 KiB After Width: | Height: | Size: 224 KiB |
|
Before Width: | Height: | Size: 155 KiB After Width: | Height: | Size: 155 KiB |
|
Before Width: | Height: | Size: 249 KiB After Width: | Height: | Size: 249 KiB |
|
Before Width: | Height: | Size: 172 KiB After Width: | Height: | Size: 172 KiB |
|
Before Width: | Height: | Size: 170 KiB After Width: | Height: | Size: 170 KiB |
|
Before Width: | Height: | Size: 228 KiB After Width: | Height: | Size: 228 KiB |
|
Before Width: | Height: | Size: 261 KiB After Width: | Height: | Size: 261 KiB |
|
Before Width: | Height: | Size: 192 KiB After Width: | Height: | Size: 192 KiB |
|
Before Width: | Height: | Size: 206 KiB After Width: | Height: | Size: 206 KiB |