Skip to content

Instantly share code, notes, and snippets.

View CrackerHax's full-sized avatar

CrackerHax

View GitHub Profile
@CrackerHax
CrackerHax / copy_bind_pose_for_sl.py
Last active April 24, 2025 03:15
copy_bind_pose_for_sl.py: Add joint offsets to .dae file for uploading mesh with non-standard avatar joints to Second Life. So you can use "include joint positions"
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],
@CrackerHax
CrackerHax / gist:eea3885886d31ede4ec2f766d910cfa9
Created October 29, 2024 06:46
Suno bulk mp3 downloader from playlist
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)
@CrackerHax
CrackerHax / solana_metadata_assets_from_wallet.py
Last active May 16, 2025 11:01
Python script to get all Solana NFT metadata media assets from a users wallet (gif, png, mp4, fbx, etc) and cache to redis
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
@CrackerHax
CrackerHax / iframe.html
Created December 2, 2020 00:49
iframes implementation of website
<head>
<style type="text/css">
html {
height: 100%;
}
body {
margin: 0;
height: 100%;
overflow: hidden;
}
@CrackerHax
CrackerHax / run_validators.sh
Last active July 3, 2020 18:51
Bash script for running multiple Fusenet validator nodes on a single server
#!/bin/bash
set -e
START_NODE_NUM=1
END_NODE_NUM=3
ENV_FILE=".env"
HOMEPATH="/home/fuse"
function getAndUpdateBlockNumbers {
@CrackerHax
CrackerHax / quickstart.sh
Last active July 9, 2020 09:12
New quickstart.sh for multiple Fusenet validators on a single server
#!/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"
@CrackerHax
CrackerHax / gist:2933d01d696f4a3129c5294765037278
Last active June 20, 2020 01:26
/etc/docker/daemon.json file for specifying multiple ip pools for having lots of docker containers
{
"default-address-pools":
[
{"base":"172.16.0.0/16","size":24},
{"base":"172.17.0.0/16","size":24}
]
}
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:
@CrackerHax
CrackerHax / quickstart3.sh
Last active May 11, 2020 14:21
Multiple Fusenet Validator Nodes
#!/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"
@CrackerHax
CrackerHax / getPubKey.py
Created September 14, 2019 11:39
Python script for getting ethereum public key from transaction id
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),