Skip to content

Instantly share code, notes, and snippets.

View OmarRamoun's full-sized avatar
💻
Available for Hire

Ramoun OmarRamoun

💻
Available for Hire
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.

@OmarRamoun
OmarRamoun / index.html
Created September 22, 2020 09:01
layout css
<p>
Having no layout whatsover is almost ok if all you want is one big column of content. However, if a user makes the browser window really wide, <span>(a hidden inline element)</span> it gets kind of annoying to read: after each line your eyes have a long distance to travel right-to-left to the next line. Try resizing your browser to see what I mean!
</p>
<p class='red'>another block level element that starts on a new line and streches all way as far as it can to the left and the right</p>
<a href="# ">first inline element</a><a href="# " class="crimson">second inline element</a>
<main>
some awesome stuff can happen in here

Technologies to learn to be Back End Developer (Python/Django)

  • Linux - be proficient using Ubuntu for example and the CLI and understand how the shell works, what are environment variables, subshells, processes/tasks, etc...
  • Docker (and docker-compose) - what are containers and how they work (conceptually) and how to create and run ones
  • Git - what does version control system mean and how to use Git
  • RDB (relational databases) - what are relational databases, and understand tables, how to create them and make relations between them as needed... also understand that through SQLite and PostgreSQL (preferred) or MySQL
  • Python - how to write python very well and understand its [OOP] implementation...
  • Virtualenv - And how to create virtual environments for python to isolate it from the system's installed version...
  • Virtualenvwrapper to manage virtual environments easily
@jatcwang
jatcwang / gist:ae3b7019f219b8cdc6798329108c9aee
Created February 2, 2017 23:44
List of all setxkbmap configuration options (including models/layout/etc)
! model
pc101 Generic 101-key PC
pc102 Generic 102-key (Intl) PC
pc104 Generic 104-key PC
pc105 Generic 105-key (Intl) PC
dell101 Dell 101-key PC
latitude Dell Latitude series laptop
dellm65 Dell Precision M65
everex Everex STEPnote
flexpro Keytronic FlexPro
@bcavileer
bcavileer / gist:9337032
Created March 3, 2014 23:39
zsh git aliases
gcm='git checkout master'
gco='git checkout'
grba='git rebase --abort'
grbc='git rebase --continue'
grbi='git rebase -i'
gclean='git reset --hard && git clean -dfx'
grh='git reset HEAD'
grhh='git reset HEAD --hard'
gunwip='git log -n 1 | grep -q -c "\-\-wip\-\-" && git reset HEAD~1'
ga='git add'