Skip to content

Instantly share code, notes, and snippets.

View oloko64's full-sized avatar

Reinaldo Rozato Junior oloko64

View GitHub Profile
@oloko64
oloko64 / download_file.rs
Created February 5, 2023 21:54 — forked from giuliano-macedo/download_file.rs
Download large files in rust with progress bar using reqwest, future_util and indicatif
// you need this in your cargo.toml
// reqwest = { version = "0.11.3", features = ["stream"] }
// futures-util = "0.3.14"
// indicatif = "0.15.0"
use std::cmp::min;
use std::fs::File;
use std::io::Write;
use reqwest::Client;
use indicatif::{ProgressBar, ProgressStyle};
@oloko64
oloko64 / linux-stickers.svg
Last active December 14, 2023 13:28
Some Linux Stickers
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.