Ex. split log file into 50MB chunks, use digits as postfix, use file-ending .log on created files
λ split MyHugeFileOfManyGBs.log -C 50m -d --additional-suffix .log- cat
- type
| docker ps -a -q -f status=exited -f status=created | foreach-object {docker rm -f $PSItem.toString() } | |
| docker images | select-string "<none>" | ConvertFrom-String) | Select -ExpandProperty "P3" |
| @echo off | |
| SET CMDER_ROOT=C:\tools\cmder | |
| "%CMDER_ROOT%\vendor\init.bat" |
| // 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", |
| [user] | |
| name = mynanme | |
| email = [email protected] | |
| [credential] | |
| helper = wincred | |
| [push] | |
| default = simple | |
| [diff] | |
| tool = bc3 | |
| [difftool] |
| # 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) |
| 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}, |
| [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 |
| // 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"); | |
| } |