When you enable VPC flow logs, records will be created in CloudWatch Logs (or S3 if you choose so, but CloudWatch Logs is definitely better for debugging). There will be one log stream per network interface, and the format of… Read More
What is the best git workflow?
Many people have different opinions on this subject. The best according to me is to have a master branch which contain only deployable commits. Every commit on the master branch could potentially be deployed. Every time you need to add… Read More
How to mount a LUKS encrypted drive on Ubuntu running as a Guest OS of VirtualBox on Mac?
Insert the encrypted device in your Mac. It will tell you it can’t use it and would invite you to initialize it. Just click “Ignore”. Run the disk utility to identify what disk is your encrypted device (probably it will… Read More
A useful ps command
$ sudo ps -eH -o user,pid,ppid,state,pcpu,pmem,vsize,start_time,time,nlwp,cmd
How to setup MFA on AWS using only the command line?
You obviously need to have the credentials to perform IAM operations (either you have the access key and secret key of a such a user, or you can SSH to an EC2 instance whose role allow that, etc.) Also, this… Read More
How to install the latest version of AWS command line tool on Ubuntu?
Follow the steps: $ sudo apt update $ sudo apt install python python-pip $ sudo pip install awscli This will install a reasonably recent version of awscli, at least more recent than installing directly with `$ sudo apt install awscli`.… Read More
How to get the current git commit?
Do this: $ git rev-parse HEAD This gives you the full commit id, for the short id, run this: $ git rev-parse –short HEAD I work as a freelancer, so if you don’t want to do that kind of things… Read More
How to create a Let’s Encrypt SSL certificate using DNS challenge?
First of all, register the domain name if not done already. Then run the steps: $ sudo certbot -d YOUR.DOMAIN.COM –manual –preferred-challenges dns certonly When prompted, create the required TXT record with your DNS provider and press enter in certbot.
How to link Atom and GitHub
Follow the steps: Start Atom Select menu item `View -> Toggle Command Palette` Search for “clone” Select “GitHub: Clone” Enter the URL of the GitHub project you want to clone Click “Clone” To know the URL to use, go to… Read More
How to create a virtual environment in Python3?
Install whatever Python3 package you want for your OS, along with pip. For example for Ubuntu: $ sudo apt update $ sudo apt install python3.7 python3-pip Go into a directory you want to use as a base and run the… Read More