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
| 1. # create new .py file with code found below | |
| 2. # install ollama | |
| 3. # install model you want “ollama run mistral” | |
| 4. conda create -n autogen python=3.11 | |
| 5. conda activate autogen | |
| 6. which python | |
| 7. python -m pip install pyautogen | |
| 7. ollama run mistral | |
| 8. ollama run codellama | |
| 9. # open new terminal |
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: 'Bootstrap Terraform' | |
| on: | |
| - pull_request | |
| env: | |
| tf_version: 'latest' | |
| tf_working_dir: '0-bootstrap' | |
| GOOGLE_CREDENTIALS: ${{secrets.GOOGLE_CREDENTIALS}} | |
| jobs: | |
| terraform: | |
| name: 'Terraform' |
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
| -- WARNING: back up the table before this operation | |
| -- FOR large size timestamp partitioned table | |
| -- ------------------------------------------- | |
| -- -- To de-duplicate rows of a given range of a partition table, using surrage_key as unique id | |
| -- ------------------------------------------- | |
| DECLARE dt_start DEFAULT TIMESTAMP("2019-09-17T00:00:00", "America/Los_Angeles") ; | |
| DECLARE dt_end DEFAULT TIMESTAMP("2019-09-22T00:00:00", "America/Los_Angeles"); | |
| MERGE INTO `gcp_project`.`data_set`.`the_table` AS INTERNAL_DEST |