Skip to content

Instantly share code, notes, and snippets.

View pyropy's full-sized avatar
🕊️

Srdjan pyropy

🕊️
View GitHub Profile
#!/usr/bin/env node
const AGGREGATORS = [
'https://agg.walrus.eosusa.io',
'https://aggregator.mainnet.walrus.mirai.cloud',
'https://aggregator.suicore.com',
'https://aggregator.walrus-mainnet.tududes.com',
'https://aggregator.walrus-mainnet.walrus.space',
'https://aggregator.walrus.atalma.io',
'https://aggregator.walrus.mainnet.mozcomputing.dev',
import { getFullnodeUrl, SuiClient } from '@mysten/sui.js/client';
const url = getFullnodeUrl('testnet')
const client = new SuiClient({
url
});
// sys info
// const objectId = '0x99f4831d1c2265b3856de0ace013f8d760522aa87a0ca678802fe736cce134b6'
// staking info inner
@pyropy
pyropy / run.sh
Last active February 27, 2025 09:40
Spark Spot Check
#!/bin/bash
# Define the JSON file
JSON_FILE="tasks.json"
# Check if jq is installed
if ! command -v jq &> /dev/null; then
echo "jq is required but not installed. Please install jq first."
exit 1
fi
@pyropy
pyropy / compress_video
Created August 22, 2024 09:33 — forked from trvswgnr/compress_video
portable shell script to compress videos with ffmpeg
#!/bin/sh
print_usage() {
echo "usage: compress_video <input_file>"
echo "supported formats: mp4, webm, mkv, mov, avi, flv"
}
get_extension() {
f="${1##*/}"
case "$f" in
@pyropy
pyropy / modern-software-engineering-resources.md
Created July 9, 2024 12:22
Modern Software Engineering Resources

Modern Software Engineering

Wake up dog, we're being enslaved! Don't ever join the army under any circumstance, or anything adjacent, you're just die and kill for the rich, meanwhile their sons are enjoying luxury and femoids abroad. All hierarchical power structures are inherently evil. They'll do whatever it takes to maintain the asymmetries of power, wealth, and information, whether it's deception, manipulation, coercion, or violent domination.

The Foundation (jump)

Knowledge and Education should be open and free. Hierarchy and Exploitation must be abolished.

Wayback Machine (internet's archive), Library Genesis/Anna's Archive (ebooks/papers library), 1337x/bk (media's archive).
Fight slavery & monopoly with FOSS, ad blockers, paywall bypassers, VPNs, proxies, peer to peer, tor snowflake,

import { check } from "k6";
import ws from "k6/ws";
export const options = {
// Key configurations for avg load test in this section
stages: [
{ duration: "30s", target: 200 }, // traffic ramp-up from 1 to 100 users over 30 seconds.
{ duration: "1m", target: 200 }, // keep traffic at 100 users over 1 minute.
{ duration: "30s", target: 0 }, // traffic ramp-up from 1 to 100 users over 30 seconds.
],
@pyropy
pyropy / private_fork.md
Created June 28, 2023 07:19 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

### Keybase proof
I hereby claim:
* I am pyropy on github.
* I am pyropy (https://keybase.io/pyropy) on keybase.
* I have a public key whose fingerprint is D7DE F443 6447 88EE A236 9B1D 592B 323F 827A 6DBC
To claim this, I am signing this object:
@pyropy
pyropy / jwtRS256.sh
Created July 13, 2022 13:46 — forked from ygotthilf/jwtRS256.sh
How to generate JWT RS256 key
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub
import type * as WasmNamespace from "@emurgo/cardano-serialization-lib-browser";
import { Vkeywitnesses } from "@emurgo/cardano-serialization-lib-browser";
import { Wallet, WasmT } from "../shared/testing/types";
const MAX_VALUE_BYTES = 5000;
const MAX_TX_BYTES = 16384;
const FEE = 800_000;
const SPEND_AMOUNT = 6_666_666;