Skip to content

Instantly share code, notes, and snippets.

View riseno's full-sized avatar
💭
I may be slow to respond.

Ryan Chan riseno

💭
I may be slow to respond.
  • FWD Group
  • Hong Kong
View GitHub Profile
@riseno
riseno / callback.json
Created March 3, 2020 16:08
ValootPay async transaction notification data
{
"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,
# 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:
@riseno
riseno / clean-untagged-images.sh
Last active February 4, 2019 21:11
Clean up untagged images
docker rmi -f $(docker images | grep "<none>" | awk "{print \$3}")
@riseno
riseno / p12_to_pem.sh
Created June 27, 2018 22:00
extract p12 to pem and erase pem password
# 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