Skip to content

Instantly share code, notes, and snippets.

# Get BIOS information for Serial Number
$biosInfo = Get-CimInstance Win32_BIOS
# Get network adapters information
$networkAdapters = Get-CimInstance Win32_NetworkAdapterConfiguration | Where-Object { $_.IPEnabled -eq $true }
# Prepare the output object
$hardwareInfo = [PSCustomObject]@{
SerialNumber = $biosInfo.SerialNumber
MACAddresses = @()
# It is not recommended to modify this file in-place, because it will
# be overwritten during package upgrades. If you want to add further
# options or overwrite existing ones then use
# $ systemctl edit bitcoind.service
# See "man systemd.service" for details.
# Note that almost all daemon options could be specified in
# /etc/bitcoin/bitcoin.conf, but keep in mind those explicitly
# specified as arguments in ExecStart= will override those in the
# config file.
@ray-bun
ray-bun / linux_install_bitcoin_node_and_lightning_network.sh
Last active December 2, 2021 02:53
Install full Bicoin Node (bitcoind) and Lightning Network (lnd) with TOR, Balance of Satoshi (BOS) on Linux Ubuntu 21.04 x64 with 600 GB block
#!/bin/bash
#https://gist.github.com/royalgarter/834662e43944a94ba56e65b0e0408c39#file-setup_btc_prune_node_ubuntu18_do-sh
#https://stopanddecrypt.medium.com/a-complete-beginners-guide-to-installing-a-lightning-node-on-linux-2021-edition-ece227cfc35d#66eb
#https://stopanddecrypt.medium.com/a-complete-beginners-guide-to-installing-a-bitcoin-full-node-on-linux-2021-edition-46bf20fbe8ff
# Test after install bitcoin: btc getzmqnotifications
echo "run lsblk to find data disk and change devname below. Create new empty partitions and mount to /home"
devname=xvdb
#devname=sda
#devname=sdb
`parted -s /dev/$devname mklabel gpt`