This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"segments": [ | |
{ | |
"properties": { | |
"cache_duration": "none", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ConnectionString": "Data Source=(localdb)\\MSSQLLocalDB;Database={DbName};Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Provides a very rudimentary way of binding the data in {@see ControllerBase::$body} to a provided model. | |
* | |
* At this time, the desired model to be hydrated must meet the following criteria: | |
* - Constructor must be parameterless (including no promoted properties). | |
* - All property types must be simple, built-in types (e.g., string, int, bool). | |
* | |
* @param string $classFQN The fully qualified name of the desired model (i.e., MyClassName::class). | |
* | |
* @return object|null The hydrated model given no fatal errors, null otherwise. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Backup | |
docker exec dockerContainer sh -c 'exec mysqldump --all-databases -uroot -p"$MYSQL_ROOT_PASSWORD"' > C:\path\to\dump.sql | |
docker exec dockerContainer sh -c 'exec mysqldump --databases databaseSchemaName -uroot -p"$MYSQL_ROOT_PASSWORD"' > C:\path\to\dump.sql | |
// Restore | |
docker exec -i dockerContainer sh -c 'exec mysql -uroot -p"$MYSQL_ROOT_PASSWORD"' > C:\path\to\dump.sql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Document</title> | |
</head> | |
<body> | |
<div id="root"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Install-Module PSReadLine -Repository PSGallery -Scope CurrentUser -Force | |
#Install-Module posh-git -Scope CurrentUser -Force | |
#Install-Module -Name Terminal-Icons -Scope CurrentUser -Force | |
#dotnet tool install dotnet-suggest --global or dotnet tool update dotnet-suggest --global | |
using namespace System.Management.Automation | |
using namespace System.Management.Automation.Language | |
Import-Module posh-git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"transient_prompt": { | |
"template": "\ue285 ", | |
"foreground": "#FEF5ED", | |
"background": "transparent" | |
}, | |
"console_title_template": "{{ .Folder }}", | |
"blocks": [ | |
{ |