<prompt>
<role>Senior Konsultant Optymalizacji Procesów z ekspertyzą w reengineering procesów biznesowych, metodologii lean i wydajności operacyjnej</role>
<task>Przeanalizuj dostarczone wsady procesowe (instrukcje, diagramy, ramy procesów, odpowiedzialne role) i krytycznie oceń je pod kątem nieefektywności, dostarczając bezpośrednie, wykonalne rekomendacje poprawy.</task>
<context>
<situation>Organizacje często wdrażają procesy zawierające redundancje, niepotrzebne kroki, niejasne odpowiedzialności lub nielogiczne przepływy pracy. Twoją rolą jest identyfikacja tych nieefektywności poprzez rygorystyczną analizę i dostarczenie jasnych rekomendacji optymalizacji.</situation>
<domain_knowledge>
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2 | |
with: | |
role-to-assume: ${{ env.AWS_WORKFLOW_ROLE }} | |
role-session-name: ${{env.AWS_ROLE_SESSION_NAME}} | |
aws-region: ${{env.AWS_REGION }} | |
- name: Login to Amazon ECR | |
id: login-ecr | |
uses: aws-actions/amazon-ecr-login@062b18b96a7aff071d4dc91bc00c4c1a7945b076 #v2.01 | |
- name: get ECR registry name |
Metaprompt: Zaawansowana Rekurencyjna Analiza Problemu Biznesowego z Wykorzystaniem Meta Chain of Thought
Jako zaawansowany analityk biznesowy, posiadasz unikalne połączenie umiejętności analitycznych, strategicznego myślenia i głębokiego zrozumienia dynamiki biznesowej. Twoje zadania obejmują:
- Kompleksową analizę złożonych problemów biznesowych z uwzględnieniem wielu zmiennych i perspektyw.
- Wykorzystanie zaawansowanych technik modelowania i prognozowania do przewidywania potencjalnych wyników.
- Reviewed and merged pull requests for the new payment gateway integration.
- Refactored the order processing microservice to improve performance using Spring Boot optimizations.
- Collaborated with the frontend team to align on API specifications for the new cart service.
- Successfully optimized the order processing service, reducing average processing time by 20%.
- Resolved a critical bug in the payment gateway integration that was causing intermittent failures in production.
- Provided mentorship to a junior developer, guiding them through implementing a feature in the customer management module.
#!/usr/bin/env zsh | |
# Script Name: cancel_github_workflows.zsh | |
# Description: This script cancels GitHub Actions workflows for a specific branch | |
# that are either queued or in progress. | |
# | |
# Usage: ./cancel_github_workflows.zsh <branch_name> | |
# | |
# Arguments: | |
# <branch_name>: The name of the branch for which to cancel workflows |
org=<your org> | |
repo=<your repo> | |
# Get workflow IDs with status "disabled_manually" | |
workflow_ids=($(gh api repos/$org/$repo/actions/workflows --paginate | jq '.workflows[] | select(.["state"] | contains("disabled_manually")) | .id')) | |
for workflow_id in "${workflow_ids[@]}" | |
do | |
echo "Listing runs for the workflow ID $workflow_id" | |
run_ids=( $(gh api repos/$org/$repo/actions/workflows/$workflow_id/runs --paginate | jq '.workflow_runs[].id') ) |
FWIW: I (@Rondy) am not the author of the content presented here, which is an outline from Edmond Lau's book. I've just copy-pasted it from somewhere and saved as a personal gist, before it got popular on newsnews.ycombinator.com. I don't remember where exactly the original source is from and neither could find the author's name, so I cannot give him/her the proper credits.
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
FWIW: I (@Rondy) am not the author of the content presented here, which is an outline from Edmond Lau's book. I've just copy-pasted it from somewhere and saved as a personal gist, before it got popular on newsnews.ycombinator.com. I don't remember where exactly the original source is from and neither could find the author's name, so I cannot give him/her the proper credits.
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
Chai BDD assertions provide a more expressive and readable syntax compared to the assert library in Node.js. | |
The BDD-style syntax resembles natural language, making the tests easier to understand and maintain. | |
// Using Chai BDD assertions | |
expect(foo).to.be.a('string'); | |
expect(foo).to.have.lengthOf(3); | |
expect(foo).to.equal('bar'); | |
// Using Node.js assert library | |
assert.strictEqual(typeof foo, 'string'); |
const chai = require('chai'); | |
const chaiHttp = require('chai-http'); | |
const { afterEach, describe, it } = require('mocha'); | |
chai.use(chaiHttp); | |
const expect = chai.expect; | |
// Server URL | |
const serverUrl = 'http://localhost:3000'; |