Skip to main content

Posts

Showing posts from December, 2022

Git Series (5) — Picking a specific commit

There are scenarios when we want to apply the changes of an earlier commit in a repo, on top of the current repo tree of some branch in the same repo.  Or In some scenarios, we just want all the changes from an earlier commit of this repo into the current staging area and make some more changes before finally committing all the changes to the repo tree. For both scenarios, the git  cherry-pick  command   comes in handy. Git documentation  describes cherry-pick as git-cherry-pick — Apply the changes introduced by some existing commits. Given one or more existing commits, apply the change each one introduces, recording a new commit for each Let’s explain this with an example Step 1- Create a git repo mkdir git-example-cherry-pick && \ cd git-example-cherry-pick && \ git init Step 2- Add a few commits echo "First change" >> first.file && \ git add first.file && \ git commit -m "first commit" echo "Second change" >

I finally did it & now ashamed of my prejudice

A couple of years ago I planned to build  A Dual Boot Hackintosh  with  Windows  and  macOS.  You can read more about my hardware selections in  this  old post. But after installing macOS and configuring it for my hardware, I got sucked into the  Apple ecosystem  and did not even bother to check for windows. The Switch For over a year, I used this custom-built machine with  Linux  and  Big Sur  as my only computer. It is when I recently bought a  13" M1 MacBook Pro  on a deal, I stopped using this custom-built.  My Hackintosh was not lacking in any performance, but working from anywhere on a 13-inch lightweight easy-to-carry machine, whose battery holds for more than a day, is better than sitting or standing at a desk at a fixed place. This switch rendered my Hackintosh a bit useless. So I decided to play with windows OS. The prejudice. I had been using windows for 15 years and had a preconceived notion that windows-OS is very slow compared to macOS. What I missed realizing was th

Create a window installer USB on a Mac

Let’s assume for some inexplicable reasons, we want to install the windows operating system on our machines. For this, first, we need to have a windows installer USB. Photo by  Brina Blum  on  Unsplash If you like to spend money, you can buy an original windows installer USB from  here   and skip the remaining post.  Otherwise, You can create an installer USB by yourself by performing   these step s  on a windows machine. But wait. The reason that we want to create a windows installer USB in the first place was, that we do not have a machine running windows. Like me, if you only have macOS machines then you can use the below 3 steps to create a windows installer USB. 1- Download windows ISO You can download windows ISO for free from the Microsoft  website .  1.1-  Choose the  windows edition  as follows 1.2-  Choose the language as  English 1.3-  Choose  64 bits  version 1.4-  Above step will download an ISO file in your download location. Double-click on the ISO file and it will be mo