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
#!/bin/bash | |
set -e | |
# Download the file | |
wget https://github.com/prometheus/node_exporter/releases/download/v1.5.0/node_exporter-1.5.0.linux-amd64.tar.gz | |
# Extract the file | |
tar xvf node_exporter-1.5.0.linux-amd64.tar.gz |
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
#!/bin/bash | |
# Exit script if any command fails | |
set -e | |
# Update packages and install required dependencies | |
echo "Updating packages and installing dependencies..." | |
sudo apt-get update | |
sudo apt-get install -y apt-transport-https ca-certificates curl gnupg lsb-release |
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
#!/bin/bash | |
set -e | |
# Download the file | |
wget https://github.com/prometheus/node_exporter/releases/download/v1.5.0/node_exporter-1.5.0.linux-amd64.tar.gz | |
# Extract the file | |
tar xvf node_exporter-1.5.0.linux-amd64.tar.gz |
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
#!/bin/bash | |
set -e | |
# Download the file | |
wget https://github.com/prometheus/node_exporter/releases/download/v1.5.0/node_exporter-1.5.0.linux-amd64.tar.gz | |
# Extract the file | |
tar xvf node_exporter-1.5.0.linux-amd64.tar.gz |
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
import 'package:flutter/material.dart'; | |
import 'package:isar/isar.dart'; | |
import 'package:path_provider/path_provider.dart'; | |
part 'main.g.dart'; | |
@Collection() | |
class Teacher { | |
int? id; |
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
// codec.ts | |
import * as metadataDefinition from "./old/definitions/metadata" | |
function createScaleCodec(): {codec: Codec, versions: Ti[]} { | |
let registry = new OldTypeRegistry(metadataDefinition) | |
} | |
// ./old/definitions/metadata/index.ts | |
import type {OldTypes} from "../../types" | |
import {ScaleInfoTypes} from "./base" |
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
{ | |
"name": "Realm3", | |
"id": "realm3", | |
"chainType": "Live", | |
"bootNodes": [], | |
"telemetryEndpoints": [ | |
[ | |
"/dns/telemetry.polkadot.io/tcp/443/x-parity-wss/%2Fsubmit%2F", | |
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
./target/release/substrate-stencil \ | |
--node-key <node-key> \ | |
--base-path /tmp/bootnode1 \ | |
--chain node/specs/customSpecRaw.json \ | |
--name bootnode1 | |
./target/release/substrate-stencil \ | |
--base-path /tmp/validator1 \ | |
--chain node/specs/customSpecRaw.json \ | |
--bootnodes /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWLpaJQ7dygwdTzoCM2VLtcMJPCmQWe4U5GDETLCjKq5W1 \ |
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
import 'dart:typed_data'; | |
import 'package:hive/hive.dart'; | |
class Test { | |
Test() { | |
_init(); | |
} | |
_init() async { |
NewerOlder