Skip to content

Instantly share code, notes, and snippets.

View feamcor's full-sized avatar

Fábio Corrêa feamcor

View GitHub Profile
@feamcor
feamcor / cardano.sh
Last active August 9, 2023 20:23
Script for common actions on Cardano node and CLI.
#!/usr/bin/env bash
#set -x
export CARDANO_HOME="${CARDANO_HOME:-${HOME}/cardano}"
if [ ! -d "${CARDANO_HOME}" ]; then
printf 'ERROR :: envar CARDANO_HOME directory does not exist: %s' "${CARDANO_HOME}"
exit 1
fi
export CARDANO_NODE_HOME="${CARDANO_NODE_HOME:-${CARDANO_HOME}/cardano-node}"
@feamcor
feamcor / cardano-setup.md
Last active August 9, 2023 20:23
Setup for Cardano Node and CLI.

Cardano Node and Cardano CLI

This document is my summary of:

Update and Install OS Dependencies

sudo apt-get update -y
sudo apt-get install automake build-essential curl pkg-config libffi-dev libgmp-dev libssl-dev libtinfo-dev libsystemd-dev zlib1g-dev make g++ tmux git jq wget libncursesw5 libtool autoconf
@feamcor
feamcor / wslconfig
Last active April 23, 2024 10:29
Personal .wslconfig.
[wsl2]
# Reference: https://docs.microsoft.com/en-us/windows/wsl/wsl-config
# Reference: https://learn.microsoft.com/en-us/windows/wsl/enterprise
# kernel string The Microsoft built kernel provided inbox.
# An absolute Windows path to a custom Linux kernel.
#kernel=
# memory size 50% of total memory on Windows or 8GB, whichever is less;
# on builds before 20175: 80% of your total memory on Windows.
@feamcor
feamcor / cargo-install.sh
Last active April 19, 2024 15:43
List of Rust tools installed through cargo install.
#!/usr/bin/env bash
sudo apt install \
clang \
gcc \
libasound2-dev \
libssl-dev \
make \
pkg-config
cargo install \