Jenkins.instance.getItemByFullName("WakeboardUK/master").updateNextBuildNumber(200)
This file contains 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
# Handy shell commands for Docker (inc Swarm) | |
alias dx='docker exec -it' | |
alias dsl='docker service ls' | |
alias dil='docker image ls' | |
alias dsd='docker stack deploy -c docker-compose.yml' | |
alias dsr='docker stack rm' | |
alias dc='docker-compose' | |
This file contains 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
choco install openssh | |
cd "C:\Program Files\OpenSSH-Win64" | |
powershell -ExecutionPolicy Bypass -File install-sshd.ps1 | |
.\ssh-keygen.exe -A | |
powershell -ExecutionPolicy Bypass '.\FixHostFilePermissions.ps1 -Confirm:$false' | |
Set-Service sshd -StartupType Automatic | |
Set-Service ssh-agent -StartupType Automatic | |
Start-Service ssh-agent | |
Start-Service sshd |
ssh-keygen -t rsa -b 4096 -C "you@yourname.net"
This file contains 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
Get-Content .\filetotail.log -Tail 20 -Wait |
This file contains 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
-- Display the Version of Microsoft Sql Server that you are running | |
select @@VERSION |
This file contains 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
$VSTSAgentFileName="vsts-agent-win7-x64-2.105.7.zip" | |
$VSTSAgentDownloadUrl="http://yourvstsagentdownloadserver/" + $VSTSAgentFileName | |
$TempFolder="c:/Temp/" | |
$VSTSAgentDownloadPath=$TempFolder + $VSTSAgentFileName | |
$VSTSAgentFolder="c:/vsts_agent" | |
$TFSServerUrl="http://yourtfsserver:8080/tfs" | |
function Download-VSTSAgent{ | |
Write-Host("Downloading: " + $VSTSAgentDownloadUrl) | |
Write-Host("To: " + $VSTSAgentDownloadPath) |
From Bash count the number of remote branches a git repo contains:
git branch -r | wc -l
NewerOlder