meain/blog

meain's blog

Just a bunch of git stuff

Hey, Been a while since I have wrote a blog and thought I would write about something that I really like, git. I really like git, almost all of my important data is text and almost all of them are

Floating scratch terminal in tmux

Hi, Just another one off blog. I have been using tmux for a while and one main thing I always wanted to have in tmux is a floating scratch terminal. I got so used to this during my time with i3 and

Completely remove a file from git history

UPDATE: I did run into some pretty good documentation from GitHub here (https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository). One

What exactly are stock options?

So yeah, this is me trying to write a non technical blog. Not sure how this will end up. This is just an intro, very basics of what I wished I knew when I started off. I am not someone who really

A simpler method for a reactive UI

Hola¡ I have been doing frontend for a long time. I started off with vanilla JS, then used jQuery and after that moved directly onto using pretty much React. I have tried out a lot of others and

Switching to DuckDuckGo

So yeah, recently I decided to switch from Google to DuckDuckGo. DuckDuckGo is great, don't get me wrong. But at times, Google just has better results. I usually find myself going back to Google for

Table operations like in Nu shell in BASH

Hi, another installment of why people should just write more bash. I am not sure if you are aware of it. There is a new shell written in Rust called Nu Shell (https://www.nushell.sh/). One of the

Accessing Kubernetes API from a Pod (RBAC)

This article describes in general how to set up permission for a Pod so that it will have access to Kubernetes API. My exact use case was that, I wanted to run a Pod which will watch a redis queue

Git never forgets, well kinda. `git-reflog`

Hi, I am gonna let you in on a little secret. Git never forgets what you do, you can mess up however you want and you will still have all your data available*. * as long as you have committed you

Understanding Kubernetes (Basics)

So yeah, you have an amazing app(I am gonna assume it is in python) that you would like to deploy. You know how to deployment works. You spin up an instance on gcloud or aws or azure or somewhere

Automatically list files after cd

Almost everybody does an ls after they cd into a folder. So why not get your shell to automatically do it? The simple way # (https://blog.meain.io/2019/automatically-ls-after-cd/#the-simple-way)

Understanding Rust macros

Yo, I have been working on Rust for some time now. It is a great language and a refreshment coming from a primarily Python and Javascript background. I feel like the compiler has got my back even

A really simple nginx config

This is another installment of "this is not a blog but a note for my future reference". Here, I will introduce you to writing a very simple nginx config file. The use case I will go over here

Publishing a console application to pypi

Let's say you have a very useful python script that you use and think other people might have some use out of it. One way is to just share the python snippet, but nah, that is too old school. Let us

Docker basics

Hi, the idea here is to introduce you to how docker works in very basic terms. We will go through how to create a docker file and how to run it and stuff like that. But just the basics, just enough

Quickly go to project root

Let us say you went deep in to a highly nested project structure and want to get back to the project root. Sure you could go cd ../<TAB>, nah not here cd ../../<TAB>, not here either ..... But there