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 MoreYou 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 MoreThe 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 wg-quick@wg0 2# or 3sudo wg-quick down wg0 Edit the wireguard config file: 1sudo vim /etc/wireguard/wg0.conf Add …
Read MoreThe 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 MoreThis 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 MoreThis 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 MoreBasic Git Concepts Working copy (working tree file): It refers to the file in the repository that appears on the hard disk. Index (staging area or cache): it refers to you have git add-ed, or, what would be committed if you were to run git commit. HEAD: It refers to the "current" or "active" branch, …
Read MorePlaying 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 MoreKubectl 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 MoreThis 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