Skip to content

Instantly share code, notes, and snippets.

View bendalby82's full-sized avatar

Ben Dalby bendalby82

View GitHub Profile
#Requires -Version 3
#Requires -RunAsAdministrator
<#
.SYNOPSIS
Downloads and installs an Azure Pipelines Agent on the current machine,
and registers it with the specified Azure Devops organization, project, and environment.
.DESCRIPTION
This cmdlet downloads an Azure Pipelines Agent on the current machine, installs it to C:\azagent,
and finally runs the .\config.cmd command, which registers the agent with the specified
@bendalby82
bendalby82 / listresources.sh
Last active May 15, 2017 15:31
Cloud Foundry Example .profile.d Script
#List contents of /home/vcap on start up
#Ref: https://discuss.pivotal.io/hc/en-us/articles/221429687-How-to-initialize-the-application-container-environment-with-profile-d-script
#Stored at: https://gist.github.com/bendalby82/bda1bfd6744ae6dfe68ee168a8863287
#Check the contents of cf logs <APP NAME> to see output.
echo "**************************************************"
echo "START: listresources.sh running in .profile.d"
echo "Running 'find /home/vcap'"
echo "**************************************************"
find /home/vcap
echo "**************************************************"