Skip to content

Instantly share code, notes, and snippets.

View Praful932's full-sized avatar
🦾
tinkering

Praful Praful932

🦾
tinkering
View GitHub Profile
@Praful932
Praful932 / run_pod_setup.sh
Last active June 11, 2026 11:11
Runpod env setup
#!/bin/bash
# ============================================================
# RunPod Setup: Miniconda + Poetry
# Image: runpod/pytorch:2.4.0-py3.11-cuda12.4.1-devel-ubuntu22.04
#
# Container start command (outer):
# bash -c 'curl -fsSL https://gist.githubusercontent.com/YOUR_GIST/run_pod_setup.sh | bash && /start.sh'
# ============================================================
@Praful932
Praful932 / run_pod_post_start_setup.sh
Last active April 11, 2024 06:06
Runpod post start setup
# cd into directory after running conda init
cd /workspace
# Define the Personal Access Token and repo name
pat="$GITHUB_PAT"
repo_name="$GITHUB_REPO"
username="praful932"
repo_url="https://github.com/Praful932/${repo_name}.git"
@Praful932
Praful932 / clone_git_repo.sh
Last active October 1, 2025 09:10
clone a private git repo using a shell script
# export GITHUB_PAT=
# bash clone_git_repo.sh praful932 repo GITHUB_PAT .
# curl -s https://gist.githubusercontent.com/Praful932/1a663cb14c6d56aaf5e7ee6daefa1e8b/raw | bash -s -- praful932 my-repo GITHUB_PAT /path/to/destination
# Check if sufficient arguments are provided
if [ "$#" -ne 4 ]; then
echo "Usage: $0 <username> <repository-name> <env-var-name-for-pat> <destination-path>"
exit 1
fi