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
| name: Docker Build CI | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| env: | |
| IMAGE_FULL_NAME: ghcr.io/<your_gh_account>/<your_image_name> |
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
| watchtower: | |
| image: "containrrr/watchtower" | |
| environment: | |
| - DOCKER_CONFIG=/config | |
| - WATCHTOWER_NOTIFICATIONS=slack | |
| - WATCHTOWER_NOTIFICATION_SLACK_HOOK_URL=${WATCHTOWER_NOTIFICATION_SLACK_HOOK_URL} | |
| - WATCHTOWER_NOTIFICATION_SLACK_IDENTIFIER=watchtower-bot | |
| - WATCHTOWER_NOTIFICATION_SLACK_CHANNEL=#dsi-services | |
| volumes: | |
| - "/var/run/docker.sock:/var/run/docker.sock" |
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
| name: Docker Image CI | |
| on: | |
| workflow_dispatch: | |
| env: | |
| IMAGE_FULL_NAME: ghcr.io/jasonlo/openalex_search | |
| jobs: | |
| build-and-push: |
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
| curl http://olvi-2:11434/api/chat -d '{"model": "llama3.2", "keep_alive": "12h"}' |
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 | |
| # Check if nvidia-smi is available | |
| if ! command -v nvidia-smi &> /dev/null; then | |
| echo "nvidia-smi not found. Please ensure NVIDIA drivers are installed." | |
| exit 1 | |
| fi | |
| # Get GPU processes using nvidia-smi | |
| process_list=$(nvidia-smi --query-compute-apps=gpu_uuid,pid --format=csv,noheader,nounits) |
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
| name: mkdocs | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest |
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
| { | |
| "rule": [ | |
| { | |
| "action": { | |
| "type": "SetStorageClass", | |
| "storageClass": "COLDLINE" | |
| }, | |
| "condition": { | |
| "age": 3, | |
| "matchesSuffix": [".h5", ".parquet", ".csv"] |
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
| export BUCKET=gs://<bucket-name> | |
| gsutil mb -l us-central1 $BUCKET | |
| gsutil lifecycle set <lifecycle-json-file> $BUCKET | |
| gsutil -m rsync -r runs/<run-name>/ $BUCKET |
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
| # .gitconfig | |
| # single-command alias: lg | |
| # multi-command alias: mp | |
| [alias] | |
| lg = log --all --decorate --oneline --graph | |
| mp = !git checkout master && git pull |
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
| git checkout master | |
| git pull | |
| git checkout -b feature | |
| git push --set-upstream origin feature |
NewerOlder