Skip to content

Instantly share code, notes, and snippets.

View pepoviola's full-sized avatar
💭
🦀

Javier Viola pepoviola

💭
🦀
View GitHub Profile
@pepoviola
pepoviola / exporter.rs
Created July 15, 2021 13:25 — forked from eduardonunesp/exporter.rs
pdf-exporter
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;
@pepoviola
pepoviola / init.sh
Last active February 19, 2022 12:41
Zombienet example native provider
#!/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
@pepoviola
pepoviola / get_ip.sh
Created August 24, 2023 13:24 — forked from LozanoMatheus/get_ip.sh
Get Linux IP without any tool
#!/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
@pepoviola
pepoviola / bash_strict_mode.md
Created October 16, 2023 19:13 — forked from mohanpedala/bash_strict_mode.md
set -e, -u, -o, -x pipefail explanation