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
# put solana cli inside ~/.solana directory | |
mkdir ~/.solana | |
cd ~/.solana | |
# download and unzip binary | |
wget https://github.com/solana-labs/solana/releases/download/v1.8.5/solana-release-x86_64-apple-darwin.tar.bz2 | |
tar jxf solana-release-x86_64-apple-darwin.tar.bz2 |
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
# GPG keys | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 | |
# list file for MongoDB | |
echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list | |
# install | |
sudo apt-get update | |
sudo apt-get install -y mongodb-org |
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
# generate cluster secret | |
export CLUSTER_SECRET=$(od -vN 32 -An -tx1 /dev/urandom | tr -d ' \n') | |
echo $CLUSTER_SECRET | |
# this is the generated cluster secret | |
e23e876e6742615eca9aefdc05943fa0d1bbc18f7d0a4f27e22ff8931fc56624 |
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
version: '3.8' | |
services: | |
vault-consul: | |
image: erangaeb/vault-consul:0.1 | |
ports: | |
- 8200:8200 | |
environment: | |
- VAULT_ADDR=http://127.0.0.1:8200 | |
- VAULT_API_ADDR=http://127.0.0.1:8200 |
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
# the default docker0 bridge inside minikube | |
minikube ssh | |
ifconfig | |
>> output | |
docker0 Link encap:Ethernet HWaddr 02:42:E1:6D:15:33 | |
inet addr:172.17.0.1 Bcast:172.17.255.255 Mask:255.255.0.0 | |
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 | |
RX packets:311191 errors:0 dropped:0 overruns:0 frame:0 | |
TX packets:307842 errors:0 dropped:0 overruns:0 carrier:0 |
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
# by default minikube alloca 2 cpus and 2 gb memory | |
minikube start | |
# delete existing minikube instance and allocate more memory/cpu on start up | |
minikube stop | |
minikube delete | |
minikube start --memory 8192 --cpus 4 | |
>> 🔥 Creating hyperkit VM (CPUs=4, Memory=8192MB, Disk=20000MB) | |
# keep existing minikube instance and allocate more memory/cpu |
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", |
NewerOlder