Skip to content

Instantly share code, notes, and snippets.

View sv3t0sl4v's full-sized avatar

svet0slav sv3t0sl4v

View GitHub Profile
@sv3t0sl4v
sv3t0sl4v / auto_update_GLM_node_prices.sh
Last active March 1, 2022 18:47
Automatically Update GLM Node Prices With Cron (Linux)
#!/bin/bash
PATH="$HOME/.local/bin:$PATH"
#====================================================================================================================
# Created by svet0slav of Countess Cat Inc - https://countesscat.com
# TODO: take into account GLM token price, node power draw and electricity price to improve price adjustments
# open to suggestions
#====================================================================================================================
# UPDATE GLM NODE PRICES
# GLM node not getting tasks and not earning you anything? No problem!
# This script checks the median of the prices on the golem.network and updates all 3 values related to price:
@sv3t0sl4v
sv3t0sl4v / clickhouse_backup_remote_bz2.sh
Last active July 2, 2023 16:46
ClickHouse_Backup_Remote_BZ2
#!/bin/bash
#==============================================================================================
# Created by svet0slav of Countess Cat Inc - https://countesscat.com
#==============================================================================================
# We use this because clickhouse-backup freezes data and new data can't insert, not good!
# clickhouse-backup not working with latest version of ClickHouse - not good. Ha-ha!
#==============================================================================================
# Insanely good compression anf quite fast!
# You can symlink bzip2, bunzip2 and bzcat to lbzip2, and gzip, gunzip, gzcat and zcat to pigz:
#