Skip to content

Instantly share code, notes, and snippets.

View barhouum7's full-sized avatar
👨‍💻
Dreams👉Goals✅🐱‍💻

Ibrahim Ben Salah barhouum7

👨‍💻
Dreams👉Goals✅🐱‍💻
View GitHub Profile
@TylerFisher
TylerFisher / hosting-on-github.md
Last active May 1, 2025 17:15
Basic steps for hosting on Github

Hey there, apparently people are still using this Gist from 2013! It's out of date! Consult the Github docs.

Steps for Hosting a Website on GitHub

  1. Create a GitHub account on github.com.
  2. Download either [GitHub for Mac][1] or [GitHub for Windows][2], depending on your operating system. Open the app and log in using the account you just created.
  3. (On Mac): After you login, click advanced and make sure that your name and email are correct. Then, click "Install Command Line Tools", just in case you want to start using the command line later in life.
  4. Create a new repository in your GitHub application. Name it your-username.github.io. The name is very important. Note the folder that GitHub is saving the repository to. Make sure the "Push to GitHub?" box is checked.
  5. Move your website's files into the folder that GitHub just created when you made the repository. IMPORTANT: Your homepage HTML file must be called "index.html", and it must exist in the top-level
@uupaa
uupaa / image.resize.in.github.flavored.markdown.md
Last active July 4, 2025 07:01
image resize in github flavored markdown.

Image source

https://gyazo.com/eb5c5741b6a9a16c692170a41a49c858.png

Try resize it!

  • ![](https://gyazo.com/eb5c5741b6a9a16c692170a41a49c858.png | width=100)
@simonw
simonw / how-to.md
Last active April 16, 2025 15:21
How to create a tarball of a git repository using "git archive"
@barbietunnie
barbietunnie / udemy-courses-download-using-cookies.md
Last active June 12, 2025 07:04
Downloading Udemy videos with youtube-dl

How to download your Udemy course videos using youtube-dl

$ youtube-dl --list-extractors | grep udemy

Steps

  1. Get link to the course to download. e.g. https://www.udemy.com/course-name/
  2. Login into udemy website, save the cookie from chrome using Chrome (Cookie.txt)[1] export extension. Save it to file udemy-cookies.txt
  3. Get the link of the video that you want to download. usually in format. Use the command provided below where you have to replace the {course_link} and {path_to_cookies_file} with respective paths.
$ youtube-dl {course_link} --cookies {path_to_cookies_file}

الدراسة الجامعية أم التعليم الذاتي لتعلم البرمجة؟

    هذا هو ثاني مقال أكتبه ردا على أسئلة تصلني، ففي مقال سابق كتبت عن تطوير تطبيقات الشبكة العنكبوتية لعام 2017 رداً على سؤال أحد طلابي بعد انتهائنا من مادة تطوير تطبيقات الشبكة العنكبوتية. في هذا المقال سأحاول بإذن الله الإجابة

@michaeltreat
michaeltreat / mongodb_shell_commands.md
Last active May 20, 2025 19:11
Quick Cheat Sheet for Mongo DB Shell commands.

MongoDB Shell Commands Cheat Sheet.

This is a Cheat Sheet for interacting with the Mongo Shell ( mongo on your command line). This is for MongoDB Community Edition.

Preface:

Mongo Manual can help you with getting started using the Shell.

FAQ for MongoDB Fundamentals and other FAQs can be found in the side-bar after visiting that link.

@bradtraversy
bradtraversy / myscript.sh
Last active June 18, 2025 20:35
Basic Shell Scripting
#! /bin/bash
# ECHO COMMAND
# echo Hello World!
# VARIABLES
# Uppercase by convention
# Letters, numbers, underscores
NAME="Bob"
# echo "My name is $NAME"

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database