- Find a GPU machine, with docker installed
- Use a cuda image, I use
12.6.2-cudnn-devel-ubuntu22.04
git clone https://github.com/mcf-rocks/solanity
- Change
GPU_ARCHS
andGPU_PTX_ARCH
to match your GPU - Change
src/config.h
to find your own prefix. - make -j8
- Enjoy
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
from web3 import Web3 | |
from eth_account.messages import encode_defunct | |
import json | |
# Initialize Web3 connection | |
w3 = Web3(Web3.HTTPProvider("https://eth.llamarpc.com")) | |
YOUR_PRIVATE_KEY = "" | |
# Smart contract address and ABI | |
contract_address = "0x8143182a775C54578c8B7b3Ef77982498866945D" | |
abi = [ |
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 | |
CONFIG_DIR="/root/cfg" | |
YOUR_ADDRESS="0x" | |
# Iterate through all directories under /root/cfg | |
for DIR in "$CONFIG_DIR"/*/; do | |
# Get directory name | |
CONFIG_PATH="$DIR/.config" | |
echo "Processing config: $CONFIG_PATH" | |
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 { | |
LAMPORTS_PER_SOL, | |
SystemProgram, | |
Transaction, | |
sendAndConfirmTransaction, | |
Keypair, | |
} from "@solana/web3.js"; | |
// Use Playground cluster connection | |
const connection = pg.connection; |
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 { Connection, PublicKey } from '@solana/web3.js'; | |
const RAYDIUM_PUBLIC_KEY = "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8"; | |
const HTTP_URL = "https://tiniest-holy-river.solana-mainnet.quiknode.pro/"; | |
const WSS_URL = "wss://tiniest-holy-river.solana-mainnet.quiknode.pro/"; | |
const RAYDIUM = new PublicKey(RAYDIUM_PUBLIC_KEY); | |
const INSTRUCTION_NAME = "initialize2"; | |
const connection = new Connection(HTTP_URL, { | |
wsEndpoint: WSS_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
wget https://github.com/tinyproxy/tinyproxy/releases/download/1.11.2/tinyproxy-1.11.2.tar.gz && tar -xzvf tinyproxy-1.11.2.tar.gz && cd tinyproxy-1.11.2 && ./autogen.sh && make install && echo "Port 8888" > /tmp/tinyproxy.conf && tinyproxy -c /tmp/tinyproxy.conf |
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
alias dislid='sudo pmset -b sleep 0; sudo pmset -b displaysleep 0; sudo pmset -b disablesleep 1' | |
alias enlid='sudo pmset -b sleep 15; sudo pmset -b displaysleep 10; sudo pmset -b disablesleep 0' |
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
sudo apt install ocl-icd-opencl-dev cmake python3-pip nano -y &&git clone https://github.com/shanhaicoder/XENGPUMiner.git && cd XENGPUMiner && git checkout a8df19a6c5d868f47ef9a0850c04422302105452 && chmod +x build.sh &&./build.sh && pip3 install -r requirements.txt && tmux new-session -d -s s2 && tmux send-keys -t s2 "cd /root/XENGPUMiner && ./xengpuminer -b 256" C-m && tmux split-window -v && tmux send-keys -t s2 "cd /root/XENGPUMiner && python3 /root/XENGPUMiner/miner.py --account 0x3739E5d97Dc5d8139FA6Cd290B10B122F56EBC39" C-m && tmux attach -t s2 |
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 | |
# | |
# This script generates the post files for the specified node. | |
# | |
## Usage: | |
# | |
# ./generate-post.sh <sizeGiB> <nodeId> <commitmentAtxId> | |
# | |
## Author: | |
# |
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 | |
cd /root/ | |
apt-get install unzip -y | |
apt-get install nano -y | |
wget https://github.com/h9-dev/spacemesh-miner/releases/download/v1.3.0/H9-Miner-spacemesh-v1.3.0-2-linux.zip | |
unzip H9-Miner-spacemesh-v1.3.0-2-linux.zip && rm -rf /root/linux/config.yaml | |
sudo -v ; curl https://rclone.org/install.sh | sudo bash | |
echo ''' | |
path: |
NewerOlder