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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/xenial64" | |
config.vm.network "private_network", ip: "192.168.33.23" | |
# To access Dashboard from your local workstation you must create a secure channel to your Kubernetes cluster. |
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.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Net.Sockets; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace ConsoleApp6 |
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
var amqp = require('amqplib/callback_api'); | |
var request = require('request'); | |
request.post('http://localhost:3000/messages', function (error, response, body) { | |
console.log(response.body); | |
// Connect to the server and wait for the queue | |
amqp.connect('amqp://192.168.33.19', (err, conn) => { |
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
const request = require('request'); | |
let gitUserProfileDetails; | |
const delay = (duration) => new Promise(resolve => setTimeout(resolve, duration)); | |
const getData = (url) => { | |
return new Promise((resolve, reject) => { |
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
const request = require('request'); | |
let gitUserProfileDetails; | |
const delay = (duration) => new Promise(resolve => setTimeout(resolve, duration)); | |
const getData = (url) => { | |
return new Promise((resolve, reject) => { |
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
var request = require('request'); | |
var gitUserProfileDetails; | |
function delay(duration) { | |
return new Promise(resolve => setTimeout(resolve, duration)); | |
} | |
function getData(url) { |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/xenial64" | |
config.vm.hostname = "DockerMachine" | |
config.vm.network "private_network", ip: "192.168.33.19" |
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.Threading.Tasks; | |
using System.Net; | |
class MainClass { | |
public static void Main (string[] args) { | |
MainAsync(args); | |
Console.WriteLine("Main thread is working."); |
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"); |
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); |