This file contains 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
{%- for message in messages %} | |
{%- if message['role'] == 'system' -%} | |
{{- message['content'] -}} | |
{%- else -%} | |
{%- if message['role'] == 'user' -%} | |
{{-'[INST] ' + message['content'].rstrip() + ' [/INST]'-}} | |
{%- else -%} | |
{{-'' + message['content'] + '</s>' -}} | |
{%- endif -%} | |
{%- endif -%} |
This file contains 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
#### Requirements: | |
1. **Backend (NodeJS + Express):** | |
- Use PostgreSQL to manage CRUD operations on items. | |
- Integrate MongoDB to log each search query with metadata like the timestamp and user ID (if authentication is implemented). | |
- Enhance the search functionality to interact with both databases appropriately. | |
2. **Database Setup:** | |
- **PostgreSQL:** Continue using PostgreSQL for managing the `items` table with CRUD operations. | |
- **MongoDB:** Set up a collection to store search logs, including the search term, date/time, and optionally the user ID. |
This file contains 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
#### Objective: | |
Extend the existing functionality of the CRUD operations and regex-based search by integrating MongoDB to log search queries and user interactions, while PostgreSQL handles the main CRUD operations on item data. | |
#### Requirements: | |
1. **Backend (NodeJS + Express):** | |
- Use PostgreSQL to handle CRUD operations on the items. | |
- Integrate MongoDB to log each search query along with metadata like the timestamp and user ID (if authentication is implemented). | |
- Enhance the search functionality in the Express server to interact with both databases appropriately. |
This file contains 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 | |
# File to replace | |
CONFIG_FILE="/etc/containerd/config.toml" | |
# Ensure MIRROR_EP is set | |
if [ -z "$MIRROR_EP" ]; then | |
echo "MIRROR_EP is not set. Exiting." | |
exit 1 | |
fi |
This file contains 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
-- Subject: Unit dremio.service has finished shutting down | |
-- Defined-By: systemd | |
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel | |
-- | |
-- Unit dremio.service has finished shutting down. | |
Dec 21 18:10:32 ip-173-16-51-224.us-east-2.compute.internal systemd[1]: Started Dremio Daemon Server. | |
-- Subject: Unit dremio.service has finished start-up | |
-- Defined-By: systemd | |
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel | |
-- |
This file contains 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
<samlp:Response xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" ID="_7daeed5d448c454a61cf" Version="2.0" IssueInstant="2020-02-21T19:35:18.607Z" Destination="https://manage.auth0.com/tester/samlp"> | |
<saml:Issuer xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">urn:tenant.auth0.com</saml:Issuer> | |
<samlp:Status> | |
<samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/> | |
</samlp:Status> | |
<saml:Assertion xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" Version="2.0" ID="_jHWZRBU4zpCsgQhIfssMrcHSDrzpcxy8" IssueInstant="2020-02-21T19:35:18.603Z"> | |
<saml:Issuer>urn:tenant.auth0.com</saml:Issuer> | |
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#"> | |
<SignedInfo> | |
<CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> |
This file contains 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
{ | |
"_id" : ObjectId("5a61a868454d53e2753967ed"), | |
"invoiceId" : "171112", | |
"__v" : 0, | |
"ship_date" : ISODate("2017-11-30T00:00:00.000Z"), | |
"name" : "Name", | |
"sections" : [ | |
{ | |
"servicePeriod" : { | |
"startDate" : ISODate("2017-11-01T00:00:00.000Z"), |
This file contains 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
-- Logs begin at Tue 2019-07-16 14:56:00 GMT, end at Fri 2019-08-09 06:47:19 GMT. -- | |
Aug 09 06:47:16 ks-blush.labroots.com systemd[1]: dcos-rexray.service: Failed with result 'exit-code'. | |
Aug 09 06:47:16 ks-blush.labroots.com systemd[1]: dcos-rexray.service: Main process exited, code=exited, status=1/FAILURE | |
Aug 09 06:47:16 ks-blush.labroots.com rexray[24821]: error: service startup failed: agent: mod init failed: error initializing instance ID cache | |
Aug 09 06:47:16 ks-blush.labroots.com rexray[24821]: time="2019-08-09T06:47:16Z" level=info msg="all servers closed" | |
Aug 09 06:47:16 ks-blush.labroots.com rexray[24821]: time="2019-08-09T06:47:16Z" level=info msg="closed server error channel" server=rain-hornet-sy time=1565333236290 | |
Aug 09 06:47:16 ks-blush.labroots.com rexray[24821]: time="2019-08-09T06:47:16Z" level=info msg="shutting down endpoint" host="unix:///var/run/rexray/720793672.sock" server=rain-hornet-sy time=1565333236289 tls=false | |
Aug 09 06:47:16 ks-blush.labroots.com rexray[24821]: time="2019-08-0 |
This file contains 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
kubectl version | |
Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.2", GitCommit:"66049e3b21efe110454d67df4fa62b08ea79a19b", GitTreeState:"clean", BuildDate:"2019-05-16T18:55:03Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"darwin/amd64"} | |
Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.3", GitCommit:"5e53fd6bc17c0dec8434817e69b04a25d8ae0ff0", GitTreeState:"clean", BuildDate:"2019-06-06T01:36:19Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"} | |
~/work/keystone/data-platform/platform-architecture/kubeflow master ● kubectl get sc | |
NAME PROVISIONER AGE | |
airflow-01 example.com/aws-efs 39d | |
ebs-gp2 (default) ebs.csi.aws.com 3d | |
keystonehub example.com/aws-efs 3d | |
kubeflow example.com/aws-efs 3d20h | |
~/work/keystone/data-platform/platform-architecture/kubeflow master ● kubectl get nodes |
This file contains 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
... | |
module "dcos" { | |
source = "dcos-terraform/dcos/aws" | |
version = "~> 0.2.0" | |
dcos_instance_os = "centos_7.5" | |
cluster_name = "${var.cluster_name}" | |
... | |
#other config of the module |
NewerOlder