Skip to content

Instantly share code, notes, and snippets.

View BlockByBlock's full-sized avatar
💭
Feeding my 🐶

BlockByBlock BlockByBlock

💭
Feeding my 🐶
View GitHub Profile
@BlockByBlock
BlockByBlock / setupubuntu.sh
Last active December 21, 2018 05:32
For fresh ubuntu installation
#!/usr/bin/env bash
set -o verbose
set -o errexit
sudo apt update
sudo apt install -y git curl wget lsb-release build-essential software-properties-common terminator
#install Docker
curl -fsSL get.docker.com -o get-docker.sh
repositories:
ament/ament_cmake:
type: git
url: https://github.com/ament/ament_cmake.git
version: 0.5.1
ament/ament_index:
type: git
url: https://github.com/ament/ament_index.git
version: 0.5.1
ament/ament_lint:
@BlockByBlock
BlockByBlock / rari-capital-checklist.txt
Last active June 11, 2023 18:23
Solidity Smart Contract checklist
security-checklist
Opinionated security and code quality checklist for Solidity smart contracts. Based off the BentoBox checklist.
Variables
V1 - Can it be private?
V2 - Can it be constant?
V3 - Can it be immutable/constant?
V4 - Is visibility set? (SWC-108)
V5 - Is the purpose of the variable and other important information documented using natspec?
Structs
@BlockByBlock
BlockByBlock / serum.md
Last active October 20, 2021 18:11
For serum anchor

For Mac M1 installation with issue try updating rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
rustup component add rustfmt

Install anchor and anchor-cli

cargo install --git https://github.com/project-serum/anchor --tag v0.17.0 anchor-cli --locked
# installing via npm causes issue
@BlockByBlock
BlockByBlock / sui-node.txt
Last active August 10, 2022 15:32
Sui node service
# Credits to Sr20de
# Checkout article here https://medium.com/@sr20de/sui-devnet-run-a-node-491698aaa130
# Install node only
cargo install --locked --git https://github.com/MystenLabs/sui.git --branch "devnet" sui-node
sudo cp $HOME/.cargo/bin/sui-node /usr/bin/
mkdir $HOME/.sui
wget -O $HOME/.sui/fullnode.yaml https://raw.githubusercontent.com/MystenLabs/sui/main/crates/sui-config/data/fullnode-template.yaml
wget -P $HOME/.sui/ https://github.com/MystenLabs/sui-genesis/raw/main/devnet/genesis.blob