GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Saveit/run.sh at main · DevURANIUM/Saveit

Expand file tree

/

run.sh

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
46 lines (36 loc) · 1.13 KB
/

run.sh

Copy path

File metadata and controls

46 lines (36 loc) · 1.13 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
set -e
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
cd "$SCRIPT_DIR"
if ! command -v python3 &> /dev/null; then
echo "Python3 is not installed. Please install it first."
exit 1
fi
if ! command -v pip &> /dev/null; then
echo "pip is not installed. Please install it first."
exit 1
fi
if [ ! -f ".env" ]; then
echo "Creating .env file based on .env.example..."
cp .env.example .env
echo "Please enter your Telegram API credentials:"
read -p "API_ID: " api_id
read -p "API_HASH: " api_hash
read -p "HANDLER (e.g., .saveit): " handler
if [[ "$OSTYPE" == "darwin"* ]]; then
sed -i '' "s/API_ID=.*/API_ID=$api_id/" .env
sed -i '' "s/API_HASH=.*/API_HASH=$api_hash/" .env
sed -i '' "s/HANDLER=.*/HANDLER=$handler/" .env
else
sed -i "s/API_ID=.*/API_ID=$api_id/" .env
sed -i "s/API_HASH=.*/API_HASH=$api_hash/" .env
sed -i "s/HANDLER=.*/HANDLER=$handler/" .env
fi
fi
git stash || true
git pull || true
git stash pop || true
pip install --upgrade telethon python-dotenv
echo "Running Saveit.py..."
python3 Saveit.py
echo "Done."
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.