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
{ | |
"object": "Transaction", | |
"id": "mr893qdnw6d6v7og", | |
"status": "open", | |
"currency": "HKD", | |
"amount": 0.01, | |
"message": "OK", | |
"created_at": "2018-02-03 11:56:36 +00:00", | |
"updated_at": "2018-02-03 11:56:36 +00:00", | |
"expired_at": null, |
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
# MIT License | |
# | |
# Copyright (c) 2016 Samuel Rounce | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
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
docker rmi -f $(docker images | grep "<none>" | awk "{print \$3}") |
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
# extract p12 to pem | |
openssl pkcs12 -clcerts -nokeys -in apiclient_cert.p12 -out apiclient_cert.pem | |
openssl pkcs12 -nocerts -in apiclient_cert.p12 -out apiclient_key.pem | |
# erase pem password | |
openssl rsa -in apiclient_key.pem -out apiclient_key_no_password.pem | |
openssl x509 -in apiclient_cert.pem -out apiclient_cert_no_password.pem |