Skip to content

Instantly share code, notes, and snippets.

Adding service with name 'el-1-reth-lighthouse' and image 'ghcr.io/paradigmxyz/reth'
There was an error executing Starlark code
An error occurred executing instruction (number 21) at github.com/kurtosis-tech/ethereum-package/src/el/reth/reth_launcher.star[135:31]:
add_service(name="el-1-reth-lighthouse", config=ServiceConfig(image="ghcr.io/paradigmxyz/reth", ports={"engine-rpc": PortSpec(number=8551, transport_protocol="TCP", application_protocol=""), "metrics": PortSpec(number=9001, transport_protocol="TCP", application_protocol=""), "rpc": PortSpec(number=8545, transport_protocol="TCP", application_protocol="http"), "tcp-discovery": PortSpec(number=30303, transport_protocol="TCP", application_protocol=""), "udp-discovery": PortSpec(number=30303, transport_protocol="UDP", application_protocol=""), "ws": PortSpec(number=8546, transport_protocol="TCP", application_protocol="")}, files={"/jwt": "jwt_file", "/network-configs": "el_cl_genesis_data"}, entrypoint=["sh", "-c"], cmd=["reth init --datadir=/data/ret
@Dzejkop
Dzejkop / martialArts.md
Last active June 14, 2023 10:07
RPG Notes

Baseline:

3 1d6 melee attacks mean damage output: 10.50 (dev. ~3)

cost: 3AP

Rolling hedgehog form:

  • Opening: unarmed attack,
  • Flow: ready to retaliate - if an enemy makes an attack of opportunity against you before you finish this form, you can respond with your own attack against this enemy as a reaction,
  • Closing: move.
{
{
"inputs": [
{
"internalType": "contract IBridge",
"name": "newStateBridge",
"type": "address"
}
],
"name": "setStateBridge",
@Dzejkop
Dzejkop / modRsMigrate.nu
Created March 11, 2023 12:45
Nu Scripts
def findMod [path: path] {
ls -a $path | where type == 'file' | where name =~ 'mod.rs' | select name | each {|e| handleModFile $e.name }
if ($path | path exists) {
ls -a $path | where type == 'dir' | select name | each {|e| findMod ($path | path join $e.name) }
}
}
def handleModFile [path: path] {
let d = ($path | path dirname)
let f = ([$d ".rs"] | str join)
@Dzejkop
Dzejkop / Cargo.toml
Created February 24, 2023 20:04
Weird Bevy perf thing
[package]
name = "canvas_time_test"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
bevy = "0.9.1"
@Dzejkop
Dzejkop / main.rs
Last active October 19, 2022 20:00
Serde By Example 2 - Final
use std::collections::HashMap;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
struct Response {
pub elements: Vec<Element>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
@Dzejkop
Dzejkop / Cargo.toml
Last active September 12, 2021 12:16
Converting clap apps to StructOpt style
# In your dependencies add the following
syn = "1.0"
quote = "1.0"
proc_macro2 = "1.0"
heck = "0.3"
@Dzejkop
Dzejkop / rust-toolchain.toml
Last active September 30, 2022 19:54
Rust Snippets
‎‎​
pub fn levenshtein_distance(a: &str, b: &str) -> usize {
let a: Vec<char> = a.chars().collect();
let b: Vec<char> = b.chars().collect();
levenshtein_distance_inner(&a, &b)
}
fn levenshtein_distance_inner(a: &[char], b: &[char]) -> usize {
if a.len() == 0 {
return b.len();
@Dzejkop
Dzejkop / texture_issues.rs
Created April 2, 2019 10:56
winapi.rs texture issues
// Texture creation
let mut texture: *mut ID3D11Texture2D = null_mut();
let mut texture_desc: D3D11_TEXTURE2D_DESC = std::mem::zeroed();
texture_desc.Width = width; // usually 1280
texture_desc.Height = height; // usually 720
texture_desc.MipLevels = 1;
texture_desc.ArraySize = 1;
texture_desc.Format = DXGI_FORMAT_R8G8B8A8_UNORM;
texture_desc.SampleDesc.Count = 1;
texture_desc.Usage = D3D11_USAGE_DYNAMIC;