Skip to content

Instantly share code, notes, and snippets.

View Jared-Sprague's full-sized avatar

Jared Sprague Jared-Sprague

View GitHub Profile
@Jared-Sprague
Jared-Sprague / main.rs
Last active July 28, 2022 17:14
How to push to Vec inside closure
use std::{
path::Path,
process::{Command, Stdio},
};
use async_trait::async_trait;
use downloader::download_files;
use downloader::Asset;
use extract::{ExtractInput, Extractor};
use libs::owo_colors::{colors, OwoColorize};
@Jared-Sprague
Jared-Sprague / gist:7dddad2027f1b9a0cc0c2685189ae4aa
Created October 28, 2017 02:41
Fedora install dependencies for ios-webkit-debug-proxy
# The instructions for ios-webkit-debug-proxy are for ubuntu, here are the packages for fedora.
# https://github.com/google/ios-webkit-debug-proxy
dnf install autoconf automake libusb-devel libusbx-devel libplist-devel libplist-devel usbmuxd libtool libimobiledevice-devel
@Jared-Sprague
Jared-Sprague / main.rs
Last active June 30, 2022 04:24
Rust download 11000 files in < 1 min
use futures::stream::StreamExt;
use reqwest::Client;
use serde::Deserialize;
use std::fs;
use std::io::prelude::*;
use std::path::Path;
use std::time::Duration;
use anyhow::Context;
use std::fs::{create_dir_all, File};
SUCCESS
SUCCESS
const NODEJS_ENV_DEV = typeof module !== 'undefined' && module.exports;
const DEV_SETTINGS = {
WORLD_SIZE : 2000,
MAX_BOTS : 25,
FOOD_DENSITY : 40,
INITIAL_PLAYER_RADIUS : 5,
FOOD_VALUE : 0.5,
DEBUG : true,
HEARTBEAT_ENABLE : false,
@Jared-Sprague
Jared-Sprague / gist:6de9c8b6d359db12432b
Last active September 21, 2020 16:07
Test new relic synthetic monitor alerts
SUCCESS
@Jared-Sprague
Jared-Sprague / gist:70c6052c914afe8b7a1f701923635dbf
Created December 2, 2017 06:25
Linux Screenshot Time lapse Script
#!/bin/bash
while [ 1 ]; do shutter -f -e -o './%y-%m-%d-%T.png'; sleep 20; done
https://github.com/phw/peek
vala
vala-devel
gtk+
gtk+-devel
gtk3
gtk3-devel
keybinder3
keybinder3-devel