This file contains hidden or 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
import org.eclipse.jgit.transport.URIish | |
def repositoryPath = "kenan.visualstudio.com/DefaultCollection/TestProject/_git/IconSet" | |
def url = "https://$repositoryPath" | |
def branch = "master" | |
def credentialsId = '44995f55-2f49-4cad-905d-b06c32b5e5bd' | |
node { | |
stage('Initialize'){ |
This file contains hidden or 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
import org.eclipse.jgit.transport.URIish | |
def repositoryPath = "kenan.visualstudio.com/DefaultCollection/TestProject/_git/IconSet" | |
def url = "https://$repositoryPath" | |
def branch = "master" | |
def credentialsId = '44995f55-2f49-4cad-905d-b06c32b5e5bd' | |
node { | |
stage('Initialize'){ |
This file contains hidden or 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
//Stop all Docker containers | |
docker stop $(docker ps -a -q) | |
//Kill all Docker containers | |
docker kill $(docker ps -q) | |
//Remove all Docker containers | |
docker rm $(docker ps -a -q) | |
//Remove all Docker images |
This file contains hidden or 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 StackExchange.Redis; | |
using System; | |
using System.Threading.Tasks; | |
namespace CSharp_From_EAP_To_TAP_With_Redis_PubSub | |
{ | |
class Program | |
{ | |
static SimphonyService _simphonyService; | |
static BroccoliService _broccoliService; |
This file contains hidden or 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 RabbitMQ.Client; | |
using RabbitMQ.Client.Events; | |
using System; | |
using System.Collections.Concurrent; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace PubSubTest1 | |
{ | |
class Program |
This file contains hidden or 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
//Uninstall just vagrant | |
//This will remove just the vagrant package itself. | |
sudo apt-get remove vagrant | |
//Uninstall vagrant and its dependencies | |
//To remove the vagrant package and any other dependant package which are no longer needed from Ubuntu. | |
sudo apt-get remove --auto-remove vagrant | |
This file contains hidden or 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
public static class TPLExtensions | |
{ | |
public static async Task<TResult[]> ForEachConcurrentAsync<TItem, TResult>(this IEnumerable<TItem> enumerable, Func<TItem, Task<TResult>> action, int? maxDegreeOfParallelism = null) | |
{ | |
if (maxDegreeOfParallelism.HasValue) | |
{ | |
using (var semaphoreSlim = new SemaphoreSlim(maxDegreeOfParallelism.Value, maxDegreeOfParallelism.Value)) | |
{ | |
var tasksWithThrottler = new List<Task<TResult>>(); |
This file contains hidden or 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
MASTER_NODE_IP="192.168.33.10" | |
WORKER_NODE_IP_START="192.168.33.10" | |
Vagrant.configure("2") do |config| | |
config.vm.define "masternode" do |node| | |
node.vm.box = "ubuntu/xenial64" | |
node.vm.hostname = "masternode" |
This file contains hidden or 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.Net; | |
class MainClass { | |
public static void Main (string[] args) | |
{ | |
string host = "www.kenanhancer.com"; | |
BlockingWithAsyncWaitHandle(host); |
This file contains hidden or 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.Net; | |
using System.Threading.Tasks; | |
class MainClass { | |
public static void Main (string[] args) { | |
CustomDnsWithEAP.GetHostEntryCompleted += CustomDnsWithEAP_GetHostEntryCompleted; | |
CustomDnsWithEAP.GetHostEntryAsync("www.kenanhancer.com"); |