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
@bradtraversy
bradtraversy / mongodb_cheat_sheet.md
Last active September 19, 2024 17:29
MongoDB Cheat Sheet

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@bradtraversy
bradtraversy / myscript.sh
Last active August 11, 2024 04:53
Basic Shell Scripting
#! /bin/bash
# ECHO COMMAND
# echo Hello World!
# VARIABLES
# Uppercase by convention
# Letters, numbers, underscores
NAME="Bob"
# echo "My name is $NAME"
@michaeltreat
michaeltreat / mongodb_shell_commands.md
Last active September 5, 2024 09:14
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.

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

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

@barbietunnie
barbietunnie / udemy-courses-download-using-cookies.md
Last active September 13, 2024 18:00
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}
@simonw
simonw / how-to.md
Last active August 7, 2024 22:13
How to create a tarball of a git repository using "git archive"
@uupaa
uupaa / image.resize.in.github.flavored.markdown.md
Last active September 21, 2024 18:26
image resize in github flavored markdown.

Image source

https://gyazo.com/eb5c5741b6a9a16c692170a41a49c858.png

Try resize it!

  • ![](https://gyazo.com/eb5c5741b6a9a16c692170a41a49c858.png | width=100)
@TylerFisher
TylerFisher / hosting-on-github.md
Last active September 20, 2024 23:11
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