Skip to content

Instantly share code, notes, and snippets.

View allquixotic's full-sized avatar

Sean McNamara allquixotic

View GitHub Profile
[OOC] Ulio Berneir: ===EVENT BEGINS===
[OOC] Ulio Berneir: <It is the morning after your heroic rescue of Belhom Harfort. The lordling was returned safe and sound to Harfort manor, much to relief of Lord Harfort (though of course, he was kinda sour and shout-ey anyway).
[OOC] Ulio Berneir: <Some breakfast was brought in earlier today, courtesy of Priestess Angelle.>
[OOC] Ulio Berneir: (feel free to emote)
Cantia Cara sits at the table, writing diligently in her journal with a cup of coffee.
Endiri Leondril continues munching on the breakfast that Thes'is brought her, petting her spider and writing notes about the little fellow in her journal
Ulio Berneir: "Everyone had breakfast?" Ulio asks the room.
Cantia Cara: "Mhm!"
Endiri Leondril with full cheeks like a chipmunk, she nods to Ulio
Bjarkë Ranrike would keep drinking his mead until its empty. "I'd rather eat rats."
error[E0599]: the method `try_init` exists for struct `SubscriberBuilder<DefaultFields, Format, tracing::level_filters::LevelFilter, std::sync::Mutex<MultiWriter>>`, but its trait bounds were not satisfied
--> src/
131 | .try_init().expect("setting default subscriber failed");
| ^^^^^^^^ method cannot be called on `SubscriberBuilder<DefaultFields, Format, tracing::level_filters::LevelFilter, std::sync::Mutex<MultiWriter>>` due to unsatisfied trait bounds
::: /Users/sean/.cargo/registry/src/
62 | / pub struct Layer<
63 | | S,
allquixotic /
Created January 23, 2023 07:24
another jsonrpc failure
use jsonrpsee::{http_client::{HttpClientBuilder, HttpClient}, ws_client::HeaderMap, core::{Error, __reexports::serde::Deserialize}, proc_macros::rpc};
use dotenvy::var;
pub struct LoginResponse {
session_id: String,
trait Api {
allquixotic / Python requests + jsonrpcclient - Request Body
Created January 19, 2023 01:30
Enjin API in Rust (broken) vs. Python (works)
POST /api/v1/api.php HTTP/1.1
User-Agent: python-requests/2.28.2
Accept-Encoding: gzip, deflate, br
Accept: */*
Connection: keep-alive
Content-Length: 131
Content-Type: application/json
allquixotic /
Created January 18, 2023 13:56
jsonrpsee logging issue
use jsonrpsee::{http_client::HttpClientBuilder};
use dotenvy::var;
use jsonrpsee::{core::{Error}, proc_macros::rpc};
pub trait User
#[method(name = "User.login", param_kind = map, blocking)]
fn login(&self, email: String, password: String) -> Result<String, Error>;
$ DONTRUN=web RUST_BACKTRACE=1 cargo +nightly run
Compiling reminder_rs v1.6.10 (/home/user/reminder-rs)
warning: unused variable: `tzid`
--> src/
214 | CalendarDateTime::WithTimezone { date_time, tzid } => Some(date_time.timestamp()),
| ^^^^ help: try ignoring the field: `tzid: _`
= note: `#[warn(unused_variables)]` on by default
allquixotic /
Last active December 1, 2021 02:25
UDP network test

Tested with BSD NetCat, not nmap project's NCat!


IP=CHANGEME ; for ((i=1; i<=600;i++)); do echo "$i: Received at $(date '+%s')." | netcat -4unNw1 ${IP} 15384; done


Ubuntu 20.04.3

echo "$(dig +short"; netcat -vulknp 15384

Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Laptop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
CPU Family: 0x6
Proton: 1589341500 5.0-7
SteamGameId: 1213210
Command: ['/home/sean/.local/share/Steam/steamapps/common/CnCRemastered/ClientLauncherG.exe', 'DUMP_FULL']
Options: {'forcelgadd'}
ERROR: object '/home/sean/.steam/ubuntu12_32/' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: object '/home/sean/.steam/ubuntu12_64/' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: object '/home/sean/.steam/ubuntu12_64/' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: object '/home/sean/.steam/ubuntu12_32/' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
7b6490dbdd40b9020aa2a981531d5c706873e077 eso0000.dat
e8765d6eedee582bfe87c07cc13f05c792bf8e2c eso0001.dat
d02c54827dce2684a0238869eb24e519f7a7770f eso0002.dat
cf7ea12768c1ed10170b3785a0120e6f1aeec868 eso0003.dat
f2d1b8b94af2f5b39096074befa7668a0a8c8300 eso0004.dat
e50d21f18e9de6e9f543f72c6056b0f445050c6f eso0005.dat
a01a8c934bd4d7bd79fb058efc79ab597b956858 eso0006.dat
c3554ea6b90b8366993f0876426179a8434dcd1b eso0007.dat
65258fb1fe49ed2f3234937df10fbd5f40c9d974 eso0008.dat
48ada6d985c41f7645d4578b051c298f2f7b21a3 eso0009.dat