Contents tagged with powershell
-
Create TypeScript definition files from an existing JavaScript library.
We've encountered the excellent oidc-client-js and would like to create its TypeScript definition file. Here has been our approach. Open PowerShell. Enter the src directory. Run this: Get- … more
-
Explicity list aurelia.json dependencies in package.json
There is a known bug, in which npm does not install module dependencies. A workaround is to explicitly list them as top-level dependencies. Here is a script that transfers dependencies from aurelia. … more
-
PowerShell: Compare two directories with slighly different naming conventions.
Quick Copy / Paste Answer This works for a specific use case in which the two directories are src and test\unit, and in which the suffix to ignore is .spec. (dir .\src\ | % { $_.BaseName } ) | … more
-
git blame - Suppress the filename and commit hash.
In this case, 105 is the length of the stuff we want to suppress. Tweak it as appropriate. (git blame some/file.cs)|%{$i=40;$_.Substring($i, $_.Length-$i)} more
-
PowerShell and Environmental Variables
Permanently modify Path variable [Environment]::SetEnvironmentVariable("Path", ` $env:Path + ";C:\mongodb\bin", ` [System.EnvironmentVariableTarget]::Machine) See also: http:// … more
-
Managing Azure Resource Groups
These commands can be useful to keep related resource organized. For instance, we can delete resource groups we no longer use, or move resources from one group to another. List the names of Azure … more
-
A Makeshift JavaScript REPL Editor with Notepad and PhantomJS
What I wanted was a simple JavaScript console, that's similar to the Firefox Web Console but with the lightness and convenience of the PowerShell ISE. The result is a kind of cross between a read- … more
-
Run Common Web Developer Programs from the Command Line
Software Development ssms SQL Server Management Studio devenv Visual Studio MS Office winword Microsoft Word excel Microsoft Excel outlook Microsoft Outlook more
-
Salesforce REST API: Use the OAuth 2.0 Authentication Username-Password Flow
The Successful Response The goal of authentication is to receive an authentication_token If we make a successful OAuth request, we will receive response like this: id : https://test. … more
-
Mark vs Mark Text vs Mark Block
The Windows command line and PowerShell both have an option for Edit Mark. Conemu has "Mark Text" and "Mark Block." What do these do? Mark is a synonym for highlight/select When in mark mode, use … more