Skip to content

Instantly share code, notes, and snippets.

Endpoint: /upload

  • Method: POST
  • Header:
    • Authorization: String
    • Content-Type: multipart/form-data
  • Body
    • upload: File
  • Response
    • error_code: Number
  • message: String
@viettd56
viettd56 / docker-cleanup-resources.md
Created November 14, 2018 03:16 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@viettd56
viettd56 / README.md
Last active November 6, 2019 10:09 — forked from huetran97/Item.md
Inventory

Headers

  • Authorization: String {staff app token}
@viettd56
viettd56 / jwtRS256.sh
Created February 19, 2022 10:32 — forked from ygotthilf/jwtRS256.sh
How to generate JWT RS256 key
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub