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
use std::fs::File; | |
use std::io::{prelude::*, BufReader, Write}; | |
use std::process::Command; | |
use actix_multipart::Multipart; | |
use actix_web::{ | |
get, http::StatusCode, post, web, App, Error, HttpResponse, HttpServer, Responder, | |
}; | |
use futures::{StreamExt, TryStreamExt}; | |
use tempdir::TempDir; |
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
#!/usr/bin/env bash | |
set -euxo pipefail | |
# get zombienet | |
curl -L -O https://github.com/paritytech/zombienet/releases/download/v1.2.14/zombienet-linux | |
chmod +x zombienet-linux | |
# get polkadot | |
curl -L -O https://github.com/paritytech/polkadot/releases/download/v0.9.15-1/polkadot |
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
#!/usr/bin/env bash | |
## Get the primary and secundary IPs | |
awk '/\|--/ && !/\.0$|\.255$/ {print $2}' /proc/net/fib_trie | |
## Get only the primary IPs | |
awk '/32 host/ { print i } {i=$2}' /proc/net/fib_trie |
OlderNewer