This file contains 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
sudo dpkg -i teamviewer-host_armhf.deb | |
sudo teamviewer setup |
This file contains 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
sudo systemctl start duino | |
sudo systemctl enable duino |
This file contains 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
sudo apt install python3 python3-pip git |
This file contains 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
git clone https://github.com/revoxhere/duino-coin | |
cd duino-coin && python3 PC_Miner.py |
This file contains 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
# /etc/systemd/system/duino.service | |
[Unit] | |
Description=duino | |
ConditionPathExists=/home/pi/Crypto/duino-coin/PC_Miner.py | |
After=network.target | |
[Service] | |
Type=simple | |
WorkingDirectory=/home/pi/Crypto/duino-coin/ | |
ExecStart=/usr/bin/python3 PC_Miner.py |
This file contains 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/sh | |
TOTAL_HEIGHT=$(curl -s https://rpc-cronos.crypto.org/commit | jq -r ".result.signed_header.header.height") | |
CURRENT_HEIGHT=$(cronosd status 2>&1 --home $CRONOS_HOME | jq -r '.SyncInfo.latest_block_height') | |
PROGRESS=$(echo "scale=2; $CURRENT_HEIGHT/$TOTAL_HEIGHT*100" | bc -l) | |
MSG="Progress $CURRENT_HEIGHT / $TOTAL_HEIGHT ($PROGRESS%)" |
This file contains 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/sh | |
TOTAL_HEIGHT=$(curl -s https://rpc-cronos.crypto.org/commit | jq -r ".result.signed_header.header.height") | |
CURRENT_HEIGHT=$(cronosd status 2>&1 --home $CRONOS_HOME | jq -r '.SyncInfo.latest_block_height') | |
PROGRESS=$(echo "scale=2; $CURRENT_HEIGHT/$TOTAL_HEIGHT*100" | bc -l) | |
echo "Progress $CURRENT_HEIGHT / $TOTAL_HEIGHT ($PROGRESS%)" |
This file contains 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
import streamlit as st | |
import pandas as pd | |
crypto_wallet_history = upload_csv('Crypto) | |
fiat_wallet_history = upload_csv('Fiat') | |
visa_card_history = upload_csv('Visa') | |
features = fetch_feature_flags() | |
combined_history = pd.concat([crypto_wallet_history, fiat_wallet_history, visa_card_history]) | |
if not combined_history.empty: |
This file contains 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
if 'raw_table' in features: | |
st.subheader('Raw Table') | |
st.write(raw_table) |
This file contains 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
def fetch_feature_flags() -> set[str]: | |
default_features = ['summary', 'monthly_spending', 'spending_by_category'] | |
optional_features = ['raw_table'] | |
return set( | |
st.sidebar.multiselect('Features', | |
default_features + optional_features, | |
default_features)) |