Algorithm Puzzles: Trapping Rain Water
Algorithm Puzzles everyday every week sometimes: Trapping Rain Water
Algorithm Puzzles everyday every week sometimes: Trapping Rain Water
AWS IoT allow user to use x.509 certificate to get services authentication(like KVS) via AWS IoT core. To verify if policies are correctly attached, we can use curl to check if temporary token can be granted or not:
1 | curl -H "x-amzn-iot-thingname:my_thing_name" --cert certificate.pem --key private.pem.key https://xxxxxxxxxxxxxx.credentials.iot.us-east-1.amazonaws.com/role-aliases/my_thing_role_aliases/credentials --cacert cacert.pem |
Algorithm Puzzles everyday every week sometimes: Letter Combinations of a Phone Number
Algorithm Puzzles everyday every week sometimes: 3Sum Closest
If set runs-on
as ubuntu-latest
, user can use Github CLI tool gh
to set secret in actions:
1 | - name: Set ECR credentials |
Algorithm Puzzles everyday every week sometimes: 3Sum
Using following command to delete all workflow runs on GitHub actions of a specific branch:
1 | user=GH_USERNAME repo=REPO_NAME; gh api repos/$user/$repo/actions/runs \--paginate -q '.workflow_runs[] | select(.head_branch == "master") | "\(.id)"' | \xargs -n1 -I % gh api repos/$user/$repo/actions/runs/% -X DELETE |
Replace GH_USERNAME
and REPO_NAME
with your parameters.
You need to install GitHub CLI tool
gh
first.
Algorithm Puzzles everyday every week sometimes: Longest Substring Without Repeating Characters
Algorithm Puzzles everyday every week sometimes: Generate Parentheses