The aim of this tutorial🔍 is to show a productivity hack I am using when switching between writing and reading markdown (I don’t get images rendered always for markdown preview in VSCode, depending on what folder I am working from)
def
are a comma-separated listdef printMessage(message="Hello World"): print(message)>>> printMessage()
Hello World
ints
float
string
The aim of this how-to🏁 is fixing
verify error:num=20:unable to get local issuer certificate
when running certificate chain verifications using OpenSSL with for example
▶ openssl s_client -connect google.com:443
CONNECTED(00000184)
depth=1 C = US, O = Google Trust Services, CN = GTS CA 1O1
verify error:num=20:unable to get local issuer certificate
cacert.pem
provided by curl - Extract CA Certs from MozillaInvoke-WebRequest https://curl.se/ca/cacert.pem -OutFile c:\cacert.pem
2. verify again by using -CAfile
flag and the absolute path
▶ openssl s_client -connect google.com:443 -CAfile c:\cacert.pemCONNECTED(00000184) depth=2 OU = GlobalSign Root CA - R2, O = GlobalSign, CN = GlobalSign verify…
ctrl+space
inside vscode to auto-populate; just linking and file creation… all with a single command with a simple alias; in my workflow, I use pyf
and pof
for Python and Powershell, respectively
.\github\workflows\mail.yaml
Unlike lambda forms in other languages, where they add functionality, Python lambdas are only a shorthand notation if you’re too lazy to define a function.
Design and History FAQ — Python 3.9.1 documentation
lambda
instead of def
lambda args: expression
args
lambda
can be assigned to a binding and thus have “name”double = lambda x…
The aim of this tutorial🔍 is to offer both a hello-world and a real-world example of a successfully set up and executed JavaScript Github Action.
npm init -y
to initialize a node project by creating a package.json
Wrote to C:\Users\Admin\Documents\workspace\SNOW\hello-world-javascript-action\package.json:{
"name": "hello-world-javascript-action",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/pkutaj/hello-world-javascript-action.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/pkutaj/hello-world-javascript-action/issues"
},
"homepage": "https://github.com/pkutaj/hello-world-javascript-action#readme"
}
npm
to install 2 required packages from the toolkit@actions/core
…today I learnt… | as a support eng of the wonderful Snowplow Analytics, expect everything around modern (postmodern?) business intelligence