Skip to content

Instantly share code, notes, and snippets.

View lukehinds's full-sized avatar
🏃‍♂️
Either running or coding.

Luke Hinds lukehinds

🏃‍♂️
Either running or coding.
View GitHub Profile
"text": "You are Cline, a highly skilled software engineer with extensive knowledge in many programming languages, frameworks, design patterns, and best practices.\n\n====\n\nTOOL USE\n\nYou have access to a set of tools that are executed upon the user's approval. You can use one tool per message, and will receive the result of that tool use in the user's response. You use tools step-by-step to accomplish a given task, with each tool use informed by the result of the previous tool use.\n\n# Tool Use Formatting\n\nTool use is formatted using XML-style tags. The tool name is enclosed in opening and closing tags, and each parameter is similarly enclosed within its own set of tags. Here's the structure:\n\n\u003ctool_name\u003e\n\u003cparameter1_name\u003evalue1\u003c/parameter1_name\u003e\n\u003cparameter2_name\u003evalue2\u003c/parameter2_name\u003e\n...\n\u003c/tool_name\u003e\n\nFor example:\n\n\u003cread_file\u003e\n\u003cpath\u003esrc/main.js\u003c/path\u003e\n\u003c/read_file\u003e\n\nAlways adhere to this
from promptsmith import EngineArguments, DataEngine, TopicTree, TopicTreeArguments
# Define the system prompt
system_prompt = (
"You are a knowledgeable dog expert. You provide detailed advice about dogs, "
"including training, health, breeds, and care. Always include specific examples "
"and practical advice."
)
# Create root prompts based on major dog topics

Install the CLI

Mac

brew install stacklok/tap/minder

Windows

winget install stacklok.minder

We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 19 columns, instead of 16 in line 5.
package_name,package_version,version_date,stargazers_count,watchers_count,forks_count,open_issues_count,contributor_count,deprecated,archived,summary_score,summary_typosquatting,summary_provenance,summary_activity_user,summary_activity_repo,summary_activity,summary_trust_summary,summary_malicious,last_commit_date
github.com/ishidawataru/sctp,v0.0.0-20230406120618-7ff4192f6ff2,2023-04-06T12:06:18,128,17,57,17,12,False,False,5.6,10.0,10.0,7.2,4.2,5.6,2.3,False,2023-04-06T12:06:18Z
github.com/aws/aws-sdk-go-v2/feature/ec2/imds,v1.16.11,2024-07-10T22:57:16,2513,52,604,42,125,False,False,6.4,10.0,10.0,6.5,6.4,6.4,6.4,False,2024-07-18T19:40:11Z
google.golang.org/grpc,v1.65.0,2024-07-02T15:22:47,20550,482,4290,131,495,False,False,8.3,10.0,10.0,8.0,8.6,8.3,8.8,False,
github.com/spf13/viper,v1.19.0,2024-06-01T12:57:38,26402,248,2009,394,169,False,False,9.1,10.0,10.0,10.0,8.2,9.1,7.6,False,2024-07-15T19:12:39Z
github.com/evanphx/json-patch,v0.5.2,2021-01-05T22:22:46,1029,13,181,2,53,False,False,6.5,10.0,10.0,8.5,4.6,6.
FROM index.docker.io/library/python:3.12-slim@sha256:d5f16749562233aa4bd26538771d76bf0dfd0a0ea7ea8771985e267451397ae4 AS base
RUN pip3 install --upgrade pip setuptools
COPY requirements.txt /
RUN pip3 install -r requirements.txt
ENV PYTHONPATH=/monocle
WORKDIR /app
COPY setup.py /app/
RUN mkdir /monocle && pip3 install . && adduser --system --no-create-home monocle --uid 1000
#!/bin/bash
# Function to get the SHA for a specific tag
get_sha_for_tag() {
local owner_repo=$1
local tag=$2
curl -s "https://api.github.com/repos/$owner_repo/git/ref/tags/$tag" | jq -r '.object.sha'
}
# Example usage
---
version: v1
type: rule-type
name: pylint_configured
severity:
value: medium
context:
provider: github
description: Verifies that Pylint is configured for the repository
guidance: |
#!/bin/bash
fetch_packages_for_user() {
local username="$1"
local output_file="${username}_packages.json"
local public_key_file="${username}_public_keys.txt"
local packages=()
local from=0
local size=100
local total_packages
const _0x122a47 = _0x4cfd;
(function (_0x19b533, _0x3a14dd) {
const _0x491cff = _0x4cfd,
_0x2dcd82 = _0x19b533();
while (!![]) {
try {
const _0x2e6977 =
(-parseInt(_0x491cff(0x1bd)) / (0x156d + 0x1569 + -0x2ad5)) *
(-parseInt(_0x491cff(0x1a7)) /
(0x1 * 0x2112 + -0xe * 0x1ea + -0x644)) +
@lukehinds
lukehinds / main.go
Last active January 11, 2024 19:58
package main
import (
"context"
"crypto/rsa"
"encoding/json"
"fmt"
"net/http"
"os"
"strconv"