Open PowerShell console and type the following command to enable PowerShell remoting:
Enable-PSRemoting -Force
Change scripts execution policy to allow remote scripts:
Set-ExecutionPolicy RemoteSigned
void Main() | |
{ | |
var client = new TcpClient("192.168.1.6", 4028); | |
using (var stream = client.GetStream()) | |
{ | |
using (var reader = new StreamReader(stream)) | |
{ | |
var data = System.Text.Encoding.ASCII.GetBytes("{\"command\":\"summary\",\"parameter\":\"\"}"); | |
stream.Write(data, 0, data.Length); |
using System; | |
using System.Diagnostics; | |
using System.ServiceModel; | |
using System.ServiceModel.Description; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Castle.Facilities.WcfIntegration; | |
using Castle.MicroKernel.Registration; | |
using Castle.Windsor; |
using System; | |
using System.Security.Cryptography; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var r = RollDice(250); |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Runtime.CompilerServices; | |
using System.Threading; | |
namespace System.Threading.Tasks | |
{ | |
internal static class TaskHelpers | |
{ |
using System; | |
using System.Timers; | |
using Castle.MicroKernel.Registration; | |
using Castle.Windsor; | |
using Topshelf; | |
namespace TopshelfBootstrapper | |
{ | |
internal class Program | |
{ |
using System; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using EasyNetQ; | |
namespace ConsoleApplication5 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
Octopus.Acquire.MaxParallelism | |
Octopus.Action[Deploy Cardio API - Host].Azure.CertificateBytes | |
Octopus.Action[Deploy Cardio API - Host].Azure.CertificateThumbprint | |
Octopus.Action[Deploy Cardio API - Host].Azure.CloudServiceName | |
Octopus.Action[Deploy Cardio API - Host].Azure.Endpoint | |
Octopus.Action[Deploy Cardio API - Host].Azure.Slot | |
Octopus.Action[Deploy Cardio API - Host].Azure.StorageAccountName | |
Octopus.Action[Deploy Cardio API - Host].Azure.SubscriptionId | |
Octopus.Action[Deploy Cardio API - Host].Azure.SwapIfPossible | |
Octopus.Action[Deploy Cardio API - Host].Azure.UploadedPackageUri |
# --- settings --- | |
$feedUrlBase = "https://www.nuget.org/api/v2/" | |
# the rest will be params when converting to funclet | |
$latest = $true | |
$overwrite = $false | |
$top = 5000 #use $top = $null to grab all | |
$destinationDirectory = join-path ([Environment]::GetFolderPath("MyDocuments")) "NuGetLocal" | |
# --- locals --- | |
$webClient = New-Object System.Net.WebClient |
using System; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using EasyNetQ; | |
namespace EasynetQ.SubRpc.Deadlock | |
{ | |
internal class Program | |
{ | |
private static void Main(string[] args) |