Skip to content

Instantly share code, notes, and snippets.

sudo apt install mesa-opencl-icd ocl-icd-opencl-dev gcc git bzr jq pkg-config curl clang build-essential hwloc libhwloc-dev -y &&
sudo apt upgrade -y &&
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh &&
wget -c https://golang.org/dl/go1.15.5.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local &&
echo "export PATH=$PATH:/usr/local/go/bin" >> ~/.bashrc &&
source ~/.bashrc &&
cd ~ && git clone https://github.com/filecoin-project/lotus.git &&
cd lotus && make clean all && sudo make install
@johnnymatthews
johnnymatthews / disable-enable-print-spooler.bat
Last active July 7, 2021 17:22
Disable and re-enable the print spooler on Windows 10.
REM "Disable the print spooler"
net stop spooler && sc config spooler start=disabled
REM "Enable the print spooler"
sc config spooler start=auto && net start spooler
REM "I actually have no idea what a _spooler_ is..."
@johnnymatthews
johnnymatthews / lotusminer-config.toml
Created February 7, 2022 15:32
Config for lotus-miner for quick testing.
[API]
# Binding address for the Lotus API
#
# type: string
# env var: LOTUS_API_LISTENADDRESS
#ListenAddress = "/ip4/127.0.0.1/tcp/2345/http"
# type: string
# env var: LOTUS_API_REMOTELISTENADDRESS
#RemoteListenAddress = "127.0.0.1:2345"