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
| start /wait msiexec /i Octopus.Tentacle.<version>.msi /quiet INSTALLLOCATION=C:\Octopus | |
| cd C:\Octopus\Agent | |
| tentacle configure --appdir="C:\Applications" --port=10933 --trust=<server-thumbprint> | |
| tentacle new-certificate | |
| tentacle install | |
| tentacle register-with --server=<server-url> --environment=<environment> --role=<role> --apikey=<some-user-apikey> | |
| octo deploy-release --project=<project-name> --deployto=<environment-to-deploy> --version=<version-to-deploy> --server=<server-url> --apikey=<some-user-apikey> |
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
| var sumsOfDivisors = from i in Enumerable.Range(1, 10000) | |
| select new { Number = (long)i, SumOfDivisors = Toolbox.GetProperDivisors(i).Sum() }; | |
| var amicableNumbers = from a in sumsOfDivisors | |
| join b in sumsOfDivisors on new { x = a.Number, y = a.SumOfDivisors } equals | |
| new { x = b.SumOfDivisors, y = b.Number } | |
| where a.Number != b.Number | |
| select a.Number; |
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
| app.directive('ngTranscludeAppend', function() { | |
| return function(scope, element, attrs, ctrl, transcludeFn) { | |
| if (!transcludeFn) return; | |
| transcludeFn(function(clone) { | |
| element.append(clone); | |
| }); | |
| }; | |
| }); |
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
| app.directive('autosize', function($document) { | |
| return { | |
| require: 'ngModel', | |
| link: function(scope, element, attrs, ctrl) { | |
| var placeholder, span, resize; | |
| placeholder = element.attr('placeholder') || ''; | |
| span = angular.element('<span></span>'); | |
| span[0].style.cssText = getComputedStyle(element[0]).cssText; |
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
| <input type="text" ng-bind-attrs="{placeholder: somePropertyOfTheScope, tabindex: anotherPropertyOfTheScope}" > |
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
| [alias] | |
| aa = add -A | |
| co = checkout | |
| st = status | |
| ci = commit | |
| br = branch | |
| me = merge | |
| rs = reset | |
| rb = rebase | |
| df = diff |
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
| #!/bin/bash | |
| set -e | |
| local_branch=$(git rev-parse --symbolic-full-name --abbrev-ref HEAD) | |
| remote_branch=$(git rev-parse --abbrev-ref --symbolic-full-name @{u}) | |
| remote=$(git config branch.$local_branch.remote) | |
| echo "Fetching from $remote..." | |
| git fetch $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
| app.directive('forceDatabinding', function() { | |
| return { | |
| require: 'ngModel', | |
| link: function(scope, element, attrs, ngModel) { | |
| ngModel.$parsers.push(function(value) { | |
| return value || ngModel.$viewValue; | |
| }); | |
| } | |
| }; | |
| }); |
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 Is-Default-Branch { | |
| return "%teamcity.build.branch.is_default%" -eq "true" | |
| } | |
| function Build-Arguments { | |
| if (Is-Default-Branch) { | |
| $releaseNumber = "%octopus.master.releaseNumber%" | |
| $deployTo = "%octopus.master.deployTo%" | |
| $packageVersion = "%octopus.master.packageVersion%" | |
| } |
OlderNewer