AWS IAM Assume Role is a mechanism that enables a user or service to assume a specific IAM role temporarily. This allows the user or service to acquire temporary security credentials, including access keys, session tokens, and permissions, to perform actions within AWS resources. The assumed role can have different …
Read MoreThere may be a case where you want to use WSL(Windows Subsystem for Linux) via a remote SSH connection. Configuring a remote SSH connection to WSL is not necessarily straightforward because: You need to configure port forwarding from WSL to the host machine WSL does not have systemd, so you need to configure automatic …
Read MoreVim "leader" Key <leader> key is a vim tool that can be used to create personalized shortcuts. Default <leader> key is backslash . To change the leader key to comma , add let mapleader = "," to your vimrc. You can use any other key as <leader> key, even space or function keys. But …
Read MoreThere might be a chance that you need to create and use a separate github(or bitbucket) account other than your personal one in your workplace. And Github(Bitbucket or Gitlab will do the same I believe) doesn't allow to share a ssh key between different accounts for authentication. That's the case we are going to …
Read MoreTest double is one of the key concepts of TDD(Test Driven Development). Test Double is a generic term for any case where you replace a production object for testing purposes. There are various kinds of test doubles: Dummies, Stubs, Mocks, Spies, Fakes. Whew, what on earth is that? Alright, let's check them out one by …
Read MoreInstall pyenv to manage multiple python versions This gist self-explains how to install pyenv and use it to manage multiple python versions on your machine Manage virtual envs A virtual env is where dependencies live without polluting the global space of the current python version, preventing dependency version …
Read MoreI love to use vim everywhere. Almost all the linux distros and macOS come with Vim pre-installed, but what about Windows? You can stick to the vim within the Windows Git Bash(you should know git because that's what makes you a developer :D) with a Linux-like configuration, but you may notice that :w command lags for …
Read MoreI use linux terminal all day, and if you are like me, you should use tmux, which enables a number of terminals to be created, accessed, and controlled from a single screen, just to be more productive! So, there're some essential commands for tmux down below. start a new session 1tmux # session name will be 0,1,2, ... …
Read MoreToday I had a chance to try Caddy for dev purpose, and you guess what, it was extremely easy and funny. Only two steps and boom, you got a secured website almost instantly. Here are the steps I followed: Install Caddy on Ubuntu/Debian Check their documentation for another OS/installation method. 1sudo apt install -y …
Read MoreYo! In this article, we'll be discussing how to deploy a Next.js app to AWS EC2 and set up continuous integration and deployment using Github Actions. Before proceeding, you will need to have the infrastructure ready on AWS, which can be deployed manually or by using Terraform code. I'll be skipping the infrastructure …
Read More