Skip to content

Instantly share code, notes, and snippets.

View KalanaDananjaya's full-sized avatar

Kalana Dananjaya Wijethunga KalanaDananjaya

View GitHub Profile
@KalanaDananjaya
KalanaDananjaya / automated-endpoint.py
Created August 23, 2022 10:14
CIBA - Automated Approval Endpoint
from flask import Flask,jsonify,make_response, request
import json
from flask import Response
import mysql.connector
import os
ASSETS_DIR = os.path.dirname(os.path.abspath(__file__))
app = Flask('app')
@KalanaDananjaya
KalanaDananjaya / final-mtls-ciba-conformance-config.json
Last active August 10, 2022 11:05
Final MTLS conformance config
{
"alias": "MTLS_test_final",
"description": "new mtls test",
"automated_ciba_approval_url": "https://192.168.8.181:9000/automatedapproval?action={action}&token={auth_req_id}",
"server": {
"discoveryUrl": "https://192.168.8.181:9446/oauth2/token/.well-known/openid-configuration",
"jwks": {
"keys": [
{
"kty": "RSA",
@KalanaDananjaya
KalanaDananjaya / ciba-python-server.py
Created July 8, 2022 04:41
Simple python server for hosting custom key store and CIBA approval endpoint
from flask import Flask,jsonify,make_response, request
import json
from flask import Response
import mysql.connector
import os
ASSETS_DIR = os.path.dirname(os.path.abspath(__file__))
app = Flask('app')
@KalanaDananjaya
KalanaDananjaya / openid-configuration.json
Created June 15, 2022 06:10
WSO2 IS Well Known Configuration for CIBA Conformance suite
{
"request_parameter_supported":true,
"claims_parameter_supported":true,
"scopes_supported":[
"openid",
"accounts",
"payments"
],
"check_session_iframe":"https://toolkit-conformance-suite:9446/oidc/checksession",
"issuer":"https://toolkit-conformance-suite:9446/oauth2/token",
@KalanaDananjaya
KalanaDananjaya / debug-log.txt
Created June 8, 2021 09:22
terraform-provider-azurerm log
2021-06-08T14:44:59.053+0530 [DEBUG] plugin.terraform-provider-azurerm_v2.49.0_x5: {"properties":{"roleName":"AcrPull","type":"BuiltInRole","description":"acr pull","assignableScopes":["/"],"permissions":[{"actions":["Microsoft.ContainerRegistry/registries/pull/read"],"notActions":[],"dataActions":[],"notDataActions":[]}],"createdOn":"2018-10-22T19:01:56.8227182Z","updatedOn":"2018-11-13T23:22:03.2302457Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/***/providers/Microsoft.Authorization/roleDefinitions/****","type":"Microsoft.Authorization/roleDefinitions","name":"****"}
2021-06-08T14:44:59.062+0530 [WARN] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-06-08T14:44:59.075+0530 [DEBUG] plugin: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/azurerm/2.49.0/linux_amd64/terraform-provider-azurerm_v2.49.0_x5 pid=92501
2021-06-08T14:44:59.075+0530 [DEBUG] plugin: plugin exited
Error: rpc error: code =
@KalanaDananjaya
KalanaDananjaya / mysqld
Created July 15, 2020 13:20
CentOS MySQLD service file
#!/bin/sh
#
# mysqld This shell script takes care of starting and stopping
# the MySQL subsystem (mysqld).
#
# chkconfig: - 64 36
# description: MySQL database server.
# processname: mysqld
# config: /etc/my.cnf
# pidfile: /var/run/mysqld/mysqld.pid
@KalanaDananjaya
KalanaDananjaya / FileTransferTask.yaml
Created April 8, 2020 17:22
FileTransferTask type Firetask
- fw_id: 0
name: Transfer the input files
spec:
_tasks:
- _fw_name: FileTransferTask
dest: /tmp
files: [/home/kalana/demo/A/letter.png]
mode: copy
@KalanaDananjaya
KalanaDananjaya / CommandLineTask.yaml
Created April 8, 2020 17:21
CommandLineTask Firetask type
- fw_id: 1
name: 90 rotated A
spec:
_tasks:
- _fw_name: CommandLineTask
command_spec:
command: [convert, -swirl]
letter: {source: letter}
swirl angle:
source: {type: data, value: 90}
@KalanaDananjaya
KalanaDananjaya / image-swirl-workflow.yaml
Last active April 8, 2020 17:22
A Fireworks WMS workflow for swirling an image
fws:
- fw_id: 0
name: Transfer the input files
spec:
_tasks:
- _fw_name: FileTransferTask
dest: /tmp
files: [/home/kalana/A/letter.png]
mode: copy
- fw_id: 1

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream