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
public class CertificateExpireChecker | |
{ | |
private TimeSpan TimeOut => TimeSpan.FromSeconds(5); | |
public string Url { get; } | |
public DateTime LimitDate => DateTime.Now; | |
public bool IsExists => Certificate != null; | |
public X509Certificate2 Certificate { get; private set; } | |
public string CommonName => Certificate?.SubjectName.Name.Split(',').FirstOrDefault(x => x.StartsWith("CN=")); | |
public TimeSpan? DaysLeft => ExpiredDate - LimitDate; |
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
/* | |
Author: https://chris.koester.io/index.php/2015/07/16/get-data-from-twitter-api-with-power-query/ | |
Twitter REST API | |
https://dev.twitter.com/oauth/application-only | |
Requires establishing a Twitter application in order to obtain a Consumer Key & Consumer Secret | |
https://apps.twitter.com/ | |
IMPORTANT - The Consumer Key and Consumer secret should be treated as passwords and not distributed | |
*/ | |
let |