- Download the perforce visual tool suite from here: http://www.perforce.com/perforce/downloads/index.html
- Install only p4merge
$ git config --global merge.tool p4mergetool
| ## .gitconfig | |
| [alias] | |
| dt = difftool | |
| mt = mergetool | |
| [diff] | |
| tool = bc3 | |
| [difftool] | |
| prompt = false | |
| [difftool "bc3"] |
| using System; | |
| using System.Net.Http; | |
| using System.Web.Http.Controllers; | |
| using System.Web.Http.Dispatcher; | |
| using Ninject; | |
| namespace WebApiNinjectIHttpControllerActivator | |
| { | |
| public class NinjectKernelActivator: IHttpControllerActivator | |
| { |
| ## Octopus Azure deployment script, version 1.1 | |
| ## -------------------------------------------------------------------------------------- | |
| ## | |
| ## This script is used to control how we deploy packages to Windows Azure. | |
| ## | |
| ## When the script is run, the correct Azure subscription will ALREADY be selected, | |
| ## and we'll have loaded the neccessary management certificates. The Azure PowerShell module | |
| ## will also be loaded. | |
| ## | |
| ## If you want to customize the Azure deployment process, simply copy this script into |
| # | |
| # Working with branches | |
| # | |
| # Get the current branch name (not so useful in itself, but used in | |
| # other aliases) | |
| branch-name = "!git rev-parse --abbrev-ref HEAD" | |
| # Push the current branch to the remote "origin", and set it to track | |
| # the upstream branch | |
| publish = "!git push -u origin $(git branch-name)" |
$ git config --global merge.tool p4mergetool
| # Usage: .\DisableNuGetPackageRestore.ps1 C:\Path\To\Solution.sln | |
| # Get the path that the user specified when calling the script | |
| $solution = $args[0] | |
| $solutionPath = Split-Path $solution -Parent | |
| $solutionName = Split-Path $solution -Leaf | |
| # Delete the .nuget directory and all contents | |
| Remove-Item (Join-Path $solutionPath ".nuget") -Force -Recurse -ErrorAction 0 |
| (function(){ | |
| var log = console.log; | |
| console.log = function(str) { | |
| var css = 'background: linear-gradient(to right, red, yellow, lime, aqua, blue, fuchsia, red); color: white; font-weight: bold; text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;'; | |
| var args = Array.prototype.slice.call(arguments); | |
| args[0] = '%c' + args[0]; | |
| args.splice(1,0,css); | |
| return log.apply(console, args); | |
| } |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
| <# | |
| .SYNOPSIS | |
| Fetches an access token using the IdentityServer3 token endpoint | |
| .DESCRIPTION | |
| Modify the parameters so it matches your IdentityServer3 instance. | |
| .NOTES | |
| File Name : GetToken.ps1 | |
| Author : John Korsnes (@johnkors, johnkors) | |
| Prerequisite : PowerShell V3 | |
| .LINK |