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
| #!/usr/local/bin/bash | |
| FILE_DIR="$(TZ='utc' date +%Y/%m/%d)" | |
| JSON_INPUT="$(cat)" | |
| CODEX_SESSION_ID=$(echo "${JSON_INPUT}" | yq .session_id) | |
| CODEX_TURN_ID=$(echo "${JSON_INPUT}" | yq .turn_id) | |
| CODEX_WORKDIR=$(echo "${JSON_INPUT}" | yq .cwd) | |
| CODEX_TRANSCRIPT_PATH=$(echo "${JSON_INPUT}" | yq .transcript_path) | |
| CODEX_RESPONSE=$(echo "${JSON_INPUT}" | yq .last_assistant_message) |
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
| #!/usr/local/bin/bash | |
| if test $# -ne 1; then | |
| echo 'Wrong arguments!'; exit 1; fi | |
| SERVICE_NAME="$1" | |
| if test -z "${SERVICE_NAME}"; then | |
| echo "Service name \"${SERVICE_NAME}\" is empty!"; exit 1; 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
| #!/usr/local/bin/bash | |
| ARCH='amd64' | |
| PLATFORM="linux/${ARCH}" | |
| HOST='docker.io' | |
| NAMESPACE='kepocnhh' | |
| ISSUER='debian' | |
| ISSUER_VERSION='trixie' | |
| REPOSITORY="${ISSUER}-${ISSUER_VERSION}-${ARCH}" | |
| IMAGE_VERSION='10' |
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
| [Unit] | |
| After=network-online.target | |
| Wants=network-online.target | |
| StartLimitIntervalSec=32 | |
| StartLimitBurst=1 | |
| [Service] | |
| User=johndoe | |
| Type=simple | |
| WorkingDirectory=/home/johndoe |
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
| #!/usr/local/bin/bash | |
| if test $# -ne 4; then | |
| echo 'Wrong arguments!'; exit 1; fi | |
| TG_BOT_ID="$1" | |
| TG_BOT_TOKEN="$2" | |
| TG_CHAT_ID="$3" | |
| TG_MESSAGE="$4" |
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
| [Unit] | |
| After=network-online.target | |
| Wants=network-online.target | |
| [Service] | |
| User=johndoe | |
| Type=simple | |
| WorkingDirectory=/home/johndoe | |
| ExecStart=/home/johndoe/.local/bin/xray run -c /home/johndoe/.config/xray/config.json | |
| AmbientCapabilities=CAP_NET_BIND_SERVICE |
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
| #!/usr/local/bin/bash | |
| echo "Enter dir:" | |
| read -e ISSUER | |
| ROOT_DIR="$(realpath "${ISSUER}")" | |
| if test $? != 0; then | |
| echo "Read dir \"${ISSUER}\" error!"; exit 1; 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
| #!/usr/local/bin/bash | |
| rm config.json | |
| LOGLEVEL='warning' | |
| INBOUND_PROTOCOL='vless' | |
| INBOUND_LISTEN='0.0.0.0' | |
| INBOUND_PORT=443 |
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
| #!/usr/local/bin/bash | |
| TELEPROXY_PORT=443 | |
| ### | |
| MTPROTO_SECRETS_PATH="${HOME}/.config/mtproto/mtproto_secrets.txt" | |
| ISSUER="${MTPROTO_SECRETS_PATH}" | |
| if [[ ! -f "${ISSUER}" ]]; then |
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
| #!/usr/local/bin/bash | |
| MTPROXY_DATETIME="$(TZ=utc date +%Y%m%d%H%M%S)" | |
| MTPROXY_LOCAL_PORT=8888 | |
| MTPROXY_PORT=8443 | |
| ### | |
| MTPROXY_SECRETS_PATH="${HOME}/.config/mtproxy/mtproxy_secrets.txt" |
NewerOlder