Skip to content

Instantly share code, notes, and snippets.

View hamzaakhtar953's full-sized avatar
🎯
Focusing

Muhammad Hamza Akhtar hamzaakhtar953

🎯
Focusing
View GitHub Profile
@hamzaakhtar953
hamzaakhtar953 / sublime_config.md
Last active August 27, 2020 13:28
Accessing Sublime from Terminal (Mac)

Accessing Sublime from Terminal (Mac)

1- Check if Sublime is already installed using the following command

/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl

2- Check if /usr/local/bin is in your PATH using echo $PATH

This should output something like /usr/local/bin:/usr/bin:/bin:/usr/sbin

@hamzaakhtar953
hamzaakhtar953 / diverged_branch.md
Last active August 27, 2020 13:28
Merging a diverged sub-branch into master

Merging a diverged sub-branch into master

If you have a sub-branch e.g. master-v2 that has way too many changes and diverged from the master branch then in order to force the changes to master branch we use the following.

git fetch
git checkout master
git reset --hard origin/[sub-branch name]
git push origin master -f
@hamzaakhtar953
hamzaakhtar953 / CELERYCONFIG.md
Last active May 14, 2024 09:53
Configuring Celery + Redis + Supervisor with Django

Configuring Celery + Redis + Supervisor with Django

Install Celery

$ pip install celery
$ pip install redis

Install Celery Broker

@hamzaakhtar953
hamzaakhtar953 / sublime_as_git_editor.md
Last active August 28, 2020 03:46
Setting Sublime as you git editor
@hamzaakhtar953
hamzaakhtar953 / PY0101EN-1-1-Types.ipynb
Created March 28, 2021 14:54
Created on Skills Network Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hamzaakhtar953
hamzaakhtar953 / PY0101EN-2-1-Tuples.ipynb
Created March 29, 2021 12:52
Created on Skills Network Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hamzaakhtar953
hamzaakhtar953 / PY0101EN-3-1-Conditions.ipynb
Created March 30, 2021 12:28
Created on Skills Network Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hamzaakhtar953
hamzaakhtar953 / PY0101EN-3-3-Functions.ipynb
Created March 30, 2021 14:40
Created on Skills Network Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hamzaakhtar953
hamzaakhtar953 / PY0101EN-3-4-Classes.ipynb
Created April 2, 2021 17:22
Created on Skills Network Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hamzaakhtar953
hamzaakhtar953 / PY0101EN-4-2-WriteFile.ipynb
Created April 3, 2021 19:29
Created on Skills Network Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.