This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fileList=$(git diff --cached --name-only) | |
phpFileList=$(echo "$fileList" | grep -E '\.(php)$') | |
if [ ${#phpFileList} -gt 0 ]; then | |
git stash --keep-index --include-untracked | |
if ! docker exec YOUR_CONTAINER php -d memory_limit=4G vendor/bin/phpstan analyse ${phpFileList[*]} "$@"; then | |
git stash pop | |
exit 1 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wwwwvwhyjhhpkddjj0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import socket | |
import requests | |
import datetime | |
from PIL import Image, ImageFont, ImageDraw | |
from datetime import date | |
from font_hanken_grotesk import HankenGroteskBold, HankenGroteskMedium |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export ZSH="/Users/airtonzanon/.oh-my-zsh" | |
ZSH_THEME="robbyrussell" | |
plugins=(git zsh-autosuggestions zsh-wakatime) | |
source $ZSH/oh-my-zsh.sh | |
alias vim="nvim" | |
alias projects="cd ~/Documents/projects" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=334dade7-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait fbcon=map:10 fbcon=font:ProFont6x11 logo.nologo quiet init=/usr/lib/raspi-config/init_resize.sh splash plymouth.ignore-serial-consoles |
NewerOlder