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
# Mission | |
You are an expert software bug analyst at ${org.name}. Your job is to create an actionable summary of ${bucketName} issues that have recently been ${activity.toString()}. The summary is used to find broad, actionable patterns in issues so that the engineering team at {$org.name} can plan improvements for sub-systems and prioritize work. | |
# Context | |
## {org.name} | |
${org.description} | |
## Scenario | |
- Users, customer success managers have product teams at {$org.name} have reported bugs by creating tickets in Linear, {$org.name}'s ticket management system. | |
- The ticket's title and description are added by the person reporting them, so often might not capture all relevant engineering system details. |
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
import os | |
import re | |
import ssl | |
import smtplib | |
from datetime import datetime, timedelta | |
import requests | |
from bs4 import BeautifulSoup | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.text import MIMEText |
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
let var = 5; // immutable variable, Rust guesses datatype | |
let varWithType:i32 = 5; // immutable variable, datatype specified | |
let mut mutableVar:i32 = 5; // mutable variable with datatype | |
let (varA, varB) = (10, 20); // Rust identifies patterns for variable assignment | |
const CONST_VAR:i32 = 9; // constant declaration, immutable, very fast, requires data-type specification |
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
// Variables replaced by single value arrays | |
#include <stdio.h> | |
int main() { | |
int a[1],b[1],op[1],ans[1]; | |
printf ("Enter first number: "); | |
scanf("%d", &a); | |
printf ("Enter second number: "); | |
scanf("%d", &b); | |
here: | |
printf("Choose what you want to do:\n1 for a+b\n2 for a~b\n3 for a*b\n4 for a^b\n"); |
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
# imports | |
import boto3 | |
import json | |
# constants | |
# note that the access key should be of a user who has write access to the bucket named here | |
BUCKET_NAME = '<>' | |
AWS_ACCESS_KEY_ID = '<>' | |
AWS_SECRET_ACCESS_KEY = '<>' |
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
const AWS = require('aws-sdk') | |
const https = require('https') | |
const sqsConfig = { | |
apiVersion: "2012-11-05", | |
accessKeyId: "<sqs-user's ACCESS_KEY_ID here>", | |
secretAccessKey: "<sqs-user's SECRET_ACCESS_KEY here>", | |
region: "AWS REGION HERE" // you can see your AWS region in your queue ARN, like: | |
// arn:aws:sqs:<AWS REGION>:user-id:queue-name | |
} |
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
const aws = require('aws-sdk') | |
const uuid = require('uuid') | |
const splitArray = require('split-array') | |
const sqsConfig = { | |
apiVersion: "2012-11-05", | |
accessKeyId: "<sqs-user's ACCESS_KEY_ID here>", | |
secretAccessKey: "<sqs-user's SECRET_ACCESS_KEY here>", | |
region: "AWS REGION HERE" // you can see your AWS region in your queue ARN, like: | |
// arn:aws:sqs:<AWS REGION>:user-id:queue-name |
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
from minio import Minio | |
from minio.error import ResponseError | |
import json | |
import os | |
minioClient = Minio(os.environ['MLFLOW_S3_ENDPOINT_URL'].split('//')[1], | |
access_key=os.environ['AWS_ACCESS_KEY_ID'], | |
secret_key=os.environ['AWS_SECRET_ACCESS_KEY'], | |
secure=False) |
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 | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
nvm use 13.1.0 | |
hexo generate | |
hexo clean | |
hexo deploy |
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
// Imports | |
const express = require('express'); | |
const cors = require('cors'); | |
const mongoose = require('mongoose'); | |
// Get environment | |
require('dotenv').config(); | |
// Create express web app, specify port | |
const app = express(); |
NewerOlder