# human readable crt file
openssl x509 -in stackexchangecom.crt -text -noout
# human readable pem file
openssl x509 -in cert.pem -text -noout
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
#!/usr/bin/env bash | |
# Reset Docker to a clean vanilla state. Will destroy all containers, images, networks, volumes, and cache. | |
[ $(docker ps | wc -l) -ne 1 ] && echo "Stopping all containers..." && docker stop $(docker ps | sed -n '1d;p' | awk -F" " '{print $1}') | |
[ $(docker ps -a | wc -l) -ne 1 ] && echo "Deleting all containers..." && docker rm $(docker ps -a | sed -n '1d;p' | awk -F" " '{print $1}') | |
[ $(docker images | wc -l) -ne 1 ] && echo "Deleting all images..." && docker image rm $(docker images | sed -n '1d;p' | awk -F" " '{print $3}') | |
echo "Pruning networks, volumes, and cache..." && docker system prune -a -f --volumes | |
echo "Docker is back to Vanilla... COMPLETE!" |
There are numerous reasons you may need to use multiple SSH keys for accessing GitHub and BitBucket
You may use the same computer for work and personal development and need to separate your work.
When acting as a consultant, it is common to have multiple GitHub and/or BitBucket accounts depending on which client you may be working for.
You may have different projects you're working on where you would like to segregate your access.
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
package com.nhn.jwt; | |
import com.auth0.jwt.JWT; | |
import com.auth0.jwt.algorithms.Algorithm; | |
import com.auth0.jwt.interfaces.ECDSAKeyProvider; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import com.google.common.collect.Maps; | |
import com.nimbusds.jose.*; | |
import com.nimbusds.jose.crypto.ECDSASigner; | |
import com.nimbusds.jose.jwk.Curve; |