| ⌘T | go to file |
| ⌘⌃P | go to project |
| ⌘R | go to methods |
| ⌃G | go to line |
| ⌘KB | toggle side bar |
| ⌘⇧P | command prompt |
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 XmlDocTransform($xml, $xdt, $output) | |
| { | |
| if (!$xml -or !(Test-Path -path $xml -PathType Leaf)) { | |
| throw "File not found. $xml"; | |
| } | |
| if (!$xdt -or !(Test-Path -path $xdt -PathType Leaf)) { | |
| throw "File not found. $xdt"; | |
| } | |
| $transformDll = "" |
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
| # 1.install gource using HomeBrew | |
| $ brew install gource | |
| # 2.install avconv | |
| git clone git://git.libav.org/libav.git | |
| cd libav | |
| # it will take 3-5 minutes to complie, be patient. | |
| ./configure --disable-yasm | |
| make && make install |
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
| namespace ConsoleApplication1 | |
| { | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Net; | |
| using System.Security.Principal; | |
| using Microsoft.Owin.Hosting; | |
| using Nancy; | |
| using Owin; |
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 Bump-Version | |
| { | |
| param([string]$part = $(throw "Part is a required parameter.")) | |
| $version = Get-AssemblyInfoVersion -Directory ..\Source -GlobalAssemblyInfo $true | |
| $bumpedVersion = Clone-Object -Object $version | |
| switch -wildcard ($part) | |
| { | |
| "ma*" { $bumpedVersion.Major = Bump-NumericVersion -Current $version.Major } |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <meta-runner name="Meta (CaioProiete): Initialize build and set custom parameters"> | |
| <description>Initialize the build and set the value of some custom parameters that can be used during the build, such as version, timestamp, and others</description> | |
| <settings> | |
| <parameters> | |
| <param name="mr.initialize_build.releaseBranch" value="%build.releaseBranch%" spec="text label='Release Branch:' description='The name of the branch from where production releases are generated' display='normal' validationMode='not_empty'" /> | |
| <param name="mr.initialize_build.verbose" value="SilentlyContinue" spec="checkbox checkedValue='Continue' description='Log verbose messages?' display='normal' label='Verbose:' uncheckedValue='SilentlyContinue'" /> | |
| </parameters> | |
| <build-runners> | |
| <runner name="Initialize build and set custom parameters" type="jetbrains_powershell"> |
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
| # Try it in powershell... | |
| [Reflection.Assembly]::LoadFile("C:\Program Files\Octopus Deploy\Tentacle\Newtonsoft.Json.dll") | |
| [Reflection.Assembly]::LoadFile("C:\Program Files\Octopus Deploy\Tentacle\Octopus.Client.dll") | |
| [Reflection.Assembly]::LoadFile("C:\Program Files\Octopus Deploy\Tentacle\Octopus.Platform.dll") | |
| # Basic data | |
| Write-Host "Setup..." | |
| $octoKey=" Your API Key" | |
| $octoUser=" Your user name" | |
| $octoId=" Your deployment id, ie (deployments-1492)" |
The diff tool integrated with Visual Studio has been improving with every version. I still prefer dedicated diff/merge tools for the job, however, and P4Merge is my favorite. This small guide describes how to properly integrate P4Merge with Visual Studio 2015.
Note that this only applies when using TFS. If you use git, Visual Studio will use the diff/merge tools configured with git.
The easiest method of installing P4Merge on your computer is with Chocolatey:
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
| #!/usr/bin/ruby | |
| # Create display override file to force Mac OS X to use RGB mode for Display | |
| # see http://embdev.net/topic/284710 | |
| require 'base64' | |
| data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
| edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
| vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |
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
| $reportFileName = 'dupfinder.html' | |
| $dupFindLocation = 'C:\dev\tools\ReSharperCliTools\dupfinder.exe' | |
| if (-not (Test-Path $dupFindLocation)) { | |
| Write-Host "dupfinder.exe not found in path $dupFindLocation" | |
| Write-Host "Download tools from https://www.jetbrains.com/help/resharper/2017.1/ReSharper_Command_Line_Tools.html" | |
| exit | |
| } | |
| $xsl = '<?xml version="1.0" encoding="utf-8"?> |