function test-certificate($domain) {
$domain += ":443"
openssl s_client -connect $domain | sls "certificate chain" -Context 5
openssl
openssl s_client -connect github.com:443 | openssl x509 -noout -enddate
s_client
opens the client that is awaiting for the inputq
into the script for the s_client
to end gracefully and immediatellywrite-output "q" | ...
echo
is alias for write-output
cmdletecho "q" | openssl s_client -connect github:443
The aim is to document the security/networking concept of certificate chain based on the superb Troubleshooting with Wireshark: Analyzing and Decrypting TLS Traffic in Wireshark (Using HTTPs)
The concern is documenting ensuring pytest
works as expected in vscode
*_test.py
test_foo()
_
ptw
for real-time testing there if neededCTRL
+ ALT
+ SHIFT
+ T
the question is, what is the definition and opposition of unit tests, where is it coming from and what is the structure
From my own experience over many companies and teams over the years, most people who try to unit test their code either give up at some point or don’t actually perform unit tests. They waste a lot of time writing problematic tests and then give up when they have to waste a lot of time maintaining them or worse, not TRUSTING their results.
— 1 The basics of unit testing — The Art of Unit Testing, Third Edition MEAP…
The concern is documenting the need to remove whitespace with regex
… and how to get this information without leaving VSCode, ideally (i.e. with a powershell script and some free-tier of an dedicated web service)
The doc’s aim is to write a procedure for finding a method for finding a square root according to Heron of Alexandria.
_tryThis
is a recursive1
with return _truncate(_tryThis(1))
def sqrt(x):
def _average(x, y):
return (x+y)/2 def _square(x):
return x*x def _abs(x):
if x < 0:
return -x
elif x == 0:
return 0
else:
return x def _improve(guess):
return _average(guess, (x/guess)) def _goodEnough(guess):
return _abs(_square(guess) - x) < 0.001 def _tryThis(guess):
if _goodEnough(guess):
return guess
else:
return _tryThis(_improve(guess)) def _truncate(n, decimals=3):
multiplier = 10 ** decimals
return int(n * multiplier) /…
The concern is documenting cookies, essential to understanding for the modern BI.
The concern is documenting my recent enjoyment of switching for personal use when I just run
shp com.acme-prod1 c
… from anywhere and this pulls the recent updates from the acme
repo + immediately opens a config file I want to check
PS C:\> Get-ChildItem `
-Path $env:windir `
-Filter *.dll `
-Recurse
In general, the community feels you should avoid using those backticks as “line continuation characters” when possible. …
About