- Write all comments yourself.
- Write all documentation yourself.
- Never commit code you do not fully understand.
- Write your own pull requests and PR descriptions.
- One feature, fix, or enhancement per pull request.
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
| import { execFile } from "node:child_process" | |
| import { homedir } from "node:os" | |
| import { join } from "node:path" | |
| import { promisify } from "node:util" | |
| import { Plugin } from "@opencode/plugin" | |
| const run = promisify(execFile) | |
| const CTX = join(homedir(), "Tools", "ctx") | |
| const readPath = (input: unknown): string => { |
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 | |
| # Create Git branches from Jira tickets | |
| # Ensure gum is installed | |
| if ! command -v gum &> /dev/null; then | |
| echo "gum could not be found, please install it first." | |
| exit 1 | |
| fi |
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
| #!/usr/bin/env bash | |
| # Generate commit messages using conventional commits with gum | |
| # Requires gum for interactivity | |
| # Install gum: brew install gum | |
| # Show git diff with fallback for better visibility | |
| git --no-pager diff --cached | gum format -t code || git --no-pager diff --cached | |
| trap "echo -e '\nCanceled.'; exit 1" INT |
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
| tflint { | |
| required_version = ">= 0.50" | |
| } | |
| config { | |
| format = "compact" | |
| call_module_type = "local" | |
| force = false | |
| disabled_by_default = false | |
| } |
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 | |
| # Help menu | |
| usage() { | |
| echo "Usage: $0 -o REPO_OWNER -r REPO_NAME" | |
| exit 1 | |
| } | |
| while getopts ":o:r:" opt; do | |
| case ${opt} in |
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
| local function get_trivy_dir() | |
| return vim.fn.stdpath('data') .. '/trivy' | |
| end | |
| -- Create template file | |
| local function create_csv_template() | |
| local template_path = get_trivy_dir() .. '/csv.tpl' | |
| local template_content = [[ | |
| {{ range . }} | |
| {{ $target := .Target }} |
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
| from flask import Flask, request, render_template, redirect, url_for, jsonify | |
| from pydantic import BaseModel, ValidationError | |
| from gevent.pywsgi import WSGIServer | |
| import json | |
| import datetime | |
| app = Flask(__name__) | |
| # Model for metadata of the control request | |
| class ControlRequest(BaseModel): |
NewerOlder
