Skip to content

Instantly share code, notes, and snippets.

View raiguard's full-sized avatar

Caleb Heuer raiguard

View GitHub Profile
@raiguard
raiguard / download_with_progressbar.rs
Last active November 20, 2021 05:04
Synchronous file downloading
use anyhow::{anyhow, Result};
use std::cmp::min;
use std::fs::File;
use std::io::{Read, Write};
use indicatif::{ProgressBar, ProgressStyle};
use reqwest::blocking::Client;
pub fn download_file(client: &Client, url: &str, path: &str) -> Result<()> {
let mut res = client.get(url).send()?;
@raiguard
raiguard / Big Bertha 17.txt
Created March 26, 2019 16:49
Big Bertha (0.17)
0eNrtfdtyXUeS3a8o+OIXAq7KrKverBg7/DYPM2+ODgVIQhKiIYIGQc0oJvQB/hD/mL/E+wA4F4CVp9aqOke7ZTOiZ9Qtggu5s7Ky8p7/8ebd7ZfrT/c3Hx9+fHd39/c33//H/t98fvP9/zj4n5s/u3l/9/HpX3+++fnj1e3m3z38/un6zfdvbh6uf33z9s3Hq183/+vq/uHm9vb6/veLf7v6+e7jmz/evrn5+OH639987/942/3bt1efr+8vHr7c318/HPxV+eNvb99cf3y4ebi5fqLi8X/8/uPHL7++u75fsNsIb998uvu8/KWFjuU3LkAXfvnJ35d/qi7oH27ur98//WnYEPcKVFDQimMqiplxzIBiRhwzopiKYyb4kHDMDGISkAWEJL687iB/vf5w8+XXi+vb5cfvb95ffLq7vW5xwF1uD8tfxj8akN6xmNKFRG/RDqf/5X5/iT4/3F/d/PzLw8Xyj9uWJLlnWPcSVlqwCsNKIWADDpsI2IjDBgI24bBCwO7v1Psv979df7BA/bPek/oSNLVAC04rIwcVhvWEHIjDYQk5EI/DEnIg+B3zhByIkhombhWM1LaCEfSlym3Baj7S+7v17ubnrhLU54dAcpPABIq+bL80AnzMrHGyENf/bvSZqgRmhSnV9vc3TR76pfJ+J0mxLUmKPlU7liKE8m+VhP75q9Ivte6+X43vh20+v0MCGBBJSg8OyiIUNfp2EoXQid+orSYBTBVFb9SOpQgofqWeL6oHlF7gr1TenpQ3lHOAr1QmCIV9KHm+qB7QU4G9UQdfn42vRy/U7pgQOmEvSp6l3wNqKqBXasdSBBS+UtunzyOeaRlXfd7QKAG9UTueIu6ugz9/K/3A5Y+e/PyDrzd8tIheqN0xIXTCUQl5ln7g6kf0Rm05imDiYYln2QduaUy0kNbtMRnaJGbKKK1bWltQ6KskFf9i+FHS5zsEaJC0v0L3Vx+u7lvxpy3bDKsu7e/L/d27u093900Z3JLUQpAeEb5HA/u27IX
@raiguard
raiguard / 60spm No Modules.txt
Created September 16, 2018 17:37
60SPM Refinery - No Modules
0eNrVXdtuHEeS/RWDz2qj8p6ph/2DWSx2HwcDgyJbcsMUyW02jTUM/fs2JbLZluJknpMsYOAXXxVREZFR1ZEnbn9efLh53N7vd7eHi/d/Xuyu7m4fLt7/88+Lh92n28ubp/92+ON+e/H+YnfYfr54d3F7+fnp3+52N5v99uPudrv/4+LLu4vd7fX2/y7euy/vDNKPN4+761fa++1hf3ezffy8+XT5cEbsGeKbxw/73dXlUdxXwmAS/lXgh7ub3fXm4+P25owwfvnXu4vt7WF32G2/qf31X/745fbx84ft/qjPif7j5cNhc9hf3j7c3+0Pmw/bm8OR+f3dw5H27vbpsUd+G38k+OP49+i/PMn0HTf/Ks3hbn/5abs5XN7+9iMbvzxzOZrz4nq33159+5/e4BlYnuHE0+ASVT3TM7fF4pZmuRH6ZpV35HmXv/Le3T5s94fj/+hwXb7j+u7i+AY9ufcvH7a/Xv6+u9s/kVzt9lePu8Mvx/93feLzcbd/OPwiue3T23l48v33blme/vXz/eX+8vD0kIv/uPjy7U/cfhPm4Ymne/rLfnt97tvHt+lI/uVfX6yjq6p5A2/epvL2PG+3vH4h7j7tHg67q83Vr9vjY+4vHx52v2839/u733fX9mmGs9MkLVieDPju4sPl14dbEjnemzzwJoutV60IPibZYh54mRdbZpNtnP2Mmh8rl2bZmV8rp35SXBMsWlTmVWBe3+D0Jy0Ep3dt6PWN9qCTpt970N/lG1rBN9Qv6pkX/sy9m2VuOr/3k7/VoZnsgvwTemT0t/wJ9Q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AQHSDEDAgR8GGmfAjoMFM6BGyYARsCMsyADAEXZsqF5KiUUiFgwgyYEBBhBkQIeDDjs1JwaExpELBgASwISLCQg1IAizkQRAJvCgE22ROCcBACBLCQ/0iQIf0B8is6+QHqqzr1gQhXyHxgsqiQ+EAWV533QBJXnfbATFEh6wHSq5D0wGxcdc4D3FR1ygNTfIWMBxZvDRIeWFU0ne/AGqvpdAeWKg2
@raiguard
raiguard / Raiguard-Artillery.txt
Last active May 31, 2018 16:25
Rai's Artillery
0eNrsvdtuZUmSJfYriRD0Mkr2+P2SkBqo1OitIQxG/SBgUEgwIk5GEs0gQwxGdica+QHzF/Mg/dh8ic4hz2Uf0tfea7kfxq5pTKNRVZnBWLRtbu5uZr7M7F/fvb/9tvnycHP3+Mv7+/t/evfTv57+zdd3P/3nyT/u/uzmw/3d87/+evPp7vp29+8e//iyeffTu5vHzed3P767u/68+6frh8eb29vNwx9X/3z96f7u3Z8/vru5+7j5l3c/2T9/HPjbTvrbX3/b3N5O/rYf+tvhz7/++G5z93jzeLN5VsLTP/zxy923z+83D9tPO4J8fby/22yF3/79H999uf+6/Svbz9j+yi3MVTB/F39898fuf/m/i3/uZHoB5DggX5eAPAmUl4ACCVSWgCIJlJaAEgkUl4AyCRSWgAoJ5JeAKgnkloCsIZHsIhJp237Rti1p3G7RuC1p3W7RKC1p3m5xn1jSvt2iWVrSwN3iTrGkhbtFw7SkibvFvWJJG3eLlulIG3eLu8WRNm4XLdOxNr58E5A2bhdt3JE2bhdt3JE2bhct05E2bhd3iyNt3C5apiNt3C7uFkfauF20cU/auF20cU/a+LJnQZq4XTRxT5r4ol160sIXt4onDXzRvj1p34vm7UnzXrRuzzopi0CscS96luz5vQhEmvaiQQbOtJdxOMNe1hBn18sK4sx6cekDZ9WLthg4o17cZYGz6cVNFjiTXjyHImfRy6ESZ9DLJ2zkDHrxzI+kQS9adOQsevk6i5xJL9/VkbPpZfchcka97NFEzqqXnazImfWyB5k4u152IBNn2MveceIMe9lhT5xlL8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in71L9PltQ8s7UmVsAd9YgLC7DD8/2FsKwlcJqXmfLk3w6n6qNyHKYV5dmAjGrdkdWPdIj1hQz/z2SgY4ANIlA4QYMH2tUVTNR+fBhOBgJndg77NN7vIsULp2N4cAuLvWs5527q0dGDxM5lm3g8vRJtCIQrVEQdFBgOC4oqsgcDVdnEeBH20t7nZswDqgg5MgsRQLuVmORawWmipE16tY1LE
@raiguard
raiguard / Rai's Kovarex Enrichment.txt
Created March 12, 2018 19:51
Compact, tilable Kovarex Enrichment and related utilities.
0eNrtXF1u4zYQvkqgl7aA1YrUrwNsgf49LFq0QIs+FQtDtmmHWFt0JdnYdOED7EF6sZ6klGTHjkxKM5ScZO28JLAkDsnh/HwzHPKjNV6s2SrlST4aC/Heuv14eJJZt38d/Sze8YlIqscZnyfxoniW36+YdWvxnC2tgZXEy+LXLM5yO0/jJFuJNLfHbJFb24HFkyn7YN2S7aCVwlo25uulTV3/qCVFtYyOWrqAllkeT97bPMlYmrP0qLG3fTewWJLznLNq/uWP+1GyXo7ll7ekceYDayUy2VYkRdeSni2/v5f/5HSsKU/ZpHpXzq5GmT6mnK0WPC8Gd0LTqUiSr/0a0YE144uiyWPWDCyxzlfrfCRXV6SyS/k+5fO7Yrg8Ub5QDM81mzhpn7hnRNnZKkj5OB46dRYGaBYqBhEYzafGqKAQxFJob480c2AtYklFPvtFiNXN229+k482LM2qNlFIiRuGNKIHiXaKEZrp9kROLOWz9Zw9mUo3mxOIalfr11G3j2aulWw5GEsuFy/H8F5s4pR9sFmS8sndUja3V6mYsCyzmlW9Nlq9tNdVXS5inorFaMzu4o0UyuL7CU8na56P5LvpA5EZT7N8hFuxQkLyuBAXUvxYruI0zos+rG+L1wsx51nOJ487OjRyThtVRJNqAlnxOSn+pGx6vBJc/gq374qvK85U67QXPfVw5aoKqQMpn7JRadjlZP9hO0lttmINfKdK++V1Z/yGp/laPjk4o/ILm8k53Od3PJk/XoE6M988zQo0GuosZ2xhT+5YlmtZ58A7JETT48GeL0Qyt+9iKQjTdm05WbV2K62nuXe3qvGFMI44WIa4R30Vv6mGPxHU3+3WhHbBDAs2U/q74cMglmxaEGALSV7aQXslFkw7FiVDiQOe0c5tnsxIRZXgFptsn8y+ek+v3p5GmAgSgQKFyccBUJ2UESQArcSDthsCgsWflfh6dbymoOwbIUEIZTOM6QJUJcRRdsBDjkzWD0J4aEL4hBXNcPt7Serm5wrk3Xz
@raiguard
raiguard / Tilable Nuclear.txt
Created October 5, 2017 03:53
Factorio Tilable Nuclear Book
0eNrdnVtvHMmRhf/KgI8L9aAiI6/CYgFj4H0yvIAvT4sBQVItqTEkm9skNZ419N+3m+xu9kgZkeeUbO1YL/aIUn2MzIqsysrIPOfvZ5fXj8u7zer24fxyvf7p7PXfX35yf/b6v0/+uPu71dX69vnH96t3txfXu589/HK3PHt9tnpY3py9Oru9uNn96fbx6np5sVlslhdXD+vN2cdXZ6vbN8u/nb2Wj686V39YbR4etz85Ap7/xeLPJ1eGjz++OlvePqweVsvnIJ7+8Mv57ePN5XKzRR+vvlm+WT3eLJbXy6uHzepqcbe+Xm7Zd+v77cXr290v3gIXkuKrs1+2/6Efd1F9ggs0LiYHpzROs4OLNC4UB5donFQHl2nc1Bxc4XGTg6ssrolDayytBocmE4sr6uHoQZG9MSH0oEjemJCXQfF+efGwuFvddRle90uEGNHLL0lYHF5SScbi8EahFIzhDT2pGMO9Lw1jeA+oMGEML3uDYAz3MR4whpdjAcvT6A3sgOWpenkasDyNXp4GLE/Vy9OA5al6eRqwPFUvTwOWp+6LVLE8VS/HFMtT9XJdsTxVL08Vy1P18lSxPA1eniqWp+rlqWJ56s5qFMvT4OWpYnka3LkflqfBnfBheRq8HItYngYv1yOWp8HL04jlafDyNGJ5Kl6eRixPg5enEctT8fI0YnnqTrkjlqfi5WnE8lS8PE1YnoqXpwnLU/HyNGF5Kl6eJixPxcvThOWpl6YJS1Px0jRhaeplWMKy1P3MrOYSQef18AySLgjLVC9R84THEpxQMpSs3rDLUKq6bYES1bszGUpT95sfylIvzzOUo26aZyhH3UGfoQepO+YzlJ3uI7BAj1H3CVigxHRfCAXKTPd9UKDUdF+PBcpN9+1YoOR0JwsFyk53rlCg7HSnTgXKTnfmVKDsdCeSFcpOdx5Zoex0p9UVyk53Vl2h7HQ/MiqUne43RoWy0/3kqlB2ul9cFcpO9wO0Qtnpfn9WKDvdT+kGZaf7Rd+g7HQXJxqUne7