crazyoptimist
Blog
About
  • Python Development Environment Setup - an Excellent Way

    Dec 8, 2022 · 1 min read  ·
    Share on:

    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
  • Setup Neovim with vim-plug on Windows 11

    Nov 19, 2022 · 2 min read  ·
    Share on:

    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
  • Tmux Cheatsheet

    Oct 12, 2022 · 2 min read  ·
    Share on:

    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
  • Automatic Https With Caddy - Extremely Easy

    Jun 7, 2022 · 2 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 for Minimalists

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

    Creating Snapshots Browsing History Branching & Merging Collaboration Rewriting History Housekeeping(Personal Favorites) Basic 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, …

    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
    • ««
    • «
    • 1
    • 2
    • 3
    • »
    • »»

crazyoptimist

Software Engineer
Read More

Featured 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
  • GPG Key in Git - Get Your Every Commit Verified
  • Deploy Your Web Apps in Just a Minute - Made With 💖 for Dockerists

Recent Posts

  • Python Development Environment Setup - an Excellent Way
  • Setup Neovim with vim-plug on Windows 11

Categories

DEVOPS 23 NETWORK 11 LINUX 6 DOCKER 3 GOLANG 3 JAVASCRIPT 3 VIM 2 PYTHON 1
crazyoptimist

Copyright  CRAZYOPTIMIST. All Rights Reserved