Skip to content

Instantly share code, notes, and snippets.

View buraktabn's full-sized avatar
🙃

Burak buraktabn

🙃
View GitHub Profile
#!/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
#!/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
#!/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
#!/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
@buraktabn
buraktabn / main.dart
Created July 20, 2022 23:00
Isar Link Demo
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;
// 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"
{
"name": "Realm3",
"id": "realm3",
"chainType": "Live",
"bootNodes": [],
"telemetryEndpoints": [
[
"/dns/telemetry.polkadot.io/tcp/443/x-parity-wss/%2Fsubmit%2F",
0
]
./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 \
@buraktabn
buraktabn / expiration_box.dart
Last active June 24, 2022 19:00
Hive ExpirationBox
import 'dart:typed_data';
import 'package:hive/hive.dart';
class Test {
Test() {
_init();
}
_init() async {