Skip to content

Instantly share code, notes, and snippets.

View chanphy's full-sized avatar
🎯
Focusing

chanphy

🎯
Focusing
  • Tokyo, Xiamen
View GitHub Profile
@chanphy
chanphy / main.dart
Last active February 14, 2023 10:20
Java-to-Dart codelab: Starting point
void main() {
for (int i = 0; i < 5; i++) {
print('hello ${i + 1}');
}
var bike = new Bicycle(2, 1);
print(bike);
bike.applyBrake(1);
print(bike);
bike.speedUp(8);
print(bike);
@chanphy
chanphy / how-to-install-openssl-1.1.1-on-centos-7.md
Created April 9, 2022 10:34
How to install openssl 1.1.1 on CentOS 7

How To Install OpenSSL 1.1.1 on CentOS 7

This tutorial goes through how to install openssl 1.1.1 on CentOS 7, since the yum repo only installs up to openssl 1.0.

Requirements

Upgrade the system

yum -y update
@chanphy
chanphy / JWKS-DECODE.sh
Created February 28, 2022 10:10 — forked from shigeya/JWKS-DECODE.sh
JWKS decoder for Vaccine Certificate JWKS
#!/bin/sh
#
# Following two commands required
# jq -- https://stedolan.github.io/jq/ # or brew install jq
# base64 -- https://www.fourmilab.ch/webtools/base64/ # or brew install base64
curl -s -O https://vc.vrs.digital.go.jp/issuer/.well-known/jwks.json
jq '.keys[0]["x5c"][0]' < jwks.json | sed -e s/\"//g > issuer.der.base64url
jq '.keys[0]["x5c"][1]' < jwks.json | sed -e s/\"//g > ca.der.base64url
@chanphy
chanphy / TestDemo
Created September 10, 2019 08:12
TestDemo
Android TestDemo