Skip to content

Instantly share code, notes, and snippets.

$OctopusURL = "http://localhost:8065"
$OctopusAPIKey = "API-XXXXXXXXXXXXX"
$environmentID = $OctopusParameters['Octopus.Environment.Id'] #Id of the environment where you want to run the health check. During a deployment you can use the variable $OctopusParameters['Octopus.Environment.Id'] to get this value.
Write-host "Env $environmentID"
$header = @{ "X-Octopus-ApiKey" = $OctopusAPIKey }
$body = @"
{
#load "Bootstrap.fsx"
open Bootstrap
#load "Hello.fsx"
using System;
namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(new Test().GetExtension());
Console.ReadLine();
#Run as admin and make sure C:\temp exists and is accessible
(new-object System.Net.WebClient).DownloadFile('http://tinyurl.com/hhqarue', 'c:/temp/chrome.exe');
@pawelpabich
pawelpabich / CompleteRowsScanner
Created August 19, 2015 22:44
How to combined raw data from HBase
public class CompleteRowsScanner
{
private readonly HBaseClient _client;
private readonly ScannerInformation _scannerInformation;
private readonly string _restServerName;
private readonly CompleteRowFilter _filter;
public CompleteRowsScanner(HBaseClient client, ScannerInformation scannerInformation, string restServerName)
{
_client = client;
using System;
using System.Threading;
using Akka.Actor;
namespace Actors
{
class Program
{
static void Main(string[] args)
{
function Get-Never
{
return never;
}
Get-Never
using System;
using System.Data.SqlClient;
namespace SqlTests
{
class Program
{
private static void Main(string[] args)
{
for (int i = 0; i < 10; i++)
First 5 tries.
2014-10-13 18:20:40.9418 Debug 25 Handling SendEmail command System.Collections.Generic.List`1[System.String] Account registration
2014-10-13 18:20:40.9418 Info 25 Failed to process message System.ApplicationException: Only domain.com domain can be used for emails in FullCI. 77dce7f52d6146db9952e9599b605079@77dce7f52d6146db9952e9599b605079.77dce7f52d6146db9952e9599b605079 does not belong to it.
at Namespace.Web.Infrastructure.Emails.EmailDispatcher.AssertRecipientsAreLimitedToKnownDomain(IEnumerable`1 recipients) in c:\BuildAgent\work\6433a48383cd8d3\Source\Namespace.Web\Infrastructure\Emails\EmailDispatcher.cs:line 71
at Namespace.Web.Infrastructure.Emails.EmailDispatcher.Handle(SendEmail email) in c:\BuildAgent\work\6433a48383cd8d3\Source\Namespace.Web\Infrastructure\Emails\EmailDispatcher.cs:line 31
at NServiceBus.Unicast.HandlerInvocationCache.Invoke(Object handler, Object message, Dictionary`2 dictionary) in y:\BuildAgent\work\31f8c64a6e8a2d7c\src\NServiceBus.Core\Unicast\Handle
@pawelpabich
pawelpabich / NLog.config
Created October 12, 2014 13:35
NLog bug repro
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" autoReload="true">
<targets>
<target name="Console" xsi:type="Console"
layout="${logger} ${level} ${message} ${exception:format=tostring}"
/>
</targets>
<rules>
<logger name="NamespaceToFilterOut.*" minlevel="Debug" final="true" />