Skip to content

Instantly share code, notes, and snippets.

View nuke-web3's full-sized avatar

Nuke 🌄 nuke-web3

  • RISC Zero, Cryptorado
  • Colorado, USA
  • 15:56 (UTC -06:00)
View GitHub Profile
@nuke-web3
nuke-web3 / pdf-invoices-from-photos.md
Created April 6, 2023 23:04
How to take a load of huge photos and make a tiny PDF for invoicing via a could CLI commands

PDF invocing with a ton of photos

For invoice reimbursements, use imagemagick CLI tools to help us make invoice PDF compliance easy!

# Use whatever package manager you need, likely:
sudo apt install imagemagick
@nuke-web3
nuke-web3 / signature-demo.ipynb
Last active May 24, 2023 02:19
PBA Signature Demos
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nuke-web3
nuke-web3 / rust-exam.patch
Last active November 30, 2022 20:06
Rust Exam Patch
diff --git a/.gitignore b/.gitignore
index 9026c77..4c7b3d0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,2 @@
-/target
+**/target
.vscode
diff --git a/README.md b/README.md
index bf8edc2..b0b1613 100644
@nuke-web3
nuke-web3 / Substrate-wiki-archive-SEE-COMMENTS-IN-GIST.md
Last active October 19, 2021 17:41
Archive of Substrate Wiki Pages

https://github.com/paritytech/substrate/wiki/External-Address-Format-(SS58)

SS58 is a simple address format designed for Substrate based chains. There's no problem with using other address formats for a chain, but this serves as a robust default. It is heavily based on Bitcoin's Base-58-check format with a few alterations.

The basic idea is a base-58 encoded value which can identify a specific account on the Substrate chain. Different chains have different means of identifying accounts. SS58 is designed to be extensible for this reason.

Basic Format

The basic format conforms to:

@nuke-web3
nuke-web3 / check_substrate_address.sh
Last active September 29, 2021 20:33
Use subkey tool to find polkadot / kusama / other substrate network's accounts from mnemonic seed words, passwords, and derivation paths.
#!/bin/bash
# Use this script to try various derivation paths and passowords for a known seed.
# ****NOTE!!!!****
# DO NOT SAVE THIS FILE WITH YOUR SEED IN IT!!!!
# INSTEAD RUN THIS ONCE AS IS, THEN MANALLY SET
# YOU MUST EDIT THESE VARIABLES *NOT IN THIS FILE*!!
# SET THESE IN YOUR TERMINAL:
# SECRET="<put your seed words / mnemonic here>"
#snip...
Downloaded getrandom v0.1.16
Downloaded synstructure v0.12.4
Downloaded substrate-prometheus-endpoint v0.8.1
Downloaded stable_deref_trait v1.2.0
Downloaded semver v0.11.0
Downloaded parking_lot_core v0.4.0
Downloaded pallet-balances v2.0.1
Downloaded pin-project v1.0.4
Downloaded pallet-finality-tracker v2.0.1
@nuke-web3
nuke-web3 / README.md
Last active November 9, 2020 23:58
Submission for NFT Challenge heelo world polkadot

Submission for NFT Challenge

Added ORML NFT pallet to runtime and applied to the node template Editied the base template and added a custom pallet using the orml-nft interface.

Source Code for Node HERE 👈 👀

Proofs of NFT use via https://polkadot.js.org/apps/ extrinsics in comments.

NOTE: you must update the setting on the UI to use it!

@nuke-web3
nuke-web3 / README.md
Last active November 8, 2020 02:13
truffle use on moonbeam

Truffle Deploy of ERC20 on Moonbeam

Submission for Hello World:

0xc7677f163bf16E57A2611A57811DE15De9c707Ca,0x5808Ba675FBc32A89a57c7a3921B88a5FD2C5f9c


Migration address: 0xc7677f163bf16E57A2611A57811DE15De9c707Ca

ERC20 Address: 0x5808Ba675FBc32A89a57c7a3921B88a5FD2C5f9c

@nuke-web3
nuke-web3 / README.md
Last active November 8, 2020 02:18
moonbeam alpha erc20

Deployed Contracts on Moonbase Alpha via Remix

CheckContract address: 0xE0ed028b7fFD18dC1eF0c86ad0533bb2e0c966f8


erc20

0xAA9192fcd515A7DAf29fbe8823a1C3773CFD9663