Skip to content

Instantly share code, notes, and snippets.

View crueber's full-sized avatar
🐍

Chris Rueber crueber

🐍
  • Minneapolis, MN
  • 04:08 (UTC -05:00)
View GitHub Profile
@crueber
crueber / migrate.js
Last active September 29, 2023 21:33
Copy active docker container named volumes to /opt/volumes
const { execSync } = require('child_process');
const readline = require('readline');
function executeCommand(command) {
try {
const result = execSync(command, { encoding: 'utf-8' });
return result.trim();
} catch (error) {
console.error(`Error executing command: ${command}`);
process.exit(1);
@crueber
crueber / readme.md
Last active October 29, 2023 15:31
Open Source Alternatives for Productivity and Development
@crueber
crueber / get-and-convert-latest-audible-purchases.sh
Last active November 20, 2024 14:14
Pull latest purchases from Audible and convert to M4B using AAXtoMP3
#!/bin/bash
# Get today's date in YYYY-MM-DD format
TODAY=$(date +%Y-%m-%d)
# Get yesterday's date in YYYY-MM-DD format
YESTERDAY=$(date -v-1d +%Y-%m-%d)
# Check if .latestpull file exists, if not create it and set the initial value to $YESTERDAY
if [ ! -f .latestpull ]; then