Skip to content

Instantly share code, notes, and snippets.

View aph5nt's full-sized avatar

Kamil Wojciechowski aph5nt

View GitHub Profile
@aph5nt
aph5nt / dupa
Created December 9, 2024 08:18
0x7d7a467b44d73f8a211d805d7d08b94c6e7e6277
https://thegraph.com/explorer/profile/0x475a34f498b0d63a90f9a930913c9a66d79198c9?view=Indexing&chain=arbitrum-one
accounts {
AUTH {
jetstream { }
users: [
{ user: usr, password: pwd }
]
}
APP {}
SYS {}
}
import asyncio
import json
import signal
from sys import stdout
import time
import jwt
import nkeys
from dotenv import load_dotenv
from loguru import logger
from shared.signing import verify_message, verify_timestamp
# nano /lib/systemd/system/subtensorAliceBob.service
# # add content:
# [Unit]
# Description=Subtensor Alice and Bob
# [Service]
# ExecStart=/root/subtensor/scripts/localnet.sh
# [Install]
#!/bin/bash
: "${CHAIN:=local}"
: "${BUILD_BINARY:=0}"
: "${SPEC_PATH:=specs/}"
: "${FEATURES:=pow-faucet}"
FULL_PATH="$SPEC_PATH$CHAIN.json"
@aph5nt
aph5nt / reactive_systems_bibliography.md
Created May 16, 2020 10:14 — forked from brendanzab/reactive_systems_bibliography.md
A reading list that I'm collecting while building my Rust ES+CQRS framework: https://github.com/brendanzab/chronicle

Functional, Reactive, and Distributed Systems Bibliography

Books

@aph5nt
aph5nt / usage of amplify.fs
Created August 8, 2016 18:38
usage of amplify w# binding
namespace Application2
open WebSharper
open WebSharper.JavaScript
open WebSharper.UI.Next
open WebSharper.UI.Next.Client
open WebSharper.UI.Next.Html
open WebSharper.JQuery
open WebSharper.Amplify
@aph5nt
aph5nt / amplify.fs
Created August 8, 2016 18:38
sample amplify w# binding
namespace Amplify
open WebSharper
open WebSharper.JavaScript
open WebSharper.InterfaceGenerator
open WebSharper.JQuery
module Definition =
let DefineRequestType =
module Actors =
type MailBox = Eventsourced<GameCommand, obj, State>
let Logger = Serilog.Log.Logger
let update state (evnt : obj) = state
type Apply = MailBox -> State -> obj -> State
let apply : Apply = fun m s e -> s //(mailbox : MailBox) (state : State) (evnt : obj) = state