Posts

Showing posts with the label internet

Sync Forked Repository With Upstream 🔁✔️

Here's the situation, You have forked a repository on GitHub, you have made your changes and sent a pull request and that request has been merged.  Now you want to make further changes, but the repository mentions that you are X commits ahead or/and X commits behind upstream repository. So how do you sync it? You can delete your fork and fork the original repository again, but that is a very tedious thing to do. Here's another way to do this: 1. Clone your fork git clone https://github.com/yourname/repo.git cd yourname/repo 2. Add upstream remote git remote add upstream https://github.com/original-author/repo.git git fetch upstream 3. Ignore all changes in fork and sync with upstream git reset --hard upstream/master git push -f origin master Only do this if you have no changes on your fork that you will like to keep. This will set your fork's master to be the same as upstream's master. Now you are free to make any changes you wish to...

Enable Dark Mode On Chrome Everywhere 🌜🌎

Image
Preview of GitHub with Dark Mode There are lots of extensions out there that turn your web browsing experience much better if you prefer dark backgrounds (who doesn't right?). My favourite one is Dark Reader but there's just one problem, mobile versions of chrome don't support extensions. This trick will help you turn on dark mode everywhere. Steps: Visit Chrome flags by entering chrome://flags/ into the address bar. Search for dark in the flags search bar. On Desktop versions you'll have to enable the flag "Force Dark Mode for Web Contents" which is tagged #enable-force-dark . On Android versions you'll have to enable the flag "Darken websites checkbox in themes setting" which is tagged #darken-websites-checkbox-in-themes-setting . Restart Chrome and enjoy the dark side. That's all, Thank you for reading. Hopefully this post was helpful to you, see you in the next one.

Two Factor Authentication 🔏👤

Image
In a previous post, I wrote about password managers and why you should have one, In this follow up article I'll try to explain Two Factor Authentication or 2FA and how it can make your security more robust. So what 2FA does is that It adds another layer to your security. After you provide your username and password 2FA will ask for a special code that you may receive via SMS or an authenticator app. You can only login after providing the 2FA code. So now, even if someone manages to get their hands on your login credentials they still won't be able to access your account. 2FA is not unbreakable but it is more secure than passwords. Most of the online services provide 2FA including Google, Facebook, Twitter, GitHub, Steam etc. You can setup 2FA for your account by going to the security settings of that platform. For authentication you may use SMS or an authenticator app. Using an authenticator app is recommended though as it can backup your codes and ...

Password Managers 101 🔑🌐

Image
All of us have at least 10 or more accounts on the net nowadays and managing all those passwords can get tricky if not done correctly. You can easily forget your password and if you don't you have a very easy to guess password, and that is a very terrible thing to do. You also have to remember other information like credit card informations, licence keys, secure notes etc. A simple solution to those problems is a password manager. A password manager creates a database of your passwords, username and other details. Those passwords could then be easily synced across your devices and with things like autofill they make the whole online experience much more simpler to everyone without worrying about a gazillion passwords. You do have to remember the master password for your specific database and that's a necessary evil. A good option is KeePass it has both online and offline capabilities and is completely free. KeePass is available on all the major ...