-
Install 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 More -
I love to use vim everywhere. Almost all the linux distros and mac os are shipped with vim already, but for windows? You can stick to the vim within the windows git bash(you should know git because it makes you a developer :D) with a linux-like configuration, but you will notice that :w command has kind of lagging for …
Read More -
I 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 More -
Today 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 More -
Yo! In this article, we are going through deploying a Next.js app to AWS EC2 and set up continuous integration & deployment by means of Github Actions. Before proceeding, you will need the infrastructure ready on AWS, which can be deployed manually or by Terraform code. I'm skipping the infra part for the purpose …
Read More -
I use Vim massively as my main IDE, and my vimrc file can be found here. This article presumes that you have already configured Vim as your code editor basically. Okay, let's get started by installing fatih/vim-go plugin with your favorite vim plugin manager. If you have Golang installed correctly on your machine, you …
Read More -
You should probably create a new react app with typescript using like so: 1npx create-react-app my-app --template typescript Now let's get started to setup eslint and prettier. Remove eslintConfig from package.json. Install prettier using these commands: 1yarn add --dev --exact prettier 2# these are for making eslint …
Read More -
The default MTU(Maximum Transmission Unit) is 1420 in wireguard, while the most other devices use 1496 or 1500. Read here for more info. TL;DR Stop the wireguard interface in use: 1sudo systemctl stop [email protected] 2# or 3sudo wg-quick down wg0 Edit the wireguard config file: 1sudo vim /etc/wireguard/wg0.conf Add …
Read More -
The first thing is to install libraries for redux, as you may guess: 1npm install -S redux react-redux redux-logger reselect redux-persist redux-logger is a redux middleware which is really really helpful in development, but it's up to you whether to use it or not. reselect is a memoization implementation for redux. …
Read More -
This tutorial is going to show you how to set up your own WireGuard VPN server on Ubuntu. WireGuard is made specifically for the Linux kernel. It runs inside the Linux kernel and allows you to create fast, modern, and secure VPN tunnel. TL;DR Prerequisites This tutorial assumes that the VPN server and VPN client are …
Read More -
This tutorial is going to show you how to set up your own WireGuard VPN server on CentOS. WireGuard is made specifically for the Linux kernel. It runs inside the Linux kernel and allows you to create fast, modern, and secure VPN tunnel. TL;DR Prerequisites This tutorial assumes that the VPN server and VPN client are …
Read More -
Creating Snapshots Browsing History Branching & Merging Collaboration Rewriting History Housekeeping(Personal Favorites) Creating Snapshots Initializing a repository 1git init Staging files 1git add main.go Makefile # Stages multiple files 2git add . # Stages the current directory and all its content Viewing the …
Read More -
Playing around with Podman 1alias docker="sudo podman $1" The above command works as of this time and podman makes namespaces for every users for every resources, i.e., images, containers and so on. It means, podman images and sudo podman images will show different resources.😎 1sudo podman pod create --name …
Read More -
Kubectl Installation 1curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl" 2chmod +x kubectl 3echo $PATH 4sudo mv kubectl /usr/local/bin/ Minikube Installation 1curl -LO …
Read More -
This article is based on the content of aws knowledgebase. You might have been stuck in memory leak when building some kinda javascript-heavy frontend apps like Vue or React on a cloud server itself. Just for serving built artifacts, we do not need large instances, but still the building process is always hungry for …
Read More -
This article is based on the contents of the Github's documentation. You will get your own verified badge on every git commits once you configure your GPG key with your VCS. First things first, check your gpg version using this command: 1gpg --version Allow me to assume that you are on version 2.1.17 or greater. Use …
Read More -
I've just finished the migration of my blog from ghost self hosting to hugo. I'm more than happy to use { framework: "Hugo", hosting: "Firebase", cicd: "CircleCI" }. Just wanted to share the full path how I got it done, which was not a piece of cake, you know, it's like kinda …
Read More -
As a software engineer or a DevOps engineer, you may come up with boring tasks frequently, one of which is setting up a new cloud environment for deployment of your awesome web apps/micro services. Using the following script, you will lose the dull pain. Just grab the script and run it with bash, then you will get the …
Read More -
In some cases, you may get stuck due to docker and docker compose version. Let's follow up on docker official documentation: 1apt remove docker docker-engine docker.io containerd runc # purging the legacy version if exists 2apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common …
Read More -
I strongly believe that "lazy developer" is a synonym of "talented developer" from a motivational point of view. Okay, let's get started with Jenkins setup then. Let's go for password login for deployment, remembering that it's not the only way nor an elegant way of implementation, but just follow …
Read More