λ az account list-locations | grep europe
"id": "/subscriptions/be95d17f-ed23-4a74-b61f-56d51845f744/locations/northeurope",
"name": "northeurope",
"id": "/subscriptions/be95d17f-ed23-4a74-b61f-56d51845f744/locations/westeurope",
"name": "westeurope",
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
| [Route("core/discourse")] | |
| [HttpGet] | |
| public async Task<ActionResult> Index(string sso, string sig) | |
| { | |
| if (string.IsNullOrEmpty(sso) || string.IsNullOrEmpty(sig)) | |
| { | |
| throw new ArgumentException("Missing input parameters"); | |
| } | |
| if (!IsValid(sso, sig)) |
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
| // Redirected from Discourse | |
| [Route("core/discourse")] | |
| [HttpGet] | |
| public async Task<ActionResult> Index(string sso, string sig) | |
| { | |
| if (!IsValid(sso, sig)) | |
| { | |
| throw new SecurityException("sso sig not valid"); | |
| } |
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
| [Route("core/discourse/login")] | |
| [HttpPost] | |
| [ValidateAntiForgeryToken] | |
| public ActionResult Login(string username, string password) | |
| { | |
| if (Users.PasswordMatch(username, password)) | |
| { | |
| var user = Users.GetUser(username); | |
| var authLogin = new AuthenticatedLogin |
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
| private static string CreateDiscourseRedirectUrl(InMemoryUser user, string originalEncodedsso) | |
| { | |
| var urlParameters = Parsesso(originalEncodedsso); | |
| var nonce = urlParameters.Get("nonce"); | |
| var returnUrl = urlParameters.Get("return_sso_url"); | |
| ValidateKnownurl(returnUrl); | |
| var ssoDictionary = new Dictionary<string, string> | |
| { | |
| {"nonce", nonce}, |
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
| # update local list of pruned branches on the remote to local: | |
| git fetch --prune | |
| # delete branches on remote origin that have been merge to master | |
| git branch --merged remotes/origin/master -r | %{$_.trim().replace('origin/', '')} | ?{$_ -notmatch 'master'} | %{git push --delete origin $_} | |
| # delete local branches that have been merged to master | |
| git branch --merged remotes/origin/master | %{$_.trim()} | ?{$_ -notmatch 'master'} | %{git branch -d $_} | |
| # remove stale refs (local refs to branches that are gone on the remote) |
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] | |
| name = mynanme | |
| email = [email protected] | |
| [credential] | |
| helper = wincred | |
| [push] | |
| default = simple | |
| [diff] | |
| tool = bc3 | |
| [difftool] |
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
| // Place your settings in this file to overwrite the default settings | |
| { | |
| "editor.renderWhitespace": "all", | |
| "window.zoomLevel": 0, | |
| "workbench.iconTheme": "vscode-icons", | |
| "vsicons.projectDetection.autoReload": true, | |
| "workbench.activityBar.visible": false, | |
| "workbench.statusBar.visible": false, | |
| "editor.minimap.enabled": false, | |
| "terminal.integrated.shell.windows": "C:\\WINDOWS\\Sysnative\\cmd.exe", |
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
| @echo off | |
| SET CMDER_ROOT=C:\tools\cmder | |
| "%CMDER_ROOT%\vendor\init.bat" |