Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Ruslan Dautov dautovri

🏠
Working from home
View GitHub Profile
View S3.sh
# 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
dautovri / deleteall.sh
Created Dec 19, 2018
Script to delete all image and containers
View deleteall.sh
#!/bin/bash
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
@dautovri
dautovri / missOrNull.py
Created Jan 16, 2018
pyspark show all missing or null values in all columns of dataframe
View missOrNull.py
df.select([count(when(isnan(c) | col(c).isNull(), c)).alias(c) for c in df.columns]).show()