This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import xml.etree.ElementTree as ET | |
# Hardcoded joint bind pose translation offsets for the default Second Life avatar | |
# These values are extracted from the matrix transformations in the provided sl_male_avatar.dae file. | |
# The format is a dictionary where the key is the joint name and the value | |
# is a list representing the translation [x, y, z] from the matrix sid="matrix". | |
# These are the offsets relative to the parent joint in the bind pose. | |
default_sl_avatar_bind_pose_offsets = { | |
"mPelvis": [-0.010000, 0.000000, -0.020000], | |
"mButt": [-0.060000, 0.000000, -0.100000], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import re | |
# list of playlist urls | |
urls = ["https://suno.com/playlist/edb8082f-55a7-4ebb-be73-8f9d5c45a39b","https://suno.com/playlist/0244f6f0-7ce8-435f-a314-7965b191691f","https://suno.com/playlist/4e31aa88-552d-4d23-a1c9-5f9e61137b81","https://suno.com/playlist/c6e5b065-7537-41c6-b445-e5a537f4101e"] | |
# path for mp3s | |
mp3_path = "mp3/zombie/" | |
def extract_mp3_links(url): | |
response = requests.get(url) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from solana.publickey import PublicKey | |
from solana.rpc.api import Client | |
from solana.rpc.types import TokenAccountOpts | |
import base64 | |
import base58 | |
import struct | |
import json | |
import requests | |
import redis |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<style type="text/css"> | |
html { | |
height: 100%; | |
} | |
body { | |
margin: 0; | |
height: 100%; | |
overflow: hidden; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
START_NODE_NUM=1 | |
END_NODE_NUM=3 | |
ENV_FILE=".env" | |
HOMEPATH="/home/fuse" | |
function getAndUpdateBlockNumbers { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
ENV_FILE=".env" | |
DOCKER_IMAGE_PARITY="fusenet/node" | |
DOCKER_CONTAINER_PARITY="fusenet" | |
DOCKER_IMAGE_APP="fusenet/validator-app" | |
DOCKER_CONTAINER_APP="fuseapp:" | |
DOCKER_IMAGE_NETSTAT="fusenet/netstat" | |
DOCKER_CONTAINER_NETSTAT="fusenetstat" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"default-address-pools": | |
[ | |
{"base":"172.16.0.0/16","size":24}, | |
{"base":"172.17.0.0/16","size":24} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2.4' | |
services: | |
rabbit: | |
cpus: 0.30 | |
mem_limit: 1250m | |
environment: ['RABBITMQ_NODENAME=node@rabbit'] | |
hostname: rabbit | |
image: rabbitmq:3 | |
container_name: fuseoracle-rabbitmq$COMPOSE_PROJECT_NAME | |
networks: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
ENV_FILE=".env" | |
DOCKER_IMAGE_PARITY="fusenet/node" | |
DOCKER_CONTAINER_PARITY="fusenet" | |
DOCKER_IMAGE_APP="fusenet/validator-app" | |
DOCKER_CONTAINER_APP="fuseapp:" | |
DOCKER_IMAGE_NETSTAT="fusenet/netstat" | |
DOCKER_CONTAINER_NETSTAT="fusenetstat" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import web3 | |
w3 = web3.Web3(web3.HTTPProvider('https://geth.golem.network:55555')) | |
tx = w3.eth.getTransaction('0x00ee93fd1e6fdbdf841b4458a078210449dce89525502c965fd3534ba397e2e3') | |
tx.hash | |
from eth_account._utils.signing import extract_chain_id, to_standard_v | |
s = w3.eth.account._keys.Signature(vrs=( | |
to_standard_v(extract_chain_id(tx.v)[1]), | |
w3.toInt(tx.r), |
NewerOlder