Skip to content

Instantly share code, notes, and snippets.

# filter expired cert with "UBS" in Issuer:
Get-ChildItem cert:\ -Recurse | Where-Object {$_ -like "*UBS*" -and $_.NotAfter -lt (Get-Date)} | Select-Object -Property Issuer
# or only by keyword "UBS":
Get-ChildItem cert:\ -Recurse | Where-Object {$_ -like "*UBS*"} | Select-Object -Property Issuer, NotAfter
# run 1st cmd to check the result, if its OK you can remove it:
#!/bin/sh
### BEGIN INIT INFO
# Provides: hass
# Required-Start: $local_fs $network $named $time $syslog
# Required-Stop: $local_fs $network $named $time $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: Home\ Assistant
### END INIT INFO
#!/usr/bin/env bash
# names of latest versions of each package
export VERSION_PCRE=pcre-8.44
export VERSION_OPENSSL=openssl-1.1.1
export VERSION_NGINX=nginx-1.18.0
# URLs to the source directories
export SOURCE_OPENSSL=https://www.openssl.org/source/
#export SOURCE_PCRE=ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/