{"id":19447395,"url":"https://github.com/roopesh519/cheat-sheet","last_synced_at":"2026-02-03T07:34:35.117Z","repository":{"id":255331660,"uuid":"849261124","full_name":"Roopesh519/Cheat-sheet","owner":"Roopesh519","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-01T11:57:57.000Z","size":1067,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-08T13:13:13.603Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Roopesh519.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-08-29T09:21:37.000Z","updated_at":"2025-06-01T11:58:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"d325c57c-a7dc-40c0-809c-40173545594f","html_url":"https://github.com/Roopesh519/Cheat-sheet","commit_stats":null,"previous_names":["roopesh519/cheat-sheet"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Roopesh519/Cheat-sheet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Roopesh519%2FCheat-sheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Roopesh519%2FCheat-sheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Roopesh519%2FCheat-sheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Roopesh519%2FCheat-sheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Roopesh519","download_url":"https://codeload.github.com/Roopesh519/Cheat-sheet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Roopesh519%2FCheat-sheet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29037528,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T06:39:36.383Z","status":"ssl_error","status_checked_at":"2026-02-03T06:39:32.787Z","response_time":96,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T16:17:50.092Z","updated_at":"2026-02-03T07:34:35.103Z","avatar_url":"https://github.com/Roopesh519.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CHEAT SHEET\n______________________________________________________________________________\n\n## Table of Contents\n- [Prompts for Happy, Unhappy Path and Gherkin](#prompts-for-happy-unhappy-path-and-gherkin)\n- [GIT Fundamental Commands](#git-fundamental-commands)\n- [iMac Shortcuts](#imac-shortcuts)\n- [Emulator Commands](#emulator-commands)\n\n---\n\n## Prompts for Happy, Unhappy Path and Gherkin\n\n**Generate Happy paths and Unhappy paths**\n```markdown\nWrite the happy paths and unhappy paths for the following scenarios step by step. Just include the paths without headings and subheadings. Start with \"Acceptance Criteria\" heading, then list the happy and unhappy paths.\n```\n\n**Generate Gherkin for the Acceptance Criteria**\n```markdown\nGenerate concise Gherkin syntax examples for general button interactions based on context. Use a first-person perspective, starting with \"When I click this button.\" For positive outcomes, include \"Given I am on this screen\" or \"Then I should see this screen\" or \"Then I should be redirected to this screen.\" Also, include \"Then I should receive a message stating that 'example'.\" Adapt the number of examples based on context, incorporating happy paths and unhappy paths. Break down scenarios if there are more than 3 or 4 details; otherwise, keep it concise using \"And\" to divide details. Always use \"When I click the [Button Name] button\" for button interactions. Additionally, format multiple data entries in a more concise manner (e.g., use \"And I enter a valid email address, phone number, and mobile number\"). Ensure that error or success messages are consistently displayed as \"I receive a message stating that 'message'.\"\n\nConsider the specified Conditions of Satisfaction (COS) for the Gherkin syntax. Provide all possible scenarios and scenario outlines. Include invalid scenarios in Gherkin examples.\n\nWhen you are ready, say yes and I will enter the scenarios.  \nThink step by step.\n\nThe format is\n\nAcceptance Criteria\n(nothing under acceptance criteria)\nHappy Paths:\n(All the happy paths with number bullets )\nUnhappy Paths:\n(All the unhappy paths with number bullets )\n```\n---\n\n## GIT Fundamental Commands\n\n### Git Fundamentals\n1. `git add .`\n2. `git commit -m “EX-111 #time 1h 30m feature: write the updates”`\n3. `git push`\n4. `git pull`\n5. `git stash` - If you have added changes but want to switch to another branch before committing, stash will hide the changes and retrieve them later.\n6. `git stash apply`\n\n### Important Commands\n1. Dry run\n```markdown\nnpm run bdd_dry_run\n```\n2. Run localhost\n```markdown\nnpm run dev\n```\n3. Run single feature\n```markdown\nnpx cucumber-js path/to/your/file.feature --import test\n```\n4. Run all the features  \n8. Install Packages\n```markdown\nnpm i --force\n```\n```markdown\nnpm install --force\n```\n\n### Test the Pipeline Locally\n```markdown\npm2 kill\n```\n```markdown\nnpm run build\n```\n```markdown\npm2 start scripts/server.js\n```\n```markdown\nnode scripts/bdd_unit_testing_azure.js\n```\n```markdown\nnode scripts/integration_testing.js\n```\n\n### Miscellaneous Commands:\n1. Remove a directory:\n```markdown\nrm -rf directory-name\n```\n```markdown\nrm -r directory-name\n```\n\n---\n\n## iMac Shortcuts\n\n### System and Finder Shortcuts\n- `Command (⌘) + Space`: Open Spotlight search.\n- `Command (⌘) + Tab`: Switch between open applications.\n- `Command (⌘) + Option (⌥) + Esc`: Force quit an application.\n- `Command (⌘) + H`: Hide the current application.\n- `Command (⌘) + Q`: Quit the current application.\n- `Command (⌘) + N`: Open a new Finder window.\n- `Command (⌘) + Shift (⇧) + N`: Create a new folder.\n- `Command (⌘) + Delete (⌫)`: Move selected item to the Trash.\n- `Command (⌘) + Shift (⇧) + Delete (⌫)`: Empty the Trash.\n\n### Text Editing and Document Shortcuts\n- `Command (⌘) + C`: Copy selected item.\n- `Command (⌘) + V`: Paste copied item.\n- `Command (⌘) + X`: Cut selected item.\n- `Command (⌘) + Z`: Undo the previous action.\n- `Command (⌘) + Shift (⇧) + Z`: Redo the previous undo.\n- `Command (⌘) + A`: Select all items.\n- `Command (⌘) + F`: Find items in a document or open a Find window.\n- `Command (⌘) + S`: Save the current document.\n- `Command (⌘) + P`: Print the current document.\n- `Command (⌘) + T`: Open a new tab (in supported apps).\n\n### Window and Application Management\n- `Command (⌘) + M`: Minimize the current window.\n- `Command (⌘) + Option (⌥) + M`: Minimize all windows of the current application.\n- `Command (⌘) + W`: Close the current window.\n- `Command (⌘) + Option (⌥) + W`: Close all windows of the current application.\n- `Command (⌘) + Control (⌃) + F`: Toggle full-screen mode.\n\n### Screenshot Shortcuts\n- `Command (⌘) + Shift (⇧) + 3`: Capture the entire screen.\n- `Command (⌘) + Shift (⇧) + 4`: Capture a selected area of the screen.\n- `Command (⌘) + Shift (⇧) + 5`: Open the screenshot toolbar to take screenshots and screen recordings.\n\n### Accessibility and Special Features\n- `Command (⌘) + Option (⌥) + D`: Show or hide the Dock.\n- `Command (⌘) + Control (⌃) + Space`: Open the Character Viewer to select emojis and symbols.\n- `Command (⌘) + Control (⌃) + Q`: Lock the screen.\n\n---\n\n## Emulator Commands\n\n### Emulator Path\n```bash\nexport ANDROID_HOME=$HOME/Library/Android/sdk\nexport PATH=$PATH:$ANDROID_HOME/emulator\nexport PATH=$PATH:$ANDROID_HOME/platform-tools\n```\n\n### Run Emulator\n```bash\nnpm run android:dev\n```\n\n### Detox Build Command\n```bash\ndetox build -c android.emu.debug \n```\n\n### Build the Android App for Testing\n```bash\nnpm run prebuild\n```\n```markdown\ncd android\n```\n```markdown\n./gradlew app:assembleRelease\n```\n\n### Get the APK File\nRetrieve the APK from:\n```bash\nAndroid/app/build/outputs/apk/release/app-release.apk\n```\n\n# To build the docs use the following commands\n\n### Run the Virtual environment\n```bash\nsource venv/bin/activate\n```\n\n### Build the docs\n```bash\nmkdocs build\n```\n\n### Deactivate the venv\n```bash\ndeactivate\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froopesh519%2Fcheat-sheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froopesh519%2Fcheat-sheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froopesh519%2Fcheat-sheet/lists"}