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
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. | |
public void Configure(IApplicationBuilder app) | |
{ | |
// ... | |
app.UseDefaultFiles(); | |
app.UseStaticFiles(); | |
// ... | |
} |
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
// This method gets called by the runtime. Use this method to add services to the container. | |
public void ConfigureServices(IServiceCollection services) | |
{ | |
// ... | |
services.AddSpaStaticFiles(configuration => | |
{ | |
configuration.RootPath = "wwwroot"; | |
}); | |
// ... | |
} |
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
app.UseSpa(spa => | |
{ | |
if (_environment.IsDevelopment()) | |
{ | |
// Make sure you have started the frontend with npm run dev on port 4000 | |
spa.UseProxyToSpaDevelopmentServer("http://localhost:4000"); | |
} | |
}); |
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
services.AddSpaStaticFiles( | |
configuration => | |
{ | |
configuration.RootPath = "wwwroot"; // Or any other folder | |
}); |
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
Get-ChildItem C:\ -recurse -include "aaa.exe", "bbb.exe" | |
# Credit: https://stackoverflow.com/a/49110679/2874896 |
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
function hardClean { | |
try { | |
Get-ChildItem .\ -include bin,obj -Recurse | foreach ($_) { | |
Write-Output "Deleting $_" | |
remove-item $_.FullName -Force -Recurse | |
} | |
} | |
catch { | |
Write-Output "error" | |
} |
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
[user] | |
email = [email protected] | |
name = Chuck Norris | |
[core] | |
editor = 'C:\\Program Files\\Sublime Text 3\\subl.exe' -w | |
[alias] | |
st = status | |
c = commit -v | |
ca = commit --amend | |
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat |
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
git config --global core.editor "'C:\Program Files\Sublime Text 3\subl.exe' -w" |
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
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" |
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
git log -1 --pretty=format:"%h (%an) [%ad] : %s" --date=short > path\file.txt |