Skip to content

Instantly share code, notes, and snippets.

View automagictv's full-sized avatar

Automagic automagictv

View GitHub Profile
@automagictv
automagictv / automatic_invoice.gs
Created February 5, 2021 21:13
Apps Script code to automatically replace template variables in your invoice document.
///////////////////////////////////////////////////////////////////////////////////////////////
// BEGIN EDITS ////////////////////////////////////////////////////////////////////////////////
const TEMPLATE_FILE_ID = 'YOUR_TEMPLATE_FILE_ID_HERE';
const DESTINATION_FOLDER_ID = 'YOUR_DESTINATION_FOLDER_ID_HERE';
const CURRENCY_SIGN = '$';
// END EDITS //////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////
// WARNING: EDITING ANYTHING BELOW THIS LINE WILL CHANGE THE BEHAVIOR OF THE SCRIPT. //////////
@automagictv
automagictv / raspberry_pi_wifi
Created April 4, 2021 17:12
Contents for the raspberry pi supplicant conf file - replace the ssid and password with your network information.
country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="YOUR-NETWORK-NAME"
psk="YOUR-NETWORK-PASSWORD"
}
@automagictv
automagictv / rpi_python_setup
Last active September 27, 2022 02:36
Raspberry Pi Python Configuration Instructions / commands.
# 1 - Download Dependencies
sudo apt-get install -y build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev libffi-dev libxml2-dev libxslt-dev
# 2 - Download latest python from https://www.python.org/downloads/source/
# Make sure to update the version variable or all commands for python will fail
export PYTHONVER=3.9.4
wget https://www.python.org/ftp/python/$PYTHONVER/Python-$PYTHONVER.tar.xz
# 3 - Extract and configure
tar xf Python-$PYTHONVER.tar.xz
@automagictv
automagictv / wpa_supplicant.conf
Created April 13, 2021 17:23
Template for a wpa_supplicant.conf file for use on a Raspberry Pi disk image.
country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="YOUR-NETWORK-NAME"
psk="YOUR-NETWORK-PASSWORD"
}