Skip to content

Instantly share code, notes, and snippets.

View kritchie's full-sized avatar

kritchie

  • Montreal, QC, Canada
View GitHub Profile
@kritchie
kritchie / Timestamp
Created August 12, 2019 20:36
Timestamp
# Generate a timestamp, useful for versioning some stuff
#
# You can also create an alias in the alias file.
# >>> alias timestamp="date +%Y%m%d-%H%M%S-%N"
timestamp="date +%Y%m%d-%H%M%S-%N"
@kritchie
kritchie / TLS certificate expiration
Last active August 12, 2019 20:35
Bash snippets
#
# Get TLS certificates expiration
# Useful to verify when TLS certificates will expire
readonly BLUE='\033[0;34m'
readonly RED='\033[0;31m'
readonly NC='\033[0m' # No Color
validate(){
if [[ -z "$1" || -z "$2" ]]; then
echo "Validate needs 2 arguments: validate [host] [port]"
@kritchie
kritchie / keybase.md
Created July 18, 2019 20:14
keybase identity

Keybase proof

I hereby claim:

  • I am kritchie on github.
  • I am kritchie (https://keybase.io/kritchie) on keybase.
  • I have a public key ASCDcarU5JSdq9oaU2U7l1plpredqETWZkJrJplCdTQeEgo

To claim this, I am signing this object: