I hereby claim:
- I am jmigueldelgado on github.
- I am jmigueldelgado (https://keybase.io/jmigueldelgado) on keybase.
- I have a public key ASD1WNIMHZFWDgJVlnanjIrcm6l9HJMPuhRvHkFUx1Gfmgo
To claim this, I am signing this object:
from pathlib import Path | |
import zipfile | |
import os | |
import datetime | |
import rasterio | |
from rasterio.io import MemoryFile | |
import numpy | |
def create_mock_product(product_path: Path, collection_name: str, product_configuration: str, keep_tifs: bool=True): | |
local_path = (Path.cwd() / Path(__file__).parent).resolve() / collection_name / product_configuration |
# for port 80 (standard port for http) | |
netstat -tn 2>/dev/null | grep :80 | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr | head | |
# for all ports | |
netstat -vatn |
sed -i 's/old/new/g' path/to/file |
I hereby claim:
To claim this, I am signing this object:
## create tar.gz file | |
tar -zcvf tar-archive-name.tar.gz source-folder-name | |
## unpack tar.gz file | |
tar -zxvf tar-archive-name.tar.gz |
### saving output to log file | |
nohup /path/to/your/script.sh > /path/to/your/log.file 2>&1 & |