Skip to content

Instantly share code, notes, and snippets.

View AbdelrhmanAmin's full-sized avatar
🐺

Abdo Amin AbdelrhmanAmin

🐺
  • Frontend Dev
  • Egypt, Alexandria.
View GitHub Profile

How to google bugs like a pro 🐜 👈😎👍

1. Introduction

After years of coding and debugging my code, I've had to search for a lot of bug fixes online. Because of this, I've come up up with multiple googling techniques. I'd like to share these techniques here, to help others save time while searching for code solutions online.

2. General search techniques

These are techniques that apply to any type of online search you want to do, not just coding. Later on I'll touch on the subject of how to deal with error messages, and code searches.

@michaeltreat
michaeltreat / psql_wsl_install.md
Last active May 7, 2024 21:14
Postgres WSL install instructions

Install psql on WSL

Home

This install is pretty different from previous versions of psql install instructions for windows. This install uses the WSL and Ubuntu shell.

We are installing this through the Ubuntu command line which is different from the other Ubuntu install instructions because those instructions use Ubuntu's GUI, which we don't have access to here.

NOTE: Since this is a service that is running on Ubuntu, you should be in the the Ubuntu file system when running these commands!

Install

// Pop quiz! What gets logged?
var o = {
[console.log('before')]: 4,
foo: (function () {
console.log('nope :(');
throw 'nope'
})(),
[console.log('after')]: 4
Slayer's Testament I
In the first age, in the first battle, when the shadows first lengthened, one stood. Burned by the embers of Armageddon, his soul blistered by the fires of Hell and tainted beyond ascension, he chose the path of perpetual torment. In his ravenous hatred he found no peace; and with boiling blood he scoured the Umbral Plains seeking vengeance against the dark lords who had wronged him. He wore the crown of the Night Sentinels, and those that tasted the bile of his sword named him... the Doom Slayer.
Slayer's Testament II
Tempered by the fires of Hell, his iron will remained steadfast through the passage that preys upon the weak. For he alone was the Hell Walker, the Unchained Predator, who sought retribution in all quarters, dark and light, fire and ice, in the beginning and the end, and he hunted the slaves of Doom with barbarous cruelty; for he passed through the divide as none but demon had before.