A fast lookup guide for software engineers, backend developers, and DevOps teams covering HTTP response codes, regex patterns, unix permissions, cron schedules, and essential Git CLI commands.
Essential reference equations governing calculations in this domain.
Chmod = (R \times 4) + (W \times 2) + (X \times 1)Calculates the 3-digit octal permission for User, Group, and Others in POSIX file systems.
Usable\ Hosts = 2^{(32 - CIDR)} - 2Calculates usable host IP addresses in an IPv4 network after reserving network (first) and broadcast (last) addresses.
Standard RFC 9110 HTTP status codes categorized by response family.
| Code | Name | Category | Meaning & Caching Guideline |
|---|---|---|---|
| 200 | OK | 2xx Success | Standard successful response for GET/POST/PUT requests. Cacheable. |
| 201 | Created | 2xx Success | Resource created via POST/PUT. Should include Location header. |
| 204 | No Content | 2xx Success | Action succeeded but response body is intentionally empty (e.g. DELETE). |
| 301 | Moved Permanently | 3xx Redirect | Target resource has permanent new URI. Crawlers pass link juice. |
| 304 | Not Modified | 3xx Redirect | Client cached copy is valid based on ETag / If-Modified-Since headers. |
| 400 | Bad Request | 4xx Client Error | Malformed request syntax, invalid parameters, or bad JSON payload. |
| 401 | Unauthorized | 4xx Client Error | Authentication required. Missing, invalid, or expired bearer token. |
| 403 | Forbidden | 4xx Client Error | Authenticated user lacks sufficient permission/RBAC scope for resource. |
| 404 | Not Found | 4xx Client Error | Requested endpoint or resource does not exist on the server. |
| 429 | Too Many Requests | 4xx Client Error | Rate limit exceeded. Often paired with Retry-After header. |
| 500 | Internal Server Error | 5xx Server Error | Generic uncaught server exception or backend crash. |
| 502 | Bad Gateway | 5xx Server Error | Upstream backend or reverse proxy (Nginx/Cloudflare) returned invalid response. |
| 503 | Service Unavailable | 5xx Server Error | Server is temporarily overloaded or down for scheduled maintenance. |
| 504 | Gateway Timeout | 5xx Server Error | Upstream server took too long to complete request before proxy timeout. |
Core regex tokens, meta-characters, anchors, and lookaround syntax.
| Token | Pattern Type | Matches | Example Pattern |
|---|---|---|---|
| ^ | Anchor | Start of string or start of line (multiline mode) | ^https?:// |
| $ | Anchor | End of string or end of line | \.json$ |
| \d | Character Class | Any single decimal digit [0-9] | \d{3}-\d{2}-\d{4} |
| \w | Character Class | Any alphanumeric word character + underscore [a-zA-Z0-9_] | \w+ |
| \s | Character Class | Any whitespace character (space, tab, newline) | \s+ |
| [abc] | Character Set | Any single character contained within the brackets | [aeiou] |
| [^abc] | Negated Set | Any single character NOT within the brackets | [^0-9] |
| * | Quantifier | Zero or more occurrences (greedy) | a* |
| + | Quantifier | One or more occurrences (greedy) | a+ |
| ? | Quantifier | Zero or one occurrence / lazy quantifier modifier | colou?r |
| {n,m} | Quantifier | Between n and m occurrences inclusive | \d{4,8} |
| (?=...) | Lookaround | Positive lookahead: matches without consuming characters | \d+(?=px) |
| (?!...) | Lookaround | Negative lookahead: ensures pattern does NOT follow | foo(?!bar) |
| (?<=...) | Lookaround | Positive lookbehind: ensures pattern precedes match | (?<=₹)\d+ |
Read, write, and execute permissions broken down by user, group, and world.
| Octal | Symbolic Notation | Owner / Group / Others | Standard Usage Scenario |
|---|---|---|---|
| 777 | rwxrwxrwx | Full Access for All | Dangerous! Avoid in production; causes security warnings. |
| 755 | rwxr-xr-x | Owner: Full | Group & Others: Read+Exec | Standard for web directories, executable scripts & binaries. |
| 700 | rwx------ | Owner: Full | Group & Others: None | Private user scripts, ~/.ssh directory root. |
| 644 | rw-r--r-- | Owner: Read+Write | Group & Others: Read | Standard for HTML, CSS, images, and public web documents. |
| 600 | rw------- | Owner: Read+Write | Group & Others: None | SSH private keys (~/.ssh/id_rsa), database credentials, .env files. |
| 400 | r-------- | Owner: Read Only | Group & Others: None | Immutable certificates, read-only secret keys. |
5-field POSIX cron schedule reference (* * * * *).
| Expression | Interval | Field Breakdown (Min Hr Day Mon Wk) | Use Case Description |
|---|---|---|---|
| * * * * * | Every minute | Runs every 60 seconds continuous | Health check monitoring pings |
| */5 * * * * | Every 5 minutes | 0, 5, 10, 15... past each hour | High frequency metric polling |
| 0 * * * * | Every hour on the hour | Minute 0 of every single hour | Cache warming, feed refreshes |
| 0 0 * * * | Daily at midnight (00:00) | Minute 0, Hour 0, every day | Database snapshot, log rotation |
| 0 2 * * * | Daily at 02:00 AM | Off-peak low traffic hour | Nightly database vacuum and backup |
| 0 0 * * 0 | Weekly on Sunday midnight | Day 0 = Sunday | Weekly email digest dispatch |
| 0 0 1 * * | Monthly on the 1st | Day 1 of every month at midnight | Monthly subscription billing cycles |
Frequently used commands for repository management, branching, and staging.
| Command | Action Summary | Flags & Options | Recommended Scenario |
|---|---|---|---|
| git checkout -b <branch> | Create & switch to new branch | -b creates if not exists | Starting a new feature branch |
| git commit --amend --no-edit | Update latest commit with staged files | --no-edit preserves commit message | Adding a missed file to last commit |
| git stash push -m "msg" | Temporarily save uncommitted changes | -u to include untracked files | Switching branches with work-in-progress |
| git stash pop | Reapply most recent stashed changes | Drops stash entry on success | Resuming work after branch switch |
| git reset --soft HEAD~1 | Undo commit but keep files staged | --soft keeps index clean | Reworking the most recent commit |
| git cherry-pick <commit-hash> | Apply specific commit to current branch | -x to append original commit hash | Porting a single bugfix to production |
Calculate, convert, and test these formulas directly in your browser with 100% private client-side execution.
Clear technical and regulatory explanations regarding these parameters and formulas.