Skip to content

Instantly share code, notes, and snippets.

Working from home

Ruslan Dautov dautovri

Working from home
View GitHub Profile
# List all buckets
aws s3 ls
# List content of a bucket
aws s3 ls s3://<bucket>
# Create a bucket
aws s3 mb s3://<bucket>
# Copy into bucket
aws s3 cp <path> s3://<bucket>
# Copy from bucket
aws s3 cp s3://<bucket> <path>
dautovri /
Created Dec 19, 2018
Script to delete all image and containers
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
dautovri /
Created Jan 16, 2018
pyspark show all missing or null values in all columns of dataframe
View[count(when(isnan(c) | col(c).isNull(), c)).alias(c) for c in df.columns]).show()