Skip to content

Instantly share code, notes, and snippets.

View michael4reynolds's full-sized avatar

Michael Reynolds michael4reynolds

View GitHub Profile
@michael4reynolds
michael4reynolds / coinbase_advanced_trade_sheet.py
Created April 4, 2024 11:41 — forked from rhettre/coinbase_advanced_trade_sheet.py
Automates the import of Coinbase transactions into a Google Sheet for cost basis tracking.
import json
import gspread
from oauth2client.service_account import ServiceAccountCredentials
from datetime import datetime, timezone
from coinbase_advanced_trader import coinbase_client
from coinbase_advanced_trader.config import set_api_credentials
# Link to Base Spreadsheet - https://docs.google.com/spreadsheets/d/1VYuy5cSnZiQqF4yp6_sVFpLXXXszCGEiMh-Z37mKims/edit?usp=sharing
COINBASE_PUBLIC_KEY = ''
COINBASE_PRIVATE_KEY = ''
Docker Install steps (Copy and Paste as is within the SSH terminal. Make you are you sudo as root sudo su).
apt-get update
apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
apt-key fingerprint 0EBFCD88
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt-get update
apt-get install docker-ce docker-ce-cli containerd.io
docker run hello-world

Zip excluding specific directories

Exclude .git file and node_modules directory

$ zip -r9 [target_file] [source_file] -x *.git* node_modules/\*

Exclude .git file and files in node_modules directory, but keep node_modules directory

$ zip -r9 [target_file] [source_file] -x *.git* node_modules/**\*