Skip to content

Instantly share code, notes, and snippets.

View Dhagash4's full-sized avatar
🎯
Focusing

Dhagash Desai Dhagash4

🎯
Focusing
  • 21:48 (UTC +02:00)
View GitHub Profile
@ashdtu
ashdtu / save_my_scratch.py
Last active April 9, 2021 07:23
Save your files from being automatically deleted from scratch/share directory.
import os
import time
from tqdm import tqdm
import argparse
import sys
parser = argparse.ArgumentParser(description="Script to read files from directory to prevent automatic deletion")
parser.add_argument('--path',default=None,help="Enter directory path of your scratch or share space. Eg: /scratch/dave/ ")
parser.add_argument('--days',default=5,type=int,help="If last access day of file is beyond this, read the file to prevent deletion(default:5)")
args = parser.parse_args()
@Geoyi
Geoyi / install virtualenv ubuntu 16.04.md
Created September 16, 2017 12:19 — forked from frfahim/install virtualenv ubuntu 16.04.md
How to install virtual environment on ubuntu 16.04

How to install virtualenv:

Install pip first

sudo apt-get install python3-pip

Then install virtualenv using pip3

sudo pip3 install virtualenv