Skip to content

Instantly share code, notes, and snippets.

@HoughIO
Last active March 11, 2026 06:23
Show Gist options
  • Select an option

  • Save HoughIO/358363ef2cb9529269ca48aeb8b2e78c to your computer and use it in GitHub Desktop.

Select an option

Save HoughIO/358363ef2cb9529269ca48aeb8b2e78c to your computer and use it in GitHub Desktop.
KittyCam Trading Cards Update
#!/bin/bash
# KittyCam Trading Cards Update Script
set -e
cd /opt/kittycam/web
echo "🎴 Downloading trading cards..."
curl -L "https://tmpfiles.org/dl/28383140/trading-cards-bundle.zip" -o /tmp/tc.zip
echo "πŸ“¦ Extracting..."
sudo unzip -o /tmp/tc.zip -d /opt/kittycam/web/
echo "πŸ”§ Adding 🎴 button to index.html..."
if grep -q "trading-cards" index.html 2>/dev/null; then
echo " Already has trading cards link"
else
# Add link to tabs section
sudo sed -i 's|<button class="tab" data-page="activity">|<a href="trading-cards.html" class="tab" style="text-decoration:none;color:inherit"><span class="tab-icon">🎴</span>Cards</a>\n <button class="tab" data-page="activity">|' index.html
fi
rm /tmp/tc.zip
echo "βœ… Done! Access /trading-cards.html"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment