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
@OmarRamoun
OmarRamoun / gist:f602d582f15abc54d166ad1dda729490
Created July 7, 2023 06:00 — forked from jatcwang/gist:ae3b7019f219b8cdc6798329108c9aee
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

Example #1

const pets = ['Cat', 'Dog', 'Bird', 'Fish', 'Frog', 'Hamster', 'Pig', 'Horse' 'Lion', 'Dragon'];
// Print all pets
console.log(pets[0]);
console.log(pets[1]);
console.log(pets[2]);
console.log(pets[3]);

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.

  • repo -> repository
  • clone -> bring a repo down from the internet (remote repository like Github) to your local machine
  • add -> track your files and changes with Git
  • commit -> save your changes into Git
  • push -> push your changes to your remote repo on Github (or another website)
  • pull -> pull changes down from the remote repo to your local machine
@OmarRamoun
OmarRamoun / python_scripting.rst
Created December 13, 2020 05:00 — forked from jasonkeene/python_scripting.rst
Get started with writing your own python scripts to automate system tasks.

Python for System Admins / Operators

Installing Python

Most Unix/Linux systems come with python pre-installed:

$ python -V
@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