Linux Cheat sheet

Find directory with most inode usage or another method Download Large from Google Drive using command line in Linux Save the below script in a file named gdrivedownloader.sh We will need the file’s ID to download it, e.g if the shared link is https://drive.google.com/file/d/13fgfzfX7sujkwlUu3HCjJNZY0NztwbOK/view?usp=sharing then the ID is 13fgfzfX7sujkwlUu3HCjJNZY0NztwbOK, to download the file simply run […]

LetsEncrypt SSL Certificate with AWS Route53 DNS using certbot-dns-route53

There are situation when its not possible to setup LetsEncrypt SSL certificates using certbot’s apache or nginx plugin. If your DNS is hosted on AWS Route53, Cloudflare, Google DNS, DigitalOcean we can take advantage of DNS-challenge authorization method to get the SSL certificates from LetsEncrypt.org. Lets see how we can do this if the DNS […]

Media conversion pipeline with AWS Transcoder, Lambda and S3

In a media streaming service, it is not recommended to stream one large media file, this slows down the user experience, also not all media formats are ideal for streaming. In this tutorial we will see the procedure to convert media to a format which is fit for streaming.

AWS RDS You do not have the SUPER Privilege and Binary Logging is Enabled

When importing a mysql database dump to RDS you receive this error “You do not have the SUPER Privilege and Binary Logging is Enabled”. This usually happens when your database has views or triggers defined. Although MySQL/Mariadb/Aurora RDS supports them but they are disabled by default. Lets see how we can enable them.

iptables basic firewall

Netfilter IPTables is Linux kernel implementation of software firewall. Let build a basic minimal firewall. Let start by assuming we have a server where we have a web server listening on port 80 and 443 and SSH on port 22. We want to allow incoming connection to only these ports, traffic to any other port […]