Skip to content

Instantly share code, notes, and snippets.

View Praful932's full-sized avatar
🦾
tinkering

Praful Praful932

🦾
tinkering
View GitHub Profile
@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.github.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
@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 / run_pod_setup.sh
Last active October 4, 2025 06:49
Runpod env setup
#!/bin/bash
# run pod command
# bash -c 'curl -s https://gist.github.com/Praful932/246173142223a0495565dcb7b163ab5d/raw/53e5e750b3deb261538124aac34c5f40afb63af6/run_pod_setup.sh | bash && source /start.sh'
# source <(curl -s https://gist.github.com/Praful932/246173142223a0495565dcb7b163ab5d/raw/db3d18b697ffd65a1ddff3f4de7f6535b9070ac5/run_pod_setup.sh)
# Step 1: Create a directory for Miniconda
mkdir -p ~/miniconda3
# Step 2: Download Miniconda installer script
@Praful932
Praful932 / regex.txt
Created July 29, 2021 06:27
Regex snippets
. - Any Character Except New Line
\d - Digit (0-9)
\D - Not a Digit (0-9)
\w - Word Character (a-z, A-Z, 0-9, _)
\W - Not a Word Character
\s - Whitespace (space, tab, newline)
\S - Not Whitespace (space, tab, newline)
\b - Word Boundary
pip install numpy pandas jupyter jupyter_contrib_nbextensions && jupyter contrib nbextension install --user && jupyter nbextension enable hinterland/hinterland && pip install jedi==0.17.2
{"lastUpload":"2021-12-22T17:15:06.523Z","extensionVersion":"v3.4.3"}
Skip to content
Search or jump to…
Pull requests
Issues
Marketplace
Explore
@Praful932
#include <stdio.h>
void accept(int [][10],int ,int);
void acceptp(int )
void display(int [][10],int,int);
void add(int [][10],int [][10],int,int,int,int);
void transpose(int[][10],int,int);
void multi(int [][10],int [][10],int m,int n,int x,int y);
void saddle(int [][10],int m,int n);
int minrow(int a[][10],int ccol,int n,int crow);
int maxcol(int a[][10],int crow,int m,int ccol);
@Praful932
Praful932 / PY0101EN-1-1-Types.ipynb
Created July 4, 2019 03:33
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
//greedy least no of coins for change
#include<stdio.h>
#include<cs50.h>
#include<math.h>
int main(void)
{
float n;
int coin=0;
do
{