crazyoptimist
Blog
About
  • Automatic Https With Caddy - Extremely Easy

    Jun 7, 2022 · 1 min read  ·
    Share on:

    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
  • How to Deploy Next.js App to AWS EC2 in Production and Set up CI/CD with Github Actions

    Feb 4, 2022 · 4 min read  ·
    Share on:

    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
  • How to Configure Vim as Your Golang IDE

    Sep 13, 2021 · 2 min read  ·
    Share on:

    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
  • How to Setup Eslint and Prettier With Git Precommit Hooks in React Typescript Project

    Aug 16, 2021 · 2 min read  ·
    Share on:

    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
  • Improve Your Wireguard Server's Performance

    Jul 13, 2021 · 1 min read  ·
    Share on:

    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
  • Redux Setup in Your React Project - Personal Preference

    Apr 22, 2021 · 4 min read  ·
    Share on:

    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
  • Setup Wireguard VPN Server on Ubuntu

    Feb 4, 2021 · 3 min read  ·
    Share on:

    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
  • Setup Wireguard VPN Server on CentOS

    Feb 4, 2021 · 6 min read  ·
    Share on:

    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
  • Git Cheatsheet - 2021

    Dec 4, 2020 · 6 min read  ·
    Share on:

    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
  • Podman Basic Notes

    Nov 7, 2020 · 1 min read  ·
    Share on:

    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
  • Kubernetes Basic Notes

    Nov 7, 2020 · 1 min read  ·
    Share on:

    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
  • How to Make a Swap Space Using a Swap File in Linux

    Oct 6, 2020 · 2 min read  ·
    Share on:

    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
  • GPG Key in Git - Get Your Every Commit Verified

    Oct 4, 2020 · 2 min read  ·
    Share on:

    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
  • Hugo - An Awesome Way to Enjoy Your Blog Life as an Engineer

    Sep 23, 2020 · 3 min read  ·
    Share on:

    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
  • Deploy Your Web Apps in Just a Minute - Made With 💖 for Dockerists

    Sep 7, 2020 · 1 min read  ·
    Share on:

    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
  • How to Install Docker Engine (Not a Legacy Version!) on Ubuntu Bionic or Focal

    Jun 11, 2020 · 1 min read  ·
    Share on:

    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
  • How to Use Jenkins - A Basic Way of Deployment Automation for Lazy Developers

    Jun 11, 2020 · 2 min read  ·
    Share on:

    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
  • Let's Encrypt - The Right Way in 2021

    Jun 11, 2020 · 1 min read  ·
    Share on:

    Install Certbot Install snapd. Remove old version of certbot: 1sudo apt-get remove certbot 2# or 3sudo dnf remove certbot Install certbot: 1sudo snap install --classic certbot 2sudo ln -s /snap/bin/certbot /usr/bin/certbot Run it! 1sudo certbot --nginx Caution! In case you have an IP access blocking config in nginx, …

    Read More
  • How to Install Golang on Manjaro

    May 22, 2020 · 1 min read  ·
    Share on:

    Manjaro is an attractive distro built on top of Arch. Let's get golang development environment ready on your Manjaro machine! You can just update the whole system packages and then simply install golang stable version provided by the Arch repository, not sure what it's called really. 1pacman -Syu 2pacman -S go 3go …

    Read More
  • How to Install Vmware-Tools on Manjaro - an Awesome Distro of Arch Linux

    Apr 23, 2020 · 1 min read  ·
    Share on:

    As you may know, the package manager of Arch Linux is "pacman". 1sudo pacman -Syu #Update and upgrade system packages 2sudo pacman -S package_name #Install a new package 3sudo pacman -R package_name #Remove a package 4sudo pacman -Rn package_name #Remove along with backup-ed config files 5sudo pacman -Rsu …

    Read More
    • ««
    • «
    • 1
    • 2
    • 3
    • »
    • »»

crazyoptimist

Software Engineer
Read More

Featured Posts

  • How to Deploy Next.js App to AWS EC2 in Production and Set up CI/CD with Github Actions
  • GPG Key in Git - Get Your Every Commit Verified
  • Deploy Your Web Apps in Just a Minute - Made With 💖 for Dockerists
  • How to Configure a Nginx Reverse Proxy With Let's Encrypt

Recent Posts

  • Automatic Https With Caddy - Extremely Easy
  • How to Deploy Next.js App to AWS EC2 in Production and Set up CI/CD with Github Actions

Categories

DEVOPS 23 NETWORK 11 LINUX 4 DOCKER 3 GOLANG 3 JAVASCRIPT 3
crazyoptimist

Copyright  CRAZYOPTIMIST. All Rights Reserved