-
Puts Debuggerer
Ruby library for improved puts debugging, automatically displaying bonus useful information such as source line number and source code.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
#!/bin/bash # Change the version before running # Go to https://github.com/sigp/lighthouse/releases latestVersion="2.3.0" logFile="/home/youruser/lighthouseUpdate.log" filename="lighthouse-v"$latestVersion"-aarch64-unknown-linux-gnu.tar.gz" url="https://github.com/sigp/lighthouse/releases/download/v"$latestVersion"/lighthouse-v"$latestVersion"-aarch64-unknown-linux-gnu.tar.gz" #remove the old logfile rm $logFile currentVersion=$(/home/youruser/.cargo/bin/lighthouse --version) currentVersion=${currentVersion:0:25} echo 'lighthouse current version' $currentVersion echo 'Now updating lighthouse to v'$latestVersion', process started' cd lighthouse-bin/ echo 'Downloading v'$latestVersion' from ' $url wget $url > $logFile 2>&1 echo 'Unpacking '$filename tar -xvf $filename >> $logFile 2>&1 echo 'Stoppping validator and beacon node (can take some time)' sudo systemctl stop lighthousevalidator >> $logFile 2>&1 sudo systemctl stop lighthousebeacon >> $logFile 2>&1 echo 'Backing up the old bin to /home/youruser/.cargo/bin/_lighthouse' mv /home/youruser/.cargo/bin/lighthouse /home/youruser/.cargo/bin/_lighthouse echo 'Replacing the new binary' mv lighthouse /home/youruser/.cargo/bin/lighthouse installedVersion=$(/home/youruser/.cargo/bin/lighthouse --version) installedVersion=${installedVersion:0:25} echo 'Checking installed version: ' $installedVersion echo 'Starting beacon and validator node (can take some time)' sudo systemctl start lighthousebeacon >> $logFile 2>&1 sudo systemctl start lighthousevalidator >> $logFile 2>&1 echo 'Removing the tar compressed file '$filename rm $filename echo "Process completed! Check the logs in "$logFile echo 'if it failed, you could restore the old version('$currentVersion') with mv /home/youruser/.cargo/bin/_lighthouse /home/youruser/.cargo/bin/lighthouse'
This is what I use to get the latest release binary in my lighthouse update script (note it assumes using the x86_62 linux binary) curl -L https://github.com/sigp/lighthouse/releases/latest \ | sed -n 's/.href="(["]).*/\1/p' \ | grep "x86_64-unknown-linux-gnu-portable.tar.gz" \ | awk '{print "https://github.com" $0}' \ | xargs wget -qO - \ | tar -xz