Get push notifications on your phone, laptop, or desktop when Claude Code needs your input or finishes a task. Uses ntfy.sh — a free, open-source push notification service with no account required.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from boto3 import session | |
| ACCESS_ID = "XXX" | |
| SECRET_KEY = "XXX" | |
| REGION = "XXX" | |
| BUCKET = "XXX" | |
| session = session.Session() | |
| client = session.client('s3', | |
| region_name=REGION, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| SERVICE_NAME= | |
| FAIL_URL= | |
| OK_URL= | |
| if [ -z `docker ps -q --no-trunc | grep $(docker-compose ps -q $SERVICE_NAME)` ]; | |
| then curl -fsS --retry 3 $FAIL_URL; | |
| else curl -fsS --retry 3 $OK_URL; | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from __future__ import print_function | |
| import os | |
| import json | |
| try: | |
| from urllib.request import Request, urlopen # Python 3 | |
| except ImportError: | |
| from urllib2 import Request, urlopen # Python 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const IPFS = require("ipfs"); | |
| const OrbitDB = require("orbit-db"); | |
| const ipfs = new IPFS({ | |
| repo: "./ipfs", | |
| EXPERIMENTAL: { | |
| pubsub: true | |
| } | |
| }); |
-
Clone the git repository https://github.com/awslabs/amazon-ecr-credential-helper.git
-
cd to the cloned folder "amazon-ecr-credential-helper"
-
Run the command on terminal "make docker" (it will create the binary "./bin/local/docker-credential-ecr-login")
-
Copy this binary to /usr/bin with the command " sudo cp ./bin/local/docker-credential-ecr-login /usr/bin/docker-credential-ecr-login
-
Create or modify the docker config.json file available at /.docker/config.json with the below content
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rmate test.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| date --date='TZ="Europe/London" 12:00 tomorrow' +%s%N | cut -b1-13 |
NewerOlder