Lower cased API Endpoints in Program.cs
builder.Services.AddRouting(options => options.LowercaseUrls = true);
# Creating a git Repo over HTTP(s) | |
It could be riskier to use git over http(s). | |
Use alternatives when possible. | |
Reference materials | |
- https://git-scm.com/docs/git-update-server-info.html | |
- https://git-scm.com/book/en/v2/Git-on-the-Server-Smart-HTTP | |
- https://web.mit.edu/git/www/howto/setup-git-server-over-http.html |
<phpunit bootstrap="bootstrap.php" colors="true"> | |
<testsuites> | |
<testsuite name="unit"> | |
<directory suffix="Test.php">cases</directory> | |
</testsuite> | |
</testsuites> | |
<logging> | |
<testdoxText outputFile="testdox.txt"/> | |
</logging> | |
</phpunit> |
Lower cased API Endpoints in Program.cs
builder.Services.AddRouting(options => options.LowercaseUrls = true);
// From: https://gist.github.com/lotfio/cfbf857bc96a0487b53ed4877658a97b | |
// Fork: https://gist.github.com/anytizer/44bdc76947b302f22c5c1b67a83d2627 | |
/** | |
* Minor Improvements: | |
* Sqlite => DatabaseManager. | |
* One lined insert statements. | |
* Embedded SQLite3 source code from amalgamation. | |
* Access pointer with "this". | |
* OS/compiler specific full path to the database name. |
import glob | |
import mariadb | |
import sys | |
# Semi automated - routing file generator for Angular | |
# | |
# Usage: | |
# pythoh routes-scanner.py > app-routing.module.ts | |
fourzerofour_handler = "front/front-pagenotfound" |
#pragma once | |
/** | |
* Purpose: Deep scan directories for a search pattern in known file extensions. | |
* | |
* Usage: | |
* | |
* SamplesScanner sc = SamplesScanner(); | |
* QString path = "D:\\lmms\\build\\Debug\\data\\samples"; | |
* QString pattern = "*.ds"; |
sudo apt install pacman
pacman --needed -S bash pacman pacman-mirrors msys2-runtime
mkdir build
cd build
../cmake/build_win64.sh
import { ActivatedRoute } from '@angular/router'; | |
constructor(private activatedRoute: ActivatedRoute) {} | |
ngOnInit(){ | |
const id = this.activatedRoute.snapshot.paramMap.get('id'); | |
} |
const routes: Routes = [ | |
{path: '', redirectTo: "home", pathMatch:"full"}, | |
{path: 'home', component: HomeComponent, title: ''}, | |
{path: 'dashboard', component: DashboardComponent, title: ''}, | |
{path: 'login', component: LoginComponent, title: ''}, | |
{path: 'logout', component: LogoutComponent, title: ''}, | |
{path: '**', component: PagenotfoundComponent, title: ''}, | |
]; |