Skip to content

Instantly share code, notes, and snippets.

View isaiahnixon's full-sized avatar

Isaiah Nixon isaiahnixon

View GitHub Profile
@isaiahnixon
isaiahnixon / google_sheets.py
Created September 23, 2021 00:45
Python CRUD Module for Google Sheets Data with Pandas
import gspread
import pandas as pd
from gspread_dataframe import set_with_dataframe
import os
current_dir = os.path.dirname(os.path.realpath(__file__))
service_account_file = current_dir + '/service_account.json'
google_credentials = gspread.service_account(service_account_file)
@isaiahnixon
isaiahnixon / commands-from-video.txt
Last active October 29, 2021 23:52
Borg Automated Backups Setup - Ubuntu 18.04
mkdir bkp
sudo apt install borgbackup -y
borg init --encryption none bkp/
crontab -e
# 0 12 * * * borg create ~/bkp::Downloads-$(date '+\%m-\%d-\%Y') ~/Downloads/
tail -f /var/log/syslog | grep CRON
borg list bkp
mkdir test-extraction
cd test-extraction
borg extract ../bkp::Downloads home/e/Downloads