Skip to content

Instantly share code, notes, and snippets.

View Seeker14491's full-sized avatar

Brian Bowman Seeker14491

View GitHub Profile
#Toggle whether Elite Raiders will spawn in Raids or not. On Hero, Elites will not spawn regardless of this, and on Legend, only Tier 1 elites will spawn if enabled.
elitesEnabled = true
#Determines the chance that Reinforcements will spawn on any wave of a Raid.
#Range: 0 ~ 100
reinforcementChance = 0
#Determines the chance that an individual Raider will be wearing some armor during a Raid.
#Range: 0 ~ 100
armorChance = 0
#Determines the maximum pieces of armor Raiders can have equipped.
#Range: 0 ~ 4
#Dual Greatsword
[dual_greatsword]
#GREATSWORD_TWOHAND_AUTO
[dual_greatsword.greatsword_twohand_auto]
[dual_greatsword.greatsword_twohand_auto.1]
#Range: 0.0 ~ 100.0
damage = 0.9
@Seeker14491
Seeker14491 / main.rs
Created January 16, 2023 10:47
distance-db-server
#![warn(
deprecated_in_future,
macro_use_extern_crate,
missing_debug_implementations,
unused_qualifications
)]
use actix_cors::Cors;
use actix_web::{middleware, web, App, HttpResponse, HttpServer, ResponseError};
use anyhow::{format_err, Context, Error};
use std::error::Error;
use ethers_providers::Provider;
trait ClientGeneric<T>
where
for<'a> &'a str: TryInto<Provider<T>>,
for<'a> <&'a str as TryInto<Provider<T>>>::Error: Error + 'static,
{
fn get_client(&self, url: &str) -> Result<Provider<T>, Box<dyn Error>> {
use eyre::{Error, Result};
use futures::{stream::FuturesUnordered, StreamExt, TryStreamExt};
use std::time::Instant;
use steamworks::ugc::MatchingUgcType;
#[tokio::main(flavor = "current_thread")]
async fn main() -> Result<()> {
let steam = steamworks::Client::init(Some(233610))?;
let sprint_workshop_levels: Vec<_> = steam
.query_all_ugc(MatchingUgcType::ItemsReadyToUse)
using System;
using System.IO;
using System.Security.Cryptography;
using System.Threading;
using SteamKit2;
namespace SteamKit2Exploration
{
class Program
{
Game Mode Sprint:
Broken Symmetry
Lost Society
Negative Space
Departure
Ground Zero
Amusement
The Observer Effect
Uncanny Valley
2018-08-07 03:04:42,588 [9260779] ERROR - aemon.impl.PassExecutorService - CLion 2018.2 Build #CL-182.3684.76
2018-08-07 03:04:42,588 [9260779] ERROR - aemon.impl.PassExecutorService - JDK: 1.8.0_152-release
2018-08-07 03:04:42,588 [9260779] ERROR - aemon.impl.PassExecutorService - VM: OpenJDK 64-Bit Server VM
2018-08-07 03:04:42,588 [9260779] ERROR - aemon.impl.PassExecutorService - Vendor: JetBrains s.r.o
2018-08-07 03:04:42,588 [9260779] ERROR - aemon.impl.PassExecutorService - OS: Windows 10
2018-08-07 03:04:42,588 [9260779] ERROR - aemon.impl.PassExecutorService - Last Action: ShowSettings
2018-08-07 03:04:42,993 [9261184] ERROR - aemon.impl.PassExecutorService - com/intellij/psi/util/PsiTreeUtilKt
java.lang.NoClassDefFoundError: com/intellij/psi/util/PsiTreeUtilKt
at org.rust.ide.intentions.RsShowMacroExpansionIntentionBase.findApplicableContext(RsShowMacroExpansionIntentions.kt:54)
at org.rust.ide.intentions.RsShowMacroExpansionIntentionBase.findApplicableContext(RsShowMacroExpansionIn
[HarmonyPatch(typeof(CarScreenLogic), "OnPlayerEventCarInstantiate")]
internal class Tmp2
{
static void Postfix(CarScreenLogic __instance)
{
var url = "https://i.imgur.com/jFR3Vat.jpg";
var newTexture = new Texture2D(1, 1);
using (WWW www = new WWW(url))
{
while (!www.isDone) {} // bad
  1. If you don't already have it installed, download Python 3.x.x from https://www.python.org/downloads/. Go with the default options in the installer, but be sure to check the option to add Python to your PATH.

  2. Check that the installation is functional by opening a terminal and running these commands:

python --version
pip --version

Each should print out a line showing the version number.

  1. In a terminal window, run these commands: