Skip to content

Instantly share code, notes, and snippets.

View jstm88's full-sized avatar

Justin jstm88

View GitHub Profile
@jstm88
jstm88 / psend.sh
Created August 24, 2023 02:20
Quick shell script to go with prusasend.py
#!/usr/bin/env zsh
DIR="${HOME}/GCODE"
SUB_SUCCESS="uploaded"
cd "${DIR}"
FILE="$(\ls *.gcode | fzf)"
if [[ -f "${FILE}" ]]; then
prusasend "${FILE}"
@jstm88
jstm88 / prusasend.py
Created August 24, 2023 02:18
Prusa Upload Script
#!/usr/bin/env python3
import os
import sys
import json
import time
import hashlib
import requests
import urllib.parse