Posts

Showing posts from July, 2021

Hiding YouTube comments section

Image
 Yes , reading YouTube comments is fun. But reading too many YouTube comments can lead you take a deep dive into the dark bottomless pit of irrelevant internet crap. Therefor , your man with a plan Mr. Gabs has the following solution to get rid of this for good.  ( I will probably delete this post If I ever go for an interview at Goggle ) Anyways  , steps to achieve Liberation from YouTube comments : 1. Get GreaseMonkey or TamperMonkey , if you use any other browser then we can't be friends 2. Read This to get an idea on how it works 3. Take this script which I copied from stackoverflow with my own bear hands and use it to achieve your goal // ==UserScript== // @name         Hide youtube comments // @namespace    http://tampermonkey.net/ // @version      0.1 // @description  In memory of the guy who wrote this // @author       You // @match        https://www.youtube.com/* // @i...

GIT Cherry Picking

Image
 Ever had a colleague telling you "hey bro can you please have a look at this commit ?" , or you tell a colleague "hey bro , please check the changes i made with this commit" ? Basically someone else asking you to check the changes they made with a specific commit ? In such a case how do you get the files by a specific commit to your local computer ? Well me , until today , I have been copying those files manually to my local like an idiot. But just now I found out that you can use the built in git command of git cherry-pick for this kind of work!  Just type git cherry-pick <commit-hash> and you can get your buddy's code onto your local with a blink of an eye. This will automatically commit the commit to your local though , so if you are a man of culture like me just use  git cherry-pick -n  to stop it from committing. This still stages the changes but least you can have a look at the diff easily this way. I'm pretty sure there must be plenty of other ...