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
foreach (char ch in MESSAGE) | |
result += Convert.ToString((int)ch,2); |
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.Data; | |
using ClosedXML.Excel; | |
using System.Linq; | |
using System.IO; | |
namespace datatablepractice | |
{ | |
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
using System.Net.Http; | |
using System.Security.Authentication; | |
namespace Auth_ConnectionLib | |
{ | |
public static class SslHandle | |
{ | |
public static HttpClientHandler FixInvalidSsl() | |
{ | |
var httpClientHandler = new HttpClientHandler |
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
//2 Scenarios. Either returning a list of json objects you can deserailze to .net objects | |
// OR returning a single json object, but the first property of the object is a list, and inside the list is the value you actually want. | |
HttpResponseMessage response = await client.GetAsync(targeturl); | |
response = await client.GetAsync(finalRequestUri); | |
var content = response.Content; | |
// ... Read the string. | |
string json = await content.ReadAsStringAsync(); | |
JObject rss = JObject.Parse(json); | |
//1st scenario; i am returning an array of json objects, that will later be desearilzed. |
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; | |
namespace BinarySearch | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int[] MyArray = new int[]{1,2,3,4,5,6,7}; | |
//Console.WriteLine(); |
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
* 8 vlans, 24 hosts, Each vlan has a test file. | |
sd=sd1,host=vdbench1,lun=/nfs/3222/testfile1,size=1G | |
sd=sd2,host=vdbench1,lun=/nfs/3223/testfile1,size=1G | |
sd=sd3,host=vdbench1,lun=/nfs/3224/testfile1,size=1G | |
sd=sd4,host=vdbench1,lun=/nfs/3225/testfile1,size=1G | |
sd=sd5,host=vdbench1,lun=/nfs/3226/testfile1,size=1G | |
sd=sd6,host=vdbench1,lun=/nfs/3227/testfile1,size=1G | |
sd=sd7,host=vdbench1,lun=/nfs/3228/testfile1,size=1G |
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
ArgumentError | |
------------- | |
wrong number of arguments (given 0, expected 1) | |
PS C:\users\joseph.bollman\Desktop\LABS\Bollman_scripts\dd-windows> kitchen converge -l debug | |
-----> Starting Kitchen (v1.15.0) | |
D [Vagrant command] BEGIN (vagrant --version) | |
D [Vagrant command] END (0m0.00s) | |
D [Vagrant command] BEGIN (vagrant plugin list) | |
D [Vagrant command] END (0m0.00s) |
NewerOlder