أدلة عمليةعربي وإنجليزي
مكتبة الموارد
كل دليل بلغتين. الصفحة هنا ملخص، والدليل الكامل في صفحة منفصلة. الموقع فيه إعلانات بتدعم المحتوى المجاني.
الموضوعات
- حماية مفاتيح API وأسرار Git من التسريب: دليل شاملKeeping API keys and Git secrets safe: a guide
- مهام Git اليومية: الفروع وstash والتراجع وحل التعارضاتEveryday Git: branches, stash, undo and merge conflicts
- git revert: undo a commit by adding a new one
- Python json: read JSON text into Python values
- Python pathlib: join paths, read a file and list a folder
- Python re module: find, extract and replace text with regex
- Git Branch Delete: -d versus -D
- Python str.join: build a string from a list
- Git Commit Fixup: correct an earlier commit
- chmod: read the permission string and change it
- curl basics: fetch a page, save it, read the status code
- Bash script arguments and functions: $1, $@, shift and return codes
- Bash conditionals: [ ] and [[ ]] with an empty variable
- Bash exit codes: 0 is success, and && and || use it
- Bash variables, loops and if: the basics
- awk basics: split records into fields
- Python List Slicing: take part of a list
- Python Loop Else: runs when the loop did not break
- Python lru_cache: remember function results
- Python isinstance: check a type
- Python itertools.chain: loop over several sequences as one
- Python Lambda: a small function inline
- Python lists: indexes, slices and the IndexError
- Python: write, append and read a text file
- Python f-strings: expressions and format specs
- Python Generators: produce values one at a time
- Python if, for and while: the basics
- Python Default Arguments: evaluated once
- Python Defaultdict: a dict that fills missing keys
- Python dictionaries: lookup, default values and the KeyError
- Python enumerate, zip and range: loop with an index or two lists
- Python: count with a dict or Counter, and meet sets and tuples
- Python csv module: read and write rows with quoting rules
- Python Dataclasses: a class that stores values
- Python dates: parse and compare
- Python any and all: test a whole list
- Python argparse: read command-line arguments and get useful errors
- Python classes: a small example, line by line
- Python comprehensions: build a list, dict or set in one line
- Python Counter: count items
- grep: search text, with the options worth knowing
- Answer questions about a log file with a pipeline
- Git Merge vs Rebase: How Each Integrates Changes and Shapes History
- Pipes and redirection: where command output goes
- Git Stash Include Untracked: set aside new files too
- Git Switch: change branches
- git tag: name a commit, lightweight and annotated
- .gitignore patterns: which files Git treats as untracked
- Git Shortlog: commits per author
- Git Show: read one commit
- Git Stash: set aside uncommitted work
- Git Restore: unstage or discard a file
- Git Rev Parse: ask Git for a path or a commit id
- Git Rm Cached: stop tracking a file and keep it on disk
- Git Reflog: the history of where HEAD pointed
- git remote: connect a repository to another one
- git reset: soft, mixed and hard on the same repository
- git log: commits reachable from HEAD, and --all
- Git Log -S: find the commit that added or removed a string
- Git Ls Files: list what Git tracks
- Git Mv: rename a tracked file
- Git Config Get: read one setting
- Git Describe: name a commit from the nearest tag
- git diff: unstaged, staged, and against a commit
- Git Grep: search tracked files
- git clean: delete untracked files, with a dry run first
- Git Commit Allow Empty: a commit with no changes
- Git Commit Amend: replace the last commit
- Git Blame: who last changed each line
- Git Branch Rename: change a branch name
- find: -maxdepth, -type f and -size +1c narrow the result
- git bisect: find the commit that broke something
- diff: see what changed between two files
- mkdir, cp, mv and rm: the basic file commands
- find: list files by name and sort the result
- tar basics: pack, list and unpack a folder
- Reading a failed Python test, line by line
- xargs: turn lines of input into command arguments
- Python Zip: loop over lists together
- Restore a deleted branch with git reflog
- sed basics: replace text in a stream
- sort, uniq and cut: count things in a text file
- Python Tuples and Unpacking
- python -m venv: a separate package folder for one project
- Python With Statement: files closed for you
- Reading a Python traceback from the bottom up
- Python try and except: handle an error on purpose
- Python try and finally: code that always runs
- Python sorting: sorted, sort and the key argument
- Python string methods: strip, split, replace and friends
- Python subprocess.run: run a command, read output and exit code
- Python sys.exit: set the exit status
- Python Raise: signal an error on purpose
- Python range: a sequence of numbers
- Python round: ties go to the even number
- Python Sets: unique items and set operations
- Python max and min with key: pick by a rule
- Python modules and imports
- Python os.environ: read environment variables
- Python dict.get: read a key without KeyError
- What a 12-line pre-commit hook catches, and what it doesn't
- حذف .env في commit جديد لا يخفي المفتاحDeleting .env in a new commit does not hide the key
- Git يتتبع .env رغم إضافته إلى .gitignoreGit still tracks .env after adding it to .gitignore
- مفتاح API مسرب: الإلغاء أولا ثم فحص التاريخLeaked API key: revoke first, then scan history
- تخزين مفاتيح API في مشروع بايثونStoring API keys in a Python project
- حذف سر مرفوع من كل تاريخ GitRemoving a committed secret from all Git history
- Create and switch to a new Git branch
- حل تعارض الدمج (merge conflict) في Git خطوة بخطوةHow to fix a Git merge conflict step by step