Skip to content

Instantly share code, notes, and snippets.

View airtonzanon's full-sized avatar

Airton Zanon airtonzanon

View GitHub Profile
@airtonzanon
airtonzanon / install-spark-wizard.sh
Last active May 12, 2025 11:40
Script to install spark on debian 12
#!/bin/bash
echo "\n #####################"
echo "Install Spark Script"
echo "Done with massive help of Mistral"
echo "This is a wizard that it was not tested 100% yet, gonna try it later"
echo "Done with a bunch of search around, might not be the best way of installing or using spark \n"
# Function to check if the user is root
is_root() {
#!/bin/bash
echo "\n #####################"
echo "Installing bigcoin source node"
echo "This is just a script putting everything together from the blog post below"
echo "https://hackernoon.com/a-complete-beginners-guide-to-installing-a-bitcoin-full-node-on-linux-2018-edition-cb8e384479ea \n"
apt update
apt install git -y
mkdir -p bitcoin-source && cd bitcoin-source
@airtonzanon
airtonzanon / allow-ceph-1-pool.sh
Last active April 5, 2025 13:47
remove Ceph installation from Proxmox (not sure if it works with Ceph in another env)
#!/bin/bash
ceph config set global mon_allow_pool_size_one true
ceph osd pool set data_pool min_size 1
ceph osd pool set data_pool size 1 --yes-i-really-mean-it
@airtonzanon
airtonzanon / remove-node-from-cluster.sh
Last active April 5, 2025 13:46
Remove node from proxmox cluster without having to do any reinstallation.
#!/bin/bash
echo "\n #####################"
echo "Remove node from Proxmox Cluster"
echo "This is the same commands that we have in the docs:"
echo "https://pve.proxmox.com/pve-docs/pve-admin-guide.html#pvecm_separate_node_without_reinstall \n"
systemctl stop pve-cluster
systemctl stop corosync