I hereby claim:
- I am richardslater on github.
- I am richardslater (https://keybase.io/richardslater) on keybase.
- I have a public key ASB4g0VO17PTCu6I51OBo5Jy2TZh_LksBGxKZlNXndD2UQo
To claim this, I am signing this object:
public class X509CertificateRepository { | |
public IEnumerable<X509Certificate2> FindBySubjectName(StoreName storeName, StoreLocation storeLocation, string subject) { | |
var store = new X509Store(storeName, storeLocation); | |
store.Open(OpenFlags.ReadOnly); | |
var certificates = store.Certificates.Find(X509FindType.FindBySubjectName, subject, validOnly: false); | |
foreach (var certificate in certificates) { | |
yield return certificate; | |
} | |
store.Close(); | |
} |
I hereby claim:
To claim this, I am signing this object:
function Test-Url($Target) { | |
$result = $null; | |
try { | |
$result = Invoke-Webrequest -Uri $Target -MaximumRedirection 0 -UseBasicParsing -ErrorAction SilentlyContinue | |
} catch {} | |
return $result | ` | |
Select-Object @{name='Result';expression={$mark}}, ` | |
@{name='Target';expression={$Target}}, ` | |
StatusCode, ` | |
@{name='Redirect';expression={if (($_.StatusCode -gt 300) -And ($_.StatusCode -lt 399)) { $result.Headers["Location"] } else { $null }}} |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Go-Live Plan</title> | |
<meta name="description" content="Go-live Plan"> | |
<meta name="author" content="Richard Slater"> | |
<meta http-equiv="refresh" content="3000"> |
Get-WindowsCapability -Online | ? Name -like 'OpenSSH*' |
var depths = File.ReadAllLines(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "input.txt")).Select(x => Int32.Parse(x)); | |
// part 1 | |
depths | |
.Skip(1) | |
.Zip(depths, (curr, prev) => curr > prev) | |
.Count(x => x == true) | |
.Dump("Part 1: Depths larger than previous depth"); | |
// part 2 |
Function Format-IP ($ip) { | |
$octets = $ip.Split(".") | Select-Object @{label="Octet";expression={ [Int32]::Parse($_).ToString("000") }} | |
return [String]::Join(".", $octets.Octet) | |
} | |
$ips = Import-Csv .\ru.csv | Select-Object -Property Start, End, Notes | |
$output = $ips | Select-Object @{label="Start";expression={ Format-IP $_.Start }}, @{label="End";expression={ Format-IP $_.End }}, notes | |
$output | ForEach-Object { "{0} - {1} , 000 , {2}" -f $_.Start, $_.End, $_.Notes } |
from google.colab import drive | |
drive.mount('/content/drive') |
Linking my account richardslater on GitHub with my address 0x0860f22da6ba75627ddad10ad198ffb215a8fe76 on EVM in mycryptoprofile.io, and the challenge code is: dda32788572262c2df8133ca19e79e9a. #LitentryVerifyMyAddress