docker run --rm \
-v /private/var/services/prism:/root/apis \
-p 4010:4010 \
-t stoplight/prism \
mock -h 0.0.0.0 /root/apis/emass.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"title": "Medical Recipe NFT", | |
"type": "object", | |
"properties": { | |
"tokenId": { | |
"type": "string", | |
"description": "Unique identifier for the NFT" | |
}, | |
"recipeName": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------------------- MODULE BlockchainTransactions --------------------------- | |
EXTENDS Integers, Sequences, TLC | |
(*-- Constants used in the specification --*) | |
CONSTANT Clients, KafkaNodes, SmartContracts, StorageNodes, CacheNodes, LokkaServices | |
(*-- The set of all possible transactions --*) | |
VARIABLE transactions, messageBroker, blockchainStorage, distributedCache, blocks | |
(* -- Define the initial state of the blockchain system --*) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"token_id": "pbom123", | |
"timestamp": "2023-11-01T12:30:00Z", | |
"package": { | |
"package_id": "pkg789", | |
"package_name": "example_app" | |
}, | |
"pull_requests": [ | |
{ | |
"id": "pr456", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"token_id": "string", | |
"timestamp": "string", | |
"package": { | |
"package_id": "string", | |
"package_name": "string" | |
}, | |
"pull_requests": [ | |
{ | |
"id": "string", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"Title": "Do Not Allow SSH Environment Options", | |
"Rule": "xccdf_org.ssgproject.content_rule_sshd_do_not_permit_user_env", | |
"Result": "pass" | |
}, | |
{ | |
"Title": "Enable PAM", | |
"Rule": "xccdf_org.ssgproject.content_rule_sshd_enable_pam", | |
"Result": "pass" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "NFT Token Schema", | |
"type": "array", | |
"items": { | |
"type": "object", | |
"properties": { | |
"Title": { | |
"type": "string", | |
"description": "Title of the vulnerability scan result" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install podman | |
❯❯ brew install podman | |
# initializes a new Linux runtime envirounment which known as podman machine | |
# podman behind the scene uses quem emulator to provide linux runtem envirounment | |
# --cpus 4 (specify cpus) | |
# --memory=6144 (specify memory) | |
❯❯ podman machine init --cpus 4 --memory=6144 | |
# list podman machines |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create endpoints | |
kubectl apply -f endpoint1.yaml | |
kubectl apply -f endpoint2.yaml | |
# create two services | |
❯❯ kubectl get svc | |
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE | |
bassa ClusterIP None <none> 5432/TCP 10m | |
rahasak ClusterIP None <none> 5432/TCP 12m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: monitoring.coreos.com/v1 | |
kind: ServiceMonitor | |
metadata: | |
name: blackbox-exporter | |
spec: | |
endpoints: | |
- interval: 1m | |
path: /probe | |
scrapeTimeout: 10s | |
params: |
NewerOlder