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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>net5.0</TargetFramework> | |
</PropertyGroup> | |
<ItemGroup> | |
<PackageReference Include="NuGet.Client" Version="4.2.0" /> | |
<PackageReference Include="NuGet.Configuration" Version="5.8.1" /> |
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
/// <summary> | |
/// A simple windowed rate counter. | |
/// </summary> | |
/// <remarks> | |
/// Tracks an event count over a specific (moving) period of time. Locking omitted for clarity. | |
/// </remarks> | |
public class RateCounter | |
{ | |
/// <summary> | |
/// Timestamps representing each event tracked by the counter. |
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
using CommandLine; | |
using CommandLine.Text; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace SubVerbs | |
{ | |
class Program | |
{ |
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
using Microsoft.Extensions.DependencyInjection; | |
using Hangfire; | |
using System; | |
public class DependencyInjectionActivator | |
: JobActivator | |
{ | |
readonly IServiceProvider _serviceProvider; | |
public DependencyInjectionActivator(IServiceProvider serviceProvider) |
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
using System; | |
using System.Diagnostics; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Microsoft.Extensions.Logging; | |
using OmniSharp.Extensions.LanguageServer.Client; | |
using OmniSharp.Extensions.LanguageServer.Client.Processes; | |
using OmniSharp.Extensions.LanguageServer.Protocol.Models; | |
namespace SampleClient |
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
using Octopus.Client.Model; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
namespace OctoMon | |
{ | |
public class DeploymentTask | |
{ |
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
using HTTPlease; | |
using KubeClient; | |
using KubeClient.Models; | |
using KubeClient.ResourceClients; | |
using Newtonsoft.Json; | |
using Serilog; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net.Http; |
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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>netcoreapp2.1</TargetFramework> | |
<LangVersion>latest</LangVersion> | |
</PropertyGroup> | |
<ItemGroup> | |
<PackageReference Include="Buildalyzer" Version="0.4.0" /> | |
<PackageReference Include="Buildalyzer.Workspaces" Version="0.4.0" /> |
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
#! /usr/bin/env python | |
import paramiko | |
import pprint | |
from st2common.runners.base_action import Action | |
from StringIO import StringIO | |
class JumpboxExec(Action): | |
def run(self, command, hosts): |
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
#!/usr/bin/env python3 | |
import os | |
import paramiko | |
ssh_key_filename = os.getenv('HOME') + '/.ssh/id_rsa' | |
jumpbox_public_addr = '168.128.52.199' | |
jumpbox_private_addr = '10.0.5.10' | |
target_addr = '10.0.5.20' |
NewerOlder