Skip to content

Instantly share code, notes, and snippets.

View takurx's full-sized avatar

Yoshihiro Nakagawa takurx

View GitHub Profile
@takurx
takurx / log_of_kong_api_gateway-8.md
Created June 16, 2024 22:36
try to log kong and fiware

1. kong

sudo curl -Ls https://get.konghq.com/quickstart | sudo bash

2. prepare check

curl -X GET http://54.238.24.118:4061/version
@takurx
takurx / log_of_kong_api_gateway-7.md
Created June 9, 2024 22:30
try to log kong and fiware, it need domain name resolution?

log_of_kong_api_gateway-7

1. kong, set up, service, route

curl -i -s -X POST http://localhost:8001/services \
  --data name=example_service \
  --data url='http://httpbin.org'

curl -X GET http://localhost:8001/services/example_service
@takurx
takurx / log_of_kong_api_gateway-6.md
Last active June 2, 2024 22:56
try to log kong and fiware

log_of_kong_api_gateway-6

fiware command

curl -X GET \
    http://localhost:1026/v2/entities \
    -H 'fiware-service: atosioe' \
    -H 'fiware-servicepath: /lorattn'

try didkit

Refrence

Log

chino@chino-Legion-5-15IAH7H:~$ docker run ghcr.io/spruceid/didkit-cli:latest --help
docker: permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/create": dial unix /var/run/docker.sock: connect: permission denied.
@takurx
takurx / log_of_kong_api_gateway-2.md
Last active April 7, 2024 21:51
log_of_kong_api_gateway-2
@takurx
takurx / log_of_kong_api_gateway-1.md
Created March 18, 2024 23:59
try kong api gateway

Log

Kong/kong: 🦍 The Cloud-Native API Gateway and AI Gateway. https://github.com/Kong/kong

chino@chino-Legion-5-15IAH7H:~$   $ git clone https://github.com/Kong/docker-kong
$: command not found
chino@chino-Legion-5-15IAH7H:~$ git clone https://github.com/Kong/docker-kong
Cloning into 'docker-kong'...
@takurx
takurx / log_tutorials_NGSI-LD-0.md
Created February 12, 2024 21:14
test tutorials.NGSI-LD/tutorials.Understanding-At-Context

Log

chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822$ git clone https://github.com/FIWARE/tutorials.NGSI-LD.git
Cloning into 'tutorials.NGSI-LD'...
remote: Enumerating objects: 2824, done.
remote: Counting objects: 100% (226/226), done.
remote: Compressing objects: 100% (137/137), done.
remote: Total 2824 (delta 157), reused 123 (delta 89), pack-reused 2598
Receiving objects: 100% (2824/2824), 2.77 MiB | 9.17 MiB/s, done.
@takurx
takurx / log_prepare_apischema-1.md
Created October 23, 2023 22:08
log, test apischema #2

Log

retry on Ubuntu 22.04

chino@chino-ThinkPad-E495:~/Works/hibimemo2/sikulix$ python -V
Python 3.10.12
chino@chino-ThinkPad-E495:~/Works/hibimemo2/sikulix$ pip install apischema
Command 'pip' not found, but can be installed with:
sudo apt install python3-pip
@takurx
takurx / log_test_orion-ld_docker-1.md
Created October 16, 2023 22:26
log orion-ld docker
@takurx
takurx / log_prepare_apischema.md
Created October 9, 2023 04:58
log, test apischema

Log

chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822$ python ./example_apischema.py 
Traceback (most recent call last):
  File "./example_apischema.py", line 5, in <module>
    import pytest
ModuleNotFoundError: No module named 'pytest'
chino@chino-Legion-5-15IAH7H:~/LoRaWorks_230822$ pip install pytest
Collecting pytest